buildInsightSections function
Build the set of insight section definitions for parallel generation.
Implementation
List<InsightSection> buildInsightSections() {
return [
const InsightSection(
name: 'project_areas',
prompt: '''Analyze this Neomage usage data and identify project areas.
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"areas": [
{"name": "Area name", "session_count": N, "description": "2-3 sentences about what was worked on."}
]
}
Include 4-5 areas. Skip internal CC operations.''',
),
const InsightSection(
name: 'interaction_style',
prompt:
'''Analyze this Neomage usage data and describe the user's interaction style.
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"narrative": "2-3 paragraphs analyzing HOW the user interacts with Neomage. Use second person 'you'. Use **bold** for key insights.",
"key_pattern": "One sentence summary of most distinctive interaction style"
}''',
),
const InsightSection(
name: 'what_works',
prompt:
'''Analyze this Neomage usage data and identify what's working well for this user. Use second person ("you").
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"intro": "1 sentence of context",
"impressive_workflows": [
{"title": "Short title (3-6 words)", "description": "2-3 sentences describing the impressive workflow or approach."}
]
}
Include 3 impressive workflows.''',
),
const InsightSection(
name: 'friction_analysis',
prompt:
'''Analyze this Neomage usage data and identify friction points for this user. Use second person ("you").
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"intro": "1 sentence summarizing friction patterns",
"categories": [
{"category": "Concrete category name", "description": "1-2 sentences explaining this category.", "examples": ["Specific example", "Another example"]}
]
}
Include 3 friction categories with 2 examples each.''',
),
const InsightSection(
name: 'suggestions',
prompt: '''Analyze this Neomage usage data and suggest improvements.
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"neomage_md_additions": [
{"addition": "A specific line to add to NEOMAGE.md", "why": "1 sentence explaining why", "prompt_scaffold": "Instructions for where to add"}
],
"features_to_try": [
{"feature": "Feature name", "one_liner": "What it does", "why_for_you": "Why this would help", "example_code": "Command to copy"}
],
"usage_patterns": [
{"title": "Short title", "suggestion": "1-2 sentence summary", "detail": "3-4 sentences", "copyable_prompt": "A specific prompt to try"}
]
}
Include 2-3 items for each category.''',
),
const InsightSection(
name: 'on_the_horizon',
prompt:
'''Analyze this Neomage usage data and identify future opportunities.
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"intro": "1 sentence about evolving AI-assisted development",
"opportunities": [
{"title": "Short title (4-8 words)", "whats_possible": "2-3 sentences about autonomous workflows", "how_to_try": "1-2 sentences", "copyable_prompt": "Detailed prompt to try"}
]
}
Include 3 opportunities. Think BIG.''',
),
const InsightSection(
name: 'fun_ending',
prompt: '''Analyze this Neomage usage data and find a memorable moment.
RESPOND WITH ONLY A VALID JSON OBJECT:
{
"headline": "A memorable QUALITATIVE moment from the transcripts - not a statistic.",
"detail": "Brief context about when/where this happened"
}''',
),
];
}