agileflow 2.77.0 → 2.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +6 -1
- package/scripts/agileflow-configure.js +174 -2
- package/scripts/agileflow-statusline.sh +171 -78
- package/scripts/agileflow-welcome.js +88 -64
- package/scripts/auto-self-improve.js +23 -45
- package/scripts/check-update.js +35 -42
- package/scripts/damage-control/bash-tool-damage-control.js +257 -0
- package/scripts/damage-control/edit-tool-damage-control.js +279 -0
- package/scripts/damage-control/patterns.yaml +227 -0
- package/scripts/damage-control/write-tool-damage-control.js +274 -0
- package/scripts/damage-control-bash.js +232 -0
- package/scripts/damage-control-edit.js +243 -0
- package/scripts/damage-control-write.js +243 -0
- package/scripts/obtain-context.js +22 -3
- package/scripts/ralph-loop.js +191 -63
- package/scripts/screenshot-verifier.js +213 -0
- package/scripts/session-manager.js +12 -33
- package/src/core/agents/accessibility.md +124 -53
- package/src/core/agents/adr-writer.md +192 -52
- package/src/core/agents/analytics.md +139 -60
- package/src/core/agents/api.md +173 -63
- package/src/core/agents/ci.md +139 -57
- package/src/core/agents/compliance.md +159 -68
- package/src/core/agents/configuration/damage-control.md +356 -0
- package/src/core/agents/configuration-damage-control.md +248 -0
- package/src/core/agents/database.md +162 -61
- package/src/core/agents/datamigration.md +179 -66
- package/src/core/agents/design.md +179 -57
- package/src/core/agents/devops.md +160 -3
- package/src/core/agents/documentation.md +204 -60
- package/src/core/agents/epic-planner.md +147 -55
- package/src/core/agents/integrations.md +197 -69
- package/src/core/agents/mentor.md +158 -57
- package/src/core/agents/mobile.md +159 -67
- package/src/core/agents/monitoring.md +154 -65
- package/src/core/agents/multi-expert.md +115 -43
- package/src/core/agents/orchestrator.md +77 -24
- package/src/core/agents/performance.md +130 -75
- package/src/core/agents/product.md +151 -55
- package/src/core/agents/qa.md +162 -74
- package/src/core/agents/readme-updater.md +178 -76
- package/src/core/agents/refactor.md +148 -95
- package/src/core/agents/research.md +143 -72
- package/src/core/agents/security.md +154 -65
- package/src/core/agents/testing.md +176 -97
- package/src/core/agents/ui.md +170 -79
- package/src/core/commands/adr/list.md +171 -0
- package/src/core/commands/adr/update.md +235 -0
- package/src/core/commands/adr/view.md +252 -0
- package/src/core/commands/adr.md +207 -50
- package/src/core/commands/agent.md +16 -0
- package/src/core/commands/assign.md +148 -44
- package/src/core/commands/auto.md +18 -1
- package/src/core/commands/babysit.md +391 -38
- package/src/core/commands/baseline.md +14 -0
- package/src/core/commands/blockers.md +170 -51
- package/src/core/commands/board.md +144 -66
- package/src/core/commands/changelog.md +15 -0
- package/src/core/commands/ci.md +179 -69
- package/src/core/commands/compress.md +18 -0
- package/src/core/commands/configure.md +16 -0
- package/src/core/commands/context/export.md +193 -4
- package/src/core/commands/context/full.md +191 -18
- package/src/core/commands/context/note.md +248 -4
- package/src/core/commands/debt.md +17 -0
- package/src/core/commands/deploy.md +208 -65
- package/src/core/commands/deps.md +15 -0
- package/src/core/commands/diagnose.md +16 -0
- package/src/core/commands/docs.md +196 -64
- package/src/core/commands/epic/list.md +170 -0
- package/src/core/commands/epic/view.md +242 -0
- package/src/core/commands/epic.md +192 -69
- package/src/core/commands/feedback.md +191 -71
- package/src/core/commands/handoff.md +162 -48
- package/src/core/commands/help.md +9 -0
- package/src/core/commands/ideate.md +446 -0
- package/src/core/commands/impact.md +16 -0
- package/src/core/commands/metrics.md +141 -37
- package/src/core/commands/multi-expert.md +77 -0
- package/src/core/commands/packages.md +16 -0
- package/src/core/commands/pr.md +161 -67
- package/src/core/commands/readme-sync.md +16 -0
- package/src/core/commands/research/analyze.md +568 -0
- package/src/core/commands/research/ask.md +345 -20
- package/src/core/commands/research/import.md +562 -19
- package/src/core/commands/research/list.md +173 -5
- package/src/core/commands/research/view.md +181 -8
- package/src/core/commands/retro.md +135 -48
- package/src/core/commands/review.md +219 -47
- package/src/core/commands/session/end.md +209 -0
- package/src/core/commands/session/history.md +210 -0
- package/src/core/commands/session/init.md +116 -0
- package/src/core/commands/session/new.md +296 -0
- package/src/core/commands/session/resume.md +166 -0
- package/src/core/commands/session/status.md +166 -0
- package/src/core/commands/setup/visual-e2e.md +462 -0
- package/src/core/commands/skill/create.md +115 -17
- package/src/core/commands/skill/delete.md +117 -0
- package/src/core/commands/skill/edit.md +104 -0
- package/src/core/commands/skill/list.md +128 -0
- package/src/core/commands/skill/test.md +135 -0
- package/src/core/commands/skill/upgrade.md +542 -0
- package/src/core/commands/sprint.md +17 -1
- package/src/core/commands/status.md +133 -21
- package/src/core/commands/story/list.md +176 -0
- package/src/core/commands/story/view.md +265 -0
- package/src/core/commands/story-validate.md +101 -1
- package/src/core/commands/story.md +204 -51
- package/src/core/commands/template.md +16 -1
- package/src/core/commands/tests.md +226 -64
- package/src/core/commands/update.md +17 -1
- package/src/core/commands/validate-expertise.md +16 -0
- package/src/core/commands/velocity.md +140 -36
- package/src/core/commands/verify.md +14 -0
- package/src/core/commands/whats-new.md +30 -0
- package/src/core/skills/_learnings/README.md +91 -0
- package/src/core/skills/_learnings/_template.yaml +106 -0
- package/src/core/skills/_learnings/code-review.yaml +118 -0
- package/src/core/skills/_learnings/commit.yaml +69 -0
- package/src/core/skills/_learnings/story-writer.yaml +71 -0
- package/src/core/templates/damage-control-patterns.yaml +234 -0
- package/src/core/templates/skill-template.md +53 -11
- package/tools/cli/commands/start.js +180 -0
- package/tools/cli/installers/ide/claude-code.js +127 -0
- package/tools/cli/tui/Dashboard.js +66 -0
- package/tools/cli/tui/StoryList.js +69 -0
- package/tools/cli/tui/index.js +16 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate categorized improvement ideas using multi-expert analysis
|
|
3
|
+
argument-hint: [SCOPE=all|security|perf|code|ux] [DEPTH=quick|deep] [OUTPUT=report|stories|both]
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:ideate - Ideation orchestrator with multi-expert analysis"
|
|
8
|
+
- "CRITICAL: Deploy experts IN PARALLEL in ONE message with multiple Task calls"
|
|
9
|
+
- "CRITICAL: Wait for all results before synthesis (use TaskOutput with block=true)"
|
|
10
|
+
- "CRITICAL: Confidence scoring: HIGH (2+ experts agree) | MEDIUM (1 expert with evidence) | LOW (vague, exclude)"
|
|
11
|
+
- "MUST parse arguments: SCOPE (all/security/perf/code/ux) | DEPTH (quick/deep) | OUTPUT (report/stories/both)"
|
|
12
|
+
- "MUST categorize by domain: Security, Performance, Code Quality, UX, Testing, API/Architecture"
|
|
13
|
+
- "MUST estimate effort for each idea: High/Medium/Low impact"
|
|
14
|
+
- "Optional: Generate stories for HIGH-confidence items (if OUTPUT=stories or both)"
|
|
15
|
+
state_fields:
|
|
16
|
+
- scope
|
|
17
|
+
- depth
|
|
18
|
+
- output_mode
|
|
19
|
+
- selected_experts
|
|
20
|
+
- ideas_generated
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# /agileflow:ideate
|
|
24
|
+
|
|
25
|
+
Deploy multiple domain experts in parallel to generate categorized improvement suggestions for your codebase. Inspired by AutoClaude's ideation feature.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## STEP 0: Gather Context
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
node .agileflow/scripts/obtain-context.js ideate
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
38
|
+
## Compact Summary
|
|
39
|
+
|
|
40
|
+
**Command**: `/agileflow:ideate` - Generate improvement ideas via multi-expert analysis
|
|
41
|
+
|
|
42
|
+
**Quick Usage**:
|
|
43
|
+
```
|
|
44
|
+
/agileflow:ideate SCOPE=all DEPTH=quick OUTPUT=report
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**What It Does**: Deploy 4-6 domain experts → Each generates 3-5 ideas → Synthesize with confidence scoring → Categorized report
|
|
48
|
+
|
|
49
|
+
**Arguments**:
|
|
50
|
+
- `SCOPE=all|security|perf|code|ux` (default: all)
|
|
51
|
+
- `DEPTH=quick|deep` (default: quick)
|
|
52
|
+
- `OUTPUT=report|stories|both` (default: report)
|
|
53
|
+
|
|
54
|
+
### Tool Usage Examples
|
|
55
|
+
|
|
56
|
+
**Task** (deploy expert in parallel):
|
|
57
|
+
```xml
|
|
58
|
+
<invoke name="Task">
|
|
59
|
+
<parameter name="description">Security ideation analysis</parameter>
|
|
60
|
+
<parameter name="prompt">Generate 3-5 specific improvement ideas for this codebase from a SECURITY perspective...</parameter>
|
|
61
|
+
<parameter name="subagent_type">agileflow-security</parameter>
|
|
62
|
+
<parameter name="run_in_background">true</parameter>
|
|
63
|
+
</invoke>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**TaskOutput** (collect results):
|
|
67
|
+
```xml
|
|
68
|
+
<invoke name="TaskOutput">
|
|
69
|
+
<parameter name="task_id">{id}</parameter>
|
|
70
|
+
<parameter name="block">true</parameter>
|
|
71
|
+
</invoke>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Write** (save report):
|
|
75
|
+
```xml
|
|
76
|
+
<invoke name="Write">
|
|
77
|
+
<parameter name="file_path">/path/to/docs/08-project/ideation-YYYYMMDD.md</parameter>
|
|
78
|
+
<parameter name="content"># Ideation Report...</parameter>
|
|
79
|
+
</invoke>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**AskUserQuestion** (next steps):
|
|
83
|
+
```xml
|
|
84
|
+
<invoke name="AskUserQuestion">
|
|
85
|
+
<parameter name="questions">[{"question": "What would you like to do with these ideas?", "header": "Next Steps", "multiSelect": false, "options": [{"label": "Create stories for high-confidence items", "description": "Generate stories in docs/06-stories/"}, {"label": "Create epic grouping all improvements", "description": "Bundle into a new epic"}, {"label": "Save report and done", "description": "Just keep the report"}]}]</parameter>
|
|
86
|
+
</invoke>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Categories**: Security, Performance, Code Quality, UX/Design, Testing, API/Architecture
|
|
90
|
+
**Confidence**: High (2+ experts agree), Medium (1 expert with evidence)
|
|
91
|
+
**Output**: `docs/08-project/ideation-<YYYYMMDD>.md` | Optional stories
|
|
92
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## How It Works
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
100
|
+
│ USER: /agileflow:ideate │
|
|
101
|
+
└─────────────────────────────────────────────────────────────┘
|
|
102
|
+
│
|
|
103
|
+
▼
|
|
104
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
105
|
+
│ IDEATION ORCHESTRATOR │
|
|
106
|
+
│ 1. Parse SCOPE to determine which experts │
|
|
107
|
+
│ 2. Deploy 4-6 experts IN PARALLEL │
|
|
108
|
+
│ 3. Each expert generates 3-5 improvement ideas │
|
|
109
|
+
│ 4. Collect and synthesize with confidence scoring │
|
|
110
|
+
│ 5. Generate categorized report │
|
|
111
|
+
└─────────────────────────────────────────────────────────────┘
|
|
112
|
+
│
|
|
113
|
+
┌───────────────────┼───────────────────┐
|
|
114
|
+
▼ ▼ ▼
|
|
115
|
+
┌───────────┐ ┌───────────┐ ┌───────────┐
|
|
116
|
+
│ Security │ │Performance│ │ Refactor │
|
|
117
|
+
│ Expert │ │ Expert │ │ Expert │
|
|
118
|
+
│ │ │ │ │ │
|
|
119
|
+
│ 3-5 ideas │ │ 3-5 ideas │ │ 3-5 ideas │
|
|
120
|
+
└───────────┘ └───────────┘ └───────────┘
|
|
121
|
+
│ │ │
|
|
122
|
+
└───────────────────┼───────────────────┘
|
|
123
|
+
▼
|
|
124
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
125
|
+
│ SYNTHESIS ENGINE │
|
|
126
|
+
│ • Find overlapping ideas (HIGH CONFIDENCE) │
|
|
127
|
+
│ • Flag unique insights with evidence (MEDIUM) │
|
|
128
|
+
│ • Discard vague suggestions (excluded) │
|
|
129
|
+
│ • Categorize by domain │
|
|
130
|
+
│ • Estimate effort for each idea │
|
|
131
|
+
└─────────────────────────────────────────────────────────────┘
|
|
132
|
+
│
|
|
133
|
+
▼
|
|
134
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
135
|
+
│ IDEATION REPORT │
|
|
136
|
+
│ 📊 Total Ideas: X (High: Y, Medium: Z) │
|
|
137
|
+
│ 🎯 High-Confidence Improvements (agreed by 2+ experts) │
|
|
138
|
+
│ 💡 Medium-Confidence Opportunities (single expert) │
|
|
139
|
+
│ 📋 Suggested Stories (if OUTPUT=stories) │
|
|
140
|
+
└─────────────────────────────────────────────────────────────┘
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Prompt
|
|
146
|
+
|
|
147
|
+
ROLE: Ideation Orchestrator
|
|
148
|
+
|
|
149
|
+
You coordinate multiple domain experts to generate improvement suggestions for the codebase, then synthesize their findings into a prioritized, actionable report.
|
|
150
|
+
|
|
151
|
+
### STEP 1: PARSE ARGUMENTS
|
|
152
|
+
|
|
153
|
+
Parse the input arguments:
|
|
154
|
+
|
|
155
|
+
**SCOPE** (which experts to deploy):
|
|
156
|
+
| SCOPE | Experts |
|
|
157
|
+
|-------|---------|
|
|
158
|
+
| `all` (default) | security, performance, refactor, ui, testing, api (6 experts) |
|
|
159
|
+
| `security` | security, api, testing (3 experts) |
|
|
160
|
+
| `perf` | performance, database, api (3 experts) |
|
|
161
|
+
| `code` | refactor, testing, api (3 experts) |
|
|
162
|
+
| `ux` | ui, accessibility, api (3 experts) |
|
|
163
|
+
|
|
164
|
+
**DEPTH**:
|
|
165
|
+
- `quick` (default): Each expert generates 3 ideas, focuses on high-impact only
|
|
166
|
+
- `deep`: Each expert generates 5 ideas, includes lower-priority items
|
|
167
|
+
|
|
168
|
+
**OUTPUT**:
|
|
169
|
+
- `report` (default): Generate ideation report only
|
|
170
|
+
- `stories`: Generate stories for high-confidence items
|
|
171
|
+
- `both`: Report + stories
|
|
172
|
+
|
|
173
|
+
### STEP 2: DEPLOY EXPERTS IN PARALLEL
|
|
174
|
+
|
|
175
|
+
**CRITICAL**: Deploy ALL experts in a SINGLE message with multiple Task tool calls.
|
|
176
|
+
|
|
177
|
+
Use this prompt template for each expert:
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
EXPERTISE FIRST: Read your expertise.yaml file if it exists at packages/cli/src/core/experts/{domain}/expertise.yaml
|
|
181
|
+
|
|
182
|
+
TASK: Generate {3|5} specific, actionable improvement ideas for this codebase from your {DOMAIN} perspective.
|
|
183
|
+
|
|
184
|
+
DEPTH: {quick|deep}
|
|
185
|
+
|
|
186
|
+
For each idea, provide:
|
|
187
|
+
1. **Title**: Concise name (5-10 words)
|
|
188
|
+
2. **Category**: Your domain (Security/Performance/Code Quality/UX/Testing/API)
|
|
189
|
+
3. **Impact**: High/Medium/Low
|
|
190
|
+
4. **Effort**: Hours/Days/Weeks
|
|
191
|
+
5. **Files**: Specific file paths affected
|
|
192
|
+
6. **Why**: One sentence on why this matters
|
|
193
|
+
7. **Approach**: Brief implementation approach (2-3 sentences)
|
|
194
|
+
|
|
195
|
+
RULES:
|
|
196
|
+
- Be SPECIFIC with file paths - no vague suggestions
|
|
197
|
+
- Only suggest improvements you can VERIFY exist in the codebase
|
|
198
|
+
- Prioritize by impact (High first)
|
|
199
|
+
- For "quick" depth, focus only on High/Medium impact items
|
|
200
|
+
- Include evidence (code patterns, metrics, file paths)
|
|
201
|
+
|
|
202
|
+
FORMAT each idea as:
|
|
203
|
+
---
|
|
204
|
+
### {Title}
|
|
205
|
+
**Category**: {domain} | **Impact**: {High/Medium/Low} | **Effort**: {estimate}
|
|
206
|
+
**Files**: `{path1}`, `{path2}`
|
|
207
|
+
**Why**: {reason}
|
|
208
|
+
**Approach**: {brief approach}
|
|
209
|
+
---
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Example deployment for SCOPE=all**:
|
|
213
|
+
|
|
214
|
+
```xml
|
|
215
|
+
<invoke name="Task">
|
|
216
|
+
<parameter name="description">Security ideation</parameter>
|
|
217
|
+
<parameter name="prompt">[prompt with domain=security]</parameter>
|
|
218
|
+
<parameter name="subagent_type">agileflow-security</parameter>
|
|
219
|
+
<parameter name="run_in_background">true</parameter>
|
|
220
|
+
</invoke>
|
|
221
|
+
|
|
222
|
+
<invoke name="Task">
|
|
223
|
+
<parameter name="description">Performance ideation</parameter>
|
|
224
|
+
<parameter name="prompt">[prompt with domain=performance]</parameter>
|
|
225
|
+
<parameter name="subagent_type">agileflow-performance</parameter>
|
|
226
|
+
<parameter name="run_in_background">true</parameter>
|
|
227
|
+
</invoke>
|
|
228
|
+
|
|
229
|
+
<invoke name="Task">
|
|
230
|
+
<parameter name="description">Code quality ideation</parameter>
|
|
231
|
+
<parameter name="prompt">[prompt with domain=refactor/code quality]</parameter>
|
|
232
|
+
<parameter name="subagent_type">agileflow-refactor</parameter>
|
|
233
|
+
<parameter name="run_in_background">true</parameter>
|
|
234
|
+
</invoke>
|
|
235
|
+
|
|
236
|
+
<invoke name="Task">
|
|
237
|
+
<parameter name="description">UX ideation</parameter>
|
|
238
|
+
<parameter name="prompt">[prompt with domain=ui/ux]</parameter>
|
|
239
|
+
<parameter name="subagent_type">agileflow-ui</parameter>
|
|
240
|
+
<parameter name="run_in_background">true</parameter>
|
|
241
|
+
</invoke>
|
|
242
|
+
|
|
243
|
+
<invoke name="Task">
|
|
244
|
+
<parameter name="description">Testing ideation</parameter>
|
|
245
|
+
<parameter name="prompt">[prompt with domain=testing]</parameter>
|
|
246
|
+
<parameter name="subagent_type">agileflow-testing</parameter>
|
|
247
|
+
<parameter name="run_in_background">true</parameter>
|
|
248
|
+
</invoke>
|
|
249
|
+
|
|
250
|
+
<invoke name="Task">
|
|
251
|
+
<parameter name="description">API/Architecture ideation</parameter>
|
|
252
|
+
<parameter name="prompt">[prompt with domain=api/architecture]</parameter>
|
|
253
|
+
<parameter name="subagent_type">agileflow-api</parameter>
|
|
254
|
+
<parameter name="run_in_background">true</parameter>
|
|
255
|
+
</invoke>
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### STEP 3: COLLECT RESULTS
|
|
259
|
+
|
|
260
|
+
Wait for all experts to complete:
|
|
261
|
+
|
|
262
|
+
```xml
|
|
263
|
+
<invoke name="TaskOutput">
|
|
264
|
+
<parameter name="task_id">{security_id}</parameter>
|
|
265
|
+
<parameter name="block">true</parameter>
|
|
266
|
+
</invoke>
|
|
267
|
+
|
|
268
|
+
<invoke name="TaskOutput">
|
|
269
|
+
<parameter name="task_id">{performance_id}</parameter>
|
|
270
|
+
<parameter name="block">true</parameter>
|
|
271
|
+
</invoke>
|
|
272
|
+
<!-- ... collect all expert results ... -->
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### STEP 4: SYNTHESIZE RESULTS
|
|
276
|
+
|
|
277
|
+
Analyze all expert ideas and synthesize:
|
|
278
|
+
|
|
279
|
+
**Confidence Scoring**:
|
|
280
|
+
|
|
281
|
+
| Confidence | Criteria | Action |
|
|
282
|
+
|------------|----------|--------|
|
|
283
|
+
| **HIGH** | 2+ experts suggest similar idea | Include prominently, recommend immediate action |
|
|
284
|
+
| **MEDIUM** | 1 expert with specific evidence (file paths, metrics) | Include as opportunity |
|
|
285
|
+
| **LOW** | 1 expert, vague/no evidence | Exclude from report |
|
|
286
|
+
|
|
287
|
+
**Overlap Detection**:
|
|
288
|
+
- Ideas about the same file/component from different experts = HIGH confidence
|
|
289
|
+
- Ideas with similar titles/approaches = potential overlap, merge
|
|
290
|
+
- Unique insights with evidence = valuable MEDIUM confidence
|
|
291
|
+
|
|
292
|
+
**Categorization**:
|
|
293
|
+
Group final ideas by category:
|
|
294
|
+
- 🔒 Security
|
|
295
|
+
- ⚡ Performance
|
|
296
|
+
- 🧹 Code Quality
|
|
297
|
+
- 🎨 UX/Design
|
|
298
|
+
- 🧪 Testing
|
|
299
|
+
- 🏗️ API/Architecture
|
|
300
|
+
|
|
301
|
+
### STEP 5: GENERATE OUTPUT
|
|
302
|
+
|
|
303
|
+
**Report Format**:
|
|
304
|
+
|
|
305
|
+
```markdown
|
|
306
|
+
# Ideation Report
|
|
307
|
+
|
|
308
|
+
**Generated**: {YYYY-MM-DD}
|
|
309
|
+
**Scope**: {scope}
|
|
310
|
+
**Depth**: {quick|deep}
|
|
311
|
+
**Experts Consulted**: {list of experts}
|
|
312
|
+
**Total Ideas**: {X} (High-Confidence: {Y}, Medium-Confidence: {Z})
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## 🎯 High-Confidence Improvements
|
|
317
|
+
*Agreed by multiple experts - prioritize these*
|
|
318
|
+
|
|
319
|
+
### 1. {Title}
|
|
320
|
+
**Category**: {category} | **Impact**: High | **Effort**: {estimate}
|
|
321
|
+
**Experts**: {expert1}, {expert2}
|
|
322
|
+
**Files**: `{path1}`, `{path2}`
|
|
323
|
+
**Why**: {reason}
|
|
324
|
+
**Approach**: {brief approach}
|
|
325
|
+
|
|
326
|
+
### 2. {Title}
|
|
327
|
+
...
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## 💡 Medium-Confidence Opportunities
|
|
332
|
+
*Single expert with evidence - worth exploring*
|
|
333
|
+
|
|
334
|
+
### {N}. {Title}
|
|
335
|
+
**Category**: {category} | **Impact**: {level} | **Effort**: {estimate}
|
|
336
|
+
**Expert**: {expert}
|
|
337
|
+
**Files**: `{path}`
|
|
338
|
+
**Why**: {reason}
|
|
339
|
+
**Approach**: {brief approach}
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## 📊 Summary by Category
|
|
344
|
+
|
|
345
|
+
| Category | High | Medium | Total |
|
|
346
|
+
|----------|------|--------|-------|
|
|
347
|
+
| 🔒 Security | X | Y | Z |
|
|
348
|
+
| ⚡ Performance | X | Y | Z |
|
|
349
|
+
| 🧹 Code Quality | X | Y | Z |
|
|
350
|
+
| ... | | | |
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
## 📋 Recommended Next Steps
|
|
355
|
+
|
|
356
|
+
1. Address high-confidence security items first
|
|
357
|
+
2. Schedule performance improvements for next sprint
|
|
358
|
+
3. Add code quality items to tech debt backlog
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
**Save report to**: `docs/08-project/ideation-{YYYYMMDD}.md`
|
|
362
|
+
|
|
363
|
+
### STEP 6: STORY GENERATION (if OUTPUT=stories or both)
|
|
364
|
+
|
|
365
|
+
For each HIGH-confidence idea, generate a story:
|
|
366
|
+
|
|
367
|
+
```markdown
|
|
368
|
+
---
|
|
369
|
+
story_id: US-XXXX
|
|
370
|
+
type: improvement
|
|
371
|
+
ideation_source: ideation-{YYYYMMDD}.md
|
|
372
|
+
estimate: {effort}
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
# US-XXXX: {Idea Title}
|
|
376
|
+
|
|
377
|
+
## Background
|
|
378
|
+
Identified in ideation report from {date}. Agreed by: {experts}.
|
|
379
|
+
|
|
380
|
+
## Acceptance Criteria
|
|
381
|
+
- [ ] {specific criterion based on approach}
|
|
382
|
+
- [ ] {criterion}
|
|
383
|
+
- [ ] Tests pass
|
|
384
|
+
|
|
385
|
+
## Technical Notes
|
|
386
|
+
{approach from ideation}
|
|
387
|
+
|
|
388
|
+
## Files to Modify
|
|
389
|
+
- `{path1}`
|
|
390
|
+
- `{path2}`
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
### STEP 7: OFFER NEXT STEPS
|
|
394
|
+
|
|
395
|
+
After generating output, present options:
|
|
396
|
+
|
|
397
|
+
```xml
|
|
398
|
+
<invoke name="AskUserQuestion">
|
|
399
|
+
<parameter name="questions">[{
|
|
400
|
+
"question": "What would you like to do with these ideas?",
|
|
401
|
+
"header": "Next Steps",
|
|
402
|
+
"multiSelect": false,
|
|
403
|
+
"options": [
|
|
404
|
+
{"label": "Create stories for high-confidence items", "description": "Generate stories in docs/06-stories/"},
|
|
405
|
+
{"label": "Create epic grouping all improvements", "description": "Bundle into EP-XXXX: Ideation Improvements"},
|
|
406
|
+
{"label": "Run deeper analysis on specific category", "description": "Re-run with SCOPE={category} DEPTH=deep"},
|
|
407
|
+
{"label": "Save report and done", "description": "Keep the report, no further action"}
|
|
408
|
+
]
|
|
409
|
+
}]</parameter>
|
|
410
|
+
</invoke>
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## Example Execution
|
|
416
|
+
|
|
417
|
+
**User**: `/agileflow:ideate SCOPE=all DEPTH=quick OUTPUT=report`
|
|
418
|
+
|
|
419
|
+
**Step 1**: Parse → SCOPE=all (6 experts), DEPTH=quick (3 ideas each), OUTPUT=report
|
|
420
|
+
|
|
421
|
+
**Step 2**: Deploy 6 experts in parallel
|
|
422
|
+
|
|
423
|
+
**Step 3**: Collect results (~18 raw ideas)
|
|
424
|
+
|
|
425
|
+
**Step 4**: Synthesize:
|
|
426
|
+
- 4 ideas mentioned by 2+ experts → HIGH confidence
|
|
427
|
+
- 8 ideas with specific evidence → MEDIUM confidence
|
|
428
|
+
- 6 ideas too vague → excluded
|
|
429
|
+
|
|
430
|
+
**Step 5**: Generate report with 12 ideas, saved to `docs/08-project/ideation-20260106.md`
|
|
431
|
+
|
|
432
|
+
**Step 6**: Skipped (OUTPUT=report only)
|
|
433
|
+
|
|
434
|
+
**Step 7**: Present next steps via AskUserQuestion
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
## Arguments
|
|
439
|
+
|
|
440
|
+
| Argument | Values | Default | Description |
|
|
441
|
+
|----------|--------|---------|-------------|
|
|
442
|
+
| SCOPE | all, security, perf, code, ux | all | Which domains to analyze |
|
|
443
|
+
| DEPTH | quick, deep | quick | Number of ideas per expert (3 vs 5) |
|
|
444
|
+
| OUTPUT | report, stories, both | report | What to generate |
|
|
445
|
+
|
|
446
|
+
{{argument}}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Analyze change impact across codebase
|
|
3
3
|
argument-hint: [FILES=<paths>] [BASE=<branch>] [RUN_TESTS=yes|no]
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "Auto-detect changed files from git diff if FILES not specified"
|
|
8
|
+
- "Build dependency graph: direct + indirect imports (2 levels max)"
|
|
9
|
+
- "Find related tests: unit, integration, E2E (pattern matching + coverage mapping)"
|
|
10
|
+
- "Detect breaking changes (function signature changes, type modifications)"
|
|
11
|
+
- "Calculate risk scores: critical (impact now) / recommended (test anyway) / optional (low risk)"
|
|
12
|
+
- "Show affected files with line numbers of callers"
|
|
13
|
+
- "Generate clear impact report with actionable test recommendations"
|
|
14
|
+
- "Optionally run affected tests (RUN_TESTS=yes default if tests found)"
|
|
15
|
+
state_fields:
|
|
16
|
+
- changed_files_count
|
|
17
|
+
- affected_files_count
|
|
18
|
+
- tests_to_run_count
|
|
19
|
+
- breaking_changes_detected
|
|
4
20
|
---
|
|
5
21
|
|
|
6
22
|
# impact-analysis
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Analytics dashboard with cycle time and throughput
|
|
3
|
-
argument-hint: [TIMEFRAME=7d|30d|90d|all] [EPIC=<id>] [OWNER=<id>] [FORMAT=ascii|json|csv] [METRIC=cycle-time|lead-time|throughput|all]
|
|
3
|
+
argument-hint: "[TIMEFRAME=7d|30d|90d|all] [EPIC=<id>] [OWNER=<id>] [FORMAT=ascii|json|csv] [METRIC=cycle-time|lead-time|throughput|all]"
|
|
4
4
|
model: haiku
|
|
5
|
+
compact_context:
|
|
6
|
+
priority: medium
|
|
7
|
+
preserve_rules:
|
|
8
|
+
- "ACTIVE COMMAND: /agileflow:metrics - Metrics & analytics specialist (read-only)"
|
|
9
|
+
- "MUST read docs/09-agents/bus/log.jsonl (parse all lifecycle events)"
|
|
10
|
+
- "MUST read docs/09-agents/status.json (current state, WIP, owners)"
|
|
11
|
+
- "MUST calculate 10+ metrics: cycle-time, lead-time, throughput, WIP, utilization, epic-health, estimation, blockers, flow-efficiency, CFD"
|
|
12
|
+
- "MUST show trends (↗ ↘ →) with % change compared to previous period"
|
|
13
|
+
- "MUST use health indicators (🟢🟡🔴) for quick status assessment"
|
|
14
|
+
- "MUST provide actionable recommendations based on data"
|
|
15
|
+
- "MUST always include timeframe and generation timestamp"
|
|
16
|
+
state_fields:
|
|
17
|
+
- timeframe
|
|
18
|
+
- metric_type
|
|
19
|
+
- format
|
|
20
|
+
- epic_filter
|
|
5
21
|
---
|
|
6
22
|
|
|
7
23
|
# metrics
|
|
@@ -22,51 +38,139 @@ Comprehensive project analytics dashboard with cycle time, lead time, throughput
|
|
|
22
38
|
|
|
23
39
|
<!-- COMPACT_SUMMARY_START -->
|
|
24
40
|
|
|
25
|
-
##
|
|
41
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:metrics IS ACTIVE
|
|
26
42
|
|
|
27
|
-
**
|
|
43
|
+
**CRITICAL**: You are the Metrics Specialist. This command provides data-driven analytics (read-only).
|
|
28
44
|
|
|
29
|
-
|
|
45
|
+
---
|
|
30
46
|
|
|
31
|
-
|
|
32
|
-
- `docs/09-agents/bus/log.jsonl` - Event stream with timestamps for lifecycle events
|
|
33
|
-
- `docs/09-agents/status.json` - Current state of all stories
|
|
34
|
-
- `docs/06-stories/**/US-*.md` - Story metadata and frontmatter
|
|
35
|
-
- `docs/05-epics/*.md` - Epic-level data
|
|
47
|
+
### 🚨 RULE #1: ALWAYS Calculate From Raw Data
|
|
36
48
|
|
|
37
|
-
|
|
49
|
+
- Read docs/09-agents/bus/log.jsonl (lifecycle events)
|
|
50
|
+
- Read docs/09-agents/status.json (current state)
|
|
51
|
+
- Never assume or estimate (calculate from data)
|
|
52
|
+
- Show all source timestamps and calculations
|
|
38
53
|
|
|
39
|
-
|
|
40
|
-
- Calculate from raw data sources, never assume or estimate
|
|
41
|
-
- Show trends (↗↘) compared to previous period
|
|
42
|
-
- Use health indicators (🟢🟡🔴) for quick status assessment
|
|
43
|
-
- Provide actionable recommendations based on data
|
|
44
|
-
- Always include timeframe and generation timestamp
|
|
54
|
+
### 🚨 RULE #2: ALWAYS Show Trends With Comparison
|
|
45
55
|
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
Compare to previous period:
|
|
57
|
+
- Show % change (↗ ↑5%, ↘ ↓12%, → stable)
|
|
58
|
+
- Highlight improvements and regressions
|
|
59
|
+
- Identify patterns and anomalies
|
|
60
|
+
|
|
61
|
+
### 🚨 RULE #3: ALWAYS Use Health Indicators
|
|
62
|
+
|
|
63
|
+
Quick status assessment:
|
|
64
|
+
- 🟢 Green: Healthy/on-track (no action needed)
|
|
65
|
+
- 🟡 Yellow: At-risk/monitor (may need attention)
|
|
66
|
+
- 🔴 Red: Critical/off-track (action required)
|
|
67
|
+
|
|
68
|
+
### 🚨 RULE #4: ALWAYS Include Actionable Recommendations
|
|
69
|
+
|
|
70
|
+
Every metric should suggest:
|
|
71
|
+
- What's good (continue this)
|
|
72
|
+
- What needs attention (action item)
|
|
73
|
+
- How to improve (specific suggestion)
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Key Metrics Calculated
|
|
78
|
+
|
|
79
|
+
10+ core metrics:
|
|
80
|
+
1. **Cycle Time** - in-progress → done
|
|
81
|
+
2. **Lead Time** - created → done
|
|
82
|
+
3. **Throughput** - stories completed/period
|
|
83
|
+
4. **WIP** - current in-progress + in-review
|
|
84
|
+
5. **Agent Utilization** - work distribution
|
|
85
|
+
6. **Epic Health** - progress % + trend
|
|
86
|
+
7. **Estimation Accuracy** - estimate vs actual
|
|
87
|
+
8. **Blocked Stories** - count + duration
|
|
88
|
+
9. **Flow Efficiency** - active vs total time %
|
|
89
|
+
10. **Cumulative Flow Diagram** - stacked area chart
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Input Parameters
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
TIMEFRAME=7d|30d|90d|all # Date range (default: 30d)
|
|
97
|
+
EPIC=<EP_ID> # Filter by epic (optional)
|
|
98
|
+
OWNER=<AG_*> # Filter by agent (optional)
|
|
99
|
+
FORMAT=ascii|json|csv # Output format (default: ascii)
|
|
100
|
+
METRIC=cycle-time|lead-time|throughput|all # Which metrics
|
|
65
101
|
```
|
|
66
102
|
|
|
67
|
-
**
|
|
103
|
+
**Data Sources** (read-only):
|
|
104
|
+
1. docs/09-agents/bus/log.jsonl - Event timestamps
|
|
105
|
+
2. docs/09-agents/status.json - Current state
|
|
106
|
+
3. docs/06-stories/**/US-*.md - Story metadata
|
|
107
|
+
4. docs/05-epics/*.md - Epic data
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Output Structure
|
|
112
|
+
|
|
113
|
+
**Dashboard Includes**:
|
|
114
|
+
- Header with timeframe & generation timestamp
|
|
115
|
+
- Key Metrics section (cycle time, lead time, throughput, WIP)
|
|
116
|
+
- Work In Progress status (current WIP vs limit)
|
|
117
|
+
- Epic Health summary (progress bars + status)
|
|
118
|
+
- Recommendations (prioritized action items)
|
|
119
|
+
|
|
120
|
+
**Key Metrics Section**:
|
|
121
|
+
- Current value (average/median)
|
|
122
|
+
- Trend (↗↘→ with % change)
|
|
123
|
+
- Previous period comparison
|
|
124
|
+
- Health indicator (🟢🟡🔴)
|
|
125
|
+
|
|
126
|
+
**Epic Health**:
|
|
127
|
+
- Progress bar (% complete)
|
|
128
|
+
- Status indicator (🟢🟡🔴)
|
|
129
|
+
- ETA (weeks to completion)
|
|
130
|
+
- Blockers count
|
|
131
|
+
|
|
132
|
+
**Recommendations**:
|
|
133
|
+
- HIGH: Immediate action (blockers, WIP violations)
|
|
134
|
+
- MEDIUM: Process improvements
|
|
135
|
+
- LOW: Long-term optimizations
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Anti-Patterns & Correct Usage
|
|
140
|
+
|
|
141
|
+
❌ **DON'T**:
|
|
142
|
+
- Assume or estimate metrics (calculate from data)
|
|
143
|
+
- Skip trend comparison (context matters)
|
|
144
|
+
- Use vague status (use 🟢🟡🔴)
|
|
145
|
+
- Ignore actionable recommendations
|
|
146
|
+
|
|
147
|
+
✅ **DO**:
|
|
148
|
+
- Calculate all metrics from raw data
|
|
149
|
+
- Show % change vs previous period
|
|
150
|
+
- Use health indicators for quick assessment
|
|
151
|
+
- Provide specific actionable next steps
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Follow-up Integration
|
|
156
|
+
|
|
157
|
+
After displaying metrics:
|
|
158
|
+
- `/agileflow:velocity` - See velocity trends
|
|
159
|
+
- `/agileflow:blockers` - Drill into blockers
|
|
160
|
+
- `/agileflow:retro` - Analyze patterns retrospectively
|
|
161
|
+
- Save metrics report for stakeholder updates
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## REMEMBER AFTER COMPACTION
|
|
68
166
|
|
|
69
|
-
|
|
167
|
+
- Command is read-only (analyzes bus/log.jsonl + status.json)
|
|
168
|
+
- Calculates 10+ metrics (cycle-time, lead-time, throughput, WIP, etc.)
|
|
169
|
+
- Shows trends (↗ ↘ →) with % change vs previous period
|
|
170
|
+
- Uses health indicators (🟢🟡🔴) for quick assessment
|
|
171
|
+
- Provides actionable recommendations (HIGH/MEDIUM/LOW)
|
|
172
|
+
- Saves reports to docs/08-project/metrics-reports/
|
|
173
|
+
- Always includes timeframe and generation timestamp
|
|
70
174
|
|
|
71
175
|
<!-- COMPACT_SUMMARY_END -->
|
|
72
176
|
|