agileflow 2.94.1 → 2.95.1
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/CHANGELOG.md +20 -0
- package/README.md +3 -3
- package/lib/colors.generated.js +117 -0
- package/lib/colors.js +59 -109
- package/lib/generator-factory.js +333 -0
- package/lib/path-utils.js +49 -0
- package/lib/session-registry.js +25 -15
- package/lib/smart-json-file.js +40 -32
- package/lib/state-machine.js +286 -0
- package/package.json +1 -1
- package/scripts/agileflow-configure.js +7 -6
- package/scripts/archive-completed-stories.sh +86 -11
- package/scripts/babysit-context-restore.js +89 -0
- package/scripts/claude-tmux.sh +111 -5
- package/scripts/damage-control/bash-tool-damage-control.js +11 -247
- package/scripts/damage-control/edit-tool-damage-control.js +9 -249
- package/scripts/damage-control/write-tool-damage-control.js +9 -244
- package/scripts/generate-colors.js +314 -0
- package/scripts/lib/colors.generated.sh +82 -0
- package/scripts/lib/colors.sh +10 -70
- package/scripts/lib/configure-features.js +401 -0
- package/scripts/lib/context-loader.js +181 -52
- package/scripts/precompact-context.sh +54 -17
- package/scripts/session-coordinator.sh +2 -2
- package/scripts/session-manager.js +653 -10
- package/src/core/commands/audit.md +93 -0
- package/src/core/commands/auto.md +73 -0
- package/src/core/commands/babysit.md +169 -13
- package/src/core/commands/baseline.md +73 -0
- package/src/core/commands/batch.md +64 -0
- package/src/core/commands/blockers.md +60 -0
- package/src/core/commands/board.md +66 -0
- package/src/core/commands/choose.md +77 -0
- package/src/core/commands/ci.md +77 -0
- package/src/core/commands/compress.md +27 -1
- package/src/core/commands/configure.md +126 -10
- package/src/core/commands/council.md +74 -0
- package/src/core/commands/debt.md +72 -0
- package/src/core/commands/deploy.md +73 -0
- package/src/core/commands/deps.md +68 -0
- package/src/core/commands/docs.md +60 -0
- package/src/core/commands/feedback.md +68 -0
- package/src/core/commands/ideate.md +74 -0
- package/src/core/commands/impact.md +74 -0
- package/src/core/commands/install.md +529 -0
- package/src/core/commands/maintain.md +558 -0
- package/src/core/commands/metrics.md +75 -0
- package/src/core/commands/multi-expert.md +74 -0
- package/src/core/commands/packages.md +69 -0
- package/src/core/commands/readme-sync.md +64 -0
- package/src/core/commands/research/analyze.md +285 -121
- package/src/core/commands/research/import.md +281 -109
- package/src/core/commands/retro.md +76 -0
- package/src/core/commands/review.md +72 -0
- package/src/core/commands/rlm.md +83 -0
- package/src/core/commands/rpi.md +90 -0
- package/src/core/commands/session/cleanup.md +214 -12
- package/src/core/commands/session/end.md +155 -17
- package/src/core/commands/sprint.md +72 -0
- package/src/core/commands/story-validate.md +68 -0
- package/src/core/commands/template.md +69 -0
- package/src/core/commands/tests.md +83 -0
- package/src/core/commands/update.md +59 -0
- package/src/core/commands/validate-expertise.md +76 -0
- package/src/core/commands/velocity.md +74 -0
- package/src/core/commands/verify.md +91 -0
- package/src/core/commands/whats-new.md +69 -0
- package/src/core/commands/workflow.md +88 -0
- package/src/core/templates/command-documentation.md +187 -0
- package/tools/cli/commands/session.js +1171 -0
- package/tools/cli/commands/setup.js +2 -81
- package/tools/cli/installers/core/installer.js +0 -5
- package/tools/cli/installers/ide/claude-code.js +6 -0
- package/tools/cli/lib/config-manager.js +42 -5
|
@@ -11,7 +11,7 @@ compact_context:
|
|
|
11
11
|
- "MUST use diff-first: show formatted result BEFORE saving"
|
|
12
12
|
- "MUST update docs/10-research/README.md index after saving"
|
|
13
13
|
- "DO NOT jump to artifacts: ask 'would you like analysis' FIRST"
|
|
14
|
-
- "If user wants analysis: EnterPlanMode →
|
|
14
|
+
- "If user wants analysis: EnterPlanMode → deploy 3-5 experts IN PARALLEL → synthesize → Implementation Ideation Report"
|
|
15
15
|
- "Intelligent artifact recommendation based on research type (not always Epic)"
|
|
16
16
|
state_fields:
|
|
17
17
|
- topic
|
|
@@ -20,6 +20,9 @@ compact_context:
|
|
|
20
20
|
- formatted_research
|
|
21
21
|
- file_saved
|
|
22
22
|
- analysis_requested
|
|
23
|
+
- experts_deployed
|
|
24
|
+
- expert_results
|
|
25
|
+
- consensus_level
|
|
23
26
|
---
|
|
24
27
|
|
|
25
28
|
# /agileflow:research:import
|
|
@@ -81,10 +84,11 @@ Phase 3: SAVE & INDEX
|
|
|
81
84
|
├─ Update docs/10-research/README.md index
|
|
82
85
|
└─ Offer implementation analysis (ASK FIRST)
|
|
83
86
|
|
|
84
|
-
Phase 4:
|
|
85
|
-
├─ Enter plan mode
|
|
86
|
-
├─
|
|
87
|
-
├─
|
|
87
|
+
Phase 4: IMPLEMENTATION IDEATION (If Requested)
|
|
88
|
+
├─ Enter plan mode + select 3-5 domain experts
|
|
89
|
+
├─ Deploy experts IN PARALLEL (like /ideate)
|
|
90
|
+
├─ Collect results + synthesize with confidence scoring
|
|
91
|
+
├─ Present unified report with expert consensus
|
|
88
92
|
└─ Suggest intelligent artifact (ADR/Epic/Story/Practice)
|
|
89
93
|
```
|
|
90
94
|
|
|
@@ -182,7 +186,7 @@ Add entry to the top of the table:
|
|
|
182
186
|
"header": "Analyze",
|
|
183
187
|
"multiSelect": false,
|
|
184
188
|
"options": [
|
|
185
|
-
{"label": "Yes -
|
|
189
|
+
{"label": "Yes - Implementation ideation with multi-expert analysis (Recommended)", "description": "Deploy 3-5 domain experts to analyze from security, performance, testing, and architecture perspectives"},
|
|
186
190
|
{"label": "No - Just save the research", "description": "Keep as reference, I can analyze later"},
|
|
187
191
|
{"label": "Link to existing Epic/Story", "description": "Reference from current work without full analysis"}
|
|
188
192
|
]
|
|
@@ -192,24 +196,29 @@ Add entry to the top of the table:
|
|
|
192
196
|
|
|
193
197
|
**If "No"**: Research saved, exit gracefully.
|
|
194
198
|
**If "Link"**: Add research reference to document, exit.
|
|
195
|
-
**If "Yes"**: Continue to
|
|
199
|
+
**If "Yes"**: Continue to Implementation Ideation (Phase 4).
|
|
196
200
|
|
|
197
201
|
---
|
|
198
202
|
|
|
199
|
-
### 🚨 RULE #7:
|
|
203
|
+
### 🚨 RULE #7: IMPLEMENTATION IDEATION = PLAN MODE + MULTI-EXPERT ANALYSIS
|
|
200
204
|
|
|
201
|
-
**When
|
|
205
|
+
**When user requests analysis, you MUST:**
|
|
202
206
|
|
|
207
|
+
1. **Enter plan mode**:
|
|
203
208
|
```xml
|
|
204
209
|
<invoke name="EnterPlanMode"/>
|
|
205
210
|
```
|
|
206
211
|
|
|
207
|
-
|
|
212
|
+
2. **Gather project context**:
|
|
208
213
|
```bash
|
|
209
214
|
node .agileflow/scripts/obtain-context.js babysit
|
|
210
215
|
```
|
|
211
216
|
|
|
212
|
-
**
|
|
217
|
+
3. **Deploy 3-5 domain experts IN PARALLEL** (see RULE #10 for expert selection)
|
|
218
|
+
|
|
219
|
+
4. **Synthesize results** with confidence scoring
|
|
220
|
+
|
|
221
|
+
**Why**: Single-perspective analysis misses domain-specific considerations. Multi-expert analysis provides security, performance, testing, and architecture perspectives for comprehensive implementation guidance.
|
|
213
222
|
|
|
214
223
|
---
|
|
215
224
|
|
|
@@ -244,6 +253,42 @@ node .agileflow/scripts/obtain-context.js babysit
|
|
|
244
253
|
|
|
245
254
|
---
|
|
246
255
|
|
|
256
|
+
### 🚨 RULE #10: IMPLEMENTATION IDEATION (Multi-Expert Analysis)
|
|
257
|
+
|
|
258
|
+
When user requests "Yes - Implementation ideation with multi-expert analysis":
|
|
259
|
+
|
|
260
|
+
1. **Enter Plan Mode** and auto-detect research type to select experts
|
|
261
|
+
2. **Deploy 3-5 experts IN PARALLEL** (like /ideate pattern)
|
|
262
|
+
3. **Each expert analyzes from their domain perspective**:
|
|
263
|
+
- Implementation fit for codebase
|
|
264
|
+
- Domain-specific considerations
|
|
265
|
+
- Recommended approach with specific files
|
|
266
|
+
- Risks and gotchas
|
|
267
|
+
4. **Synthesize with confidence scoring**:
|
|
268
|
+
- HIGH CONFIDENCE: 2+ experts agree on approach/files
|
|
269
|
+
- MEDIUM CONFIDENCE: 1 expert with specific evidence
|
|
270
|
+
5. **Present unified Implementation Ideation Report** with expert consensus
|
|
271
|
+
|
|
272
|
+
**Expert Selection by Research Type:**
|
|
273
|
+
|
|
274
|
+
| Research Type | Experts (Deploy ALL in parallel) |
|
|
275
|
+
|--------------|--------------------------------|
|
|
276
|
+
| Architecture/Framework | api, database, performance, security (4) |
|
|
277
|
+
| Feature Implementation | api, ui, testing, database (4) |
|
|
278
|
+
| Security/Compliance | security, api, testing, compliance (4) |
|
|
279
|
+
| Performance | performance, database, api, monitoring (4) |
|
|
280
|
+
| Best Practices | refactor, testing, documentation (3) |
|
|
281
|
+
| Full-Stack (default) | api, ui, database, testing, security (5) |
|
|
282
|
+
|
|
283
|
+
**Detection Keywords:**
|
|
284
|
+
- **Security**: auth, oauth, jwt, encryption, vulnerability, compliance
|
|
285
|
+
- **Performance**: cache, optimize, latency, throughput, benchmark
|
|
286
|
+
- **Architecture**: migrate, upgrade, framework, refactor, redesign
|
|
287
|
+
- **UI**: component, styling, accessibility, ux, design system
|
|
288
|
+
- **Database**: schema, migration, query, index, model
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
247
292
|
### FORMATTED RESEARCH STRUCTURE
|
|
248
293
|
|
|
249
294
|
Every imported research must be formatted as:
|
|
@@ -313,7 +358,8 @@ Every imported research must be formatted as:
|
|
|
313
358
|
❌ Reformat or clean up code snippets
|
|
314
359
|
❌ Forget to update docs/10-research/README.md
|
|
315
360
|
❌ Jump straight to artifact creation without asking
|
|
316
|
-
❌
|
|
361
|
+
❌ Single-perspective analysis (shallow, misses domain considerations)
|
|
362
|
+
❌ Deploy experts one at a time (MUST be parallel)
|
|
317
363
|
❌ Assume Epic is the right artifact for all research
|
|
318
364
|
|
|
319
365
|
### DO THESE INSTEAD
|
|
@@ -322,10 +368,11 @@ Every imported research must be formatted as:
|
|
|
322
368
|
✅ Show formatted result before saving
|
|
323
369
|
✅ Preserve code snippets exactly as provided
|
|
324
370
|
✅ Always update the research index
|
|
325
|
-
✅ Ask "Do you want
|
|
326
|
-
✅
|
|
327
|
-
✅
|
|
328
|
-
✅
|
|
371
|
+
✅ Ask "Do you want implementation ideation?" before proceeding
|
|
372
|
+
✅ Deploy 3-5 domain experts IN PARALLEL for multi-perspective analysis
|
|
373
|
+
✅ Synthesize expert results with confidence scoring
|
|
374
|
+
✅ Present Implementation Ideation Report with expert consensus
|
|
375
|
+
✅ Recommend artifact type based on expert agreement
|
|
329
376
|
|
|
330
377
|
---
|
|
331
378
|
|
|
@@ -351,22 +398,24 @@ Every imported research must be formatted as:
|
|
|
351
398
|
11. Update docs/10-research/README.md index
|
|
352
399
|
|
|
353
400
|
**Phase 5: Offer Analysis**
|
|
354
|
-
12. Ask "Do you want implementation
|
|
401
|
+
12. Ask "Do you want implementation ideation?"
|
|
355
402
|
13. If "No": Done
|
|
356
403
|
14. If "Link": Add reference to document, exit
|
|
357
404
|
15. If "Yes": Continue to Phase 6
|
|
358
405
|
|
|
359
|
-
**Phase 6:
|
|
360
|
-
16. Enter plan mode
|
|
361
|
-
17.
|
|
362
|
-
18.
|
|
363
|
-
19.
|
|
364
|
-
20.
|
|
406
|
+
**Phase 6: Implementation Ideation (If Requested)**
|
|
407
|
+
16. Enter plan mode + select 3-5 domain experts
|
|
408
|
+
17. Deploy experts IN PARALLEL (Task tool with run_in_background)
|
|
409
|
+
18. Collect results (TaskOutput) + synthesize with confidence scoring
|
|
410
|
+
19. Present Implementation Ideation Report
|
|
411
|
+
20. Confirm interest in proceeding
|
|
412
|
+
21. Recommend artifact type based on expert consensus
|
|
413
|
+
22. Create artifact if user confirms
|
|
365
414
|
|
|
366
415
|
**Phase 7: Finish**
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
416
|
+
23. Exit plan mode
|
|
417
|
+
24. Confirm artifact created with expert validation
|
|
418
|
+
25. Research ready for implementation with expert-validated guidance
|
|
370
419
|
|
|
371
420
|
---
|
|
372
421
|
|
|
@@ -388,9 +437,11 @@ Every imported research must be formatted as:
|
|
|
388
437
|
- Format into structured markdown
|
|
389
438
|
- Show preview BEFORE saving (diff-first)
|
|
390
439
|
- Always update docs/10-research/README.md
|
|
391
|
-
- Ask "Do you want
|
|
392
|
-
- If
|
|
393
|
-
-
|
|
440
|
+
- Ask "Do you want implementation ideation?" BEFORE assuming
|
|
441
|
+
- If ideation requested: enter plan mode + deploy 3-5 domain experts IN PARALLEL
|
|
442
|
+
- Synthesize expert results with confidence scoring (HIGH = 2+ agree)
|
|
443
|
+
- Present unified Implementation Ideation Report
|
|
444
|
+
- Recommend artifact type based on expert consensus
|
|
394
445
|
|
|
395
446
|
<!-- COMPACT_SUMMARY_END -->
|
|
396
447
|
|
|
@@ -423,9 +474,11 @@ Upon invocation, execute these steps:
|
|
|
423
474
|
{"content": "Show diff for review", "status": "pending", "activeForm": "Showing preview"},
|
|
424
475
|
{"content": "Save to docs/10-research/", "status": "pending", "activeForm": "Saving file"},
|
|
425
476
|
{"content": "Update README.md index", "status": "pending", "activeForm": "Updating index"},
|
|
426
|
-
{"content": "Offer implementation
|
|
427
|
-
{"content": "Enter plan mode and
|
|
428
|
-
{"content": "
|
|
477
|
+
{"content": "Offer implementation ideation", "status": "pending", "activeForm": "Offering ideation"},
|
|
478
|
+
{"content": "Enter plan mode and select domain experts (if requested)", "status": "pending", "activeForm": "Selecting experts"},
|
|
479
|
+
{"content": "Deploy 3-5 experts in parallel", "status": "pending", "activeForm": "Deploying experts"},
|
|
480
|
+
{"content": "Synthesize expert results with confidence scoring", "status": "pending", "activeForm": "Synthesizing results"},
|
|
481
|
+
{"content": "Present Implementation Ideation Report", "status": "pending", "activeForm": "Presenting report"},
|
|
429
482
|
{"content": "Suggest and create appropriate artifact", "status": "pending", "activeForm": "Creating artifact"}
|
|
430
483
|
]</parameter>
|
|
431
484
|
</invoke>
|
|
@@ -613,7 +666,7 @@ After saving, ask if the user wants to understand how this research applies to t
|
|
|
613
666
|
"header": "Analyze",
|
|
614
667
|
"multiSelect": false,
|
|
615
668
|
"options": [
|
|
616
|
-
{"label": "Yes -
|
|
669
|
+
{"label": "Yes - Implementation ideation with multi-expert analysis (Recommended)", "description": "Deploy 3-5 domain experts to analyze from security, performance, testing, and architecture perspectives"},
|
|
617
670
|
{"label": "No - Just save the research", "description": "Keep as reference, I can analyze later"},
|
|
618
671
|
{"label": "Link to existing Epic/Story", "description": "Reference from current work without full analysis"}
|
|
619
672
|
]
|
|
@@ -632,7 +685,7 @@ After saving, ask if the user wants to understand how this research applies to t
|
|
|
632
685
|
|
|
633
686
|
---
|
|
634
687
|
|
|
635
|
-
### Step 10: Enter Plan Mode and
|
|
688
|
+
### Step 10: Enter Plan Mode and Select Experts
|
|
636
689
|
|
|
637
690
|
```xml
|
|
638
691
|
<invoke name="EnterPlanMode"/>
|
|
@@ -644,101 +697,220 @@ Then immediately gather project context:
|
|
|
644
697
|
node .agileflow/scripts/obtain-context.js babysit
|
|
645
698
|
```
|
|
646
699
|
|
|
647
|
-
|
|
648
|
-
- `CLAUDE.md` or `README.md` for project overview
|
|
649
|
-
- Relevant source files based on research topic
|
|
650
|
-
- Existing architecture/pattern files
|
|
700
|
+
**Auto-detect research type and select experts:**
|
|
651
701
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
702
|
+
Analyze the TOPIC and CONTENT to determine research type, then select 3-5 experts:
|
|
703
|
+
|
|
704
|
+
| Research Type | Detection Keywords | Experts |
|
|
705
|
+
|--------------|-------------------|---------|
|
|
706
|
+
| **Security/Compliance** | auth, oauth, jwt, encryption, vulnerability, compliance, csrf, xss | security, api, testing, compliance |
|
|
707
|
+
| **Performance** | cache, optimize, latency, throughput, benchmark, profiling | performance, database, api, monitoring |
|
|
708
|
+
| **Architecture/Framework** | migrate, upgrade, framework, refactor, redesign, architecture | api, database, performance, security |
|
|
709
|
+
| **UI/Frontend** | component, styling, accessibility, ux, design system, responsive | ui, api, testing, accessibility |
|
|
710
|
+
| **Database** | schema, migration, query, index, model, postgres, mongo | database, api, performance, datamigration |
|
|
711
|
+
| **Full-Stack (default)** | multiple domains or unclear | api, ui, database, testing, security |
|
|
657
712
|
|
|
658
713
|
---
|
|
659
714
|
|
|
660
|
-
### Step 11:
|
|
715
|
+
### Step 11: Deploy Experts in Parallel
|
|
661
716
|
|
|
662
|
-
|
|
717
|
+
**CRITICAL**: Deploy ALL selected experts in a SINGLE message using the Task tool.
|
|
663
718
|
|
|
664
|
-
|
|
665
|
-
|
|
719
|
+
Each expert receives this prompt template:
|
|
720
|
+
|
|
721
|
+
```
|
|
722
|
+
EXPERTISE FIRST: Read your expertise.yaml file if it exists at .agileflow/expertise/{domain}.yaml
|
|
723
|
+
|
|
724
|
+
RESEARCH TOPIC: {TOPIC}
|
|
725
|
+
RESEARCH SUMMARY: {2-3 paragraph summary from imported content}
|
|
726
|
+
PROJECT CONTEXT: {from obtain-context.js output}
|
|
727
|
+
|
|
728
|
+
TASK: Analyze this research from your {DOMAIN} perspective:
|
|
729
|
+
|
|
730
|
+
1. **Implementation Fit**: How well does this fit the current codebase?
|
|
731
|
+
- What patterns/files would need to change?
|
|
732
|
+
- Any conflicts with existing architecture?
|
|
733
|
+
|
|
734
|
+
2. **Domain-Specific Considerations**: From your expertise:
|
|
735
|
+
- For SECURITY: What security implications? Risks? Compliance needs?
|
|
736
|
+
- For PERFORMANCE: What performance impacts? Bottlenecks? Optimization opportunities?
|
|
737
|
+
- For TESTING: What test coverage needed? Edge cases? Regression risks?
|
|
738
|
+
- For API: What API changes? Breaking changes? Versioning needs?
|
|
739
|
+
- For UI: What UX considerations? Accessibility? Design patterns?
|
|
740
|
+
- For DATABASE: What schema changes? Migration strategy? Query impact?
|
|
741
|
+
|
|
742
|
+
3. **Implementation Approach**: Your recommended approach:
|
|
743
|
+
- Key files to modify (specific paths from codebase)
|
|
744
|
+
- Effort estimate (hours/days/weeks)
|
|
745
|
+
- Dependencies or prerequisites
|
|
746
|
+
|
|
747
|
+
4. **Risks & Gotchas**: What could go wrong?
|
|
748
|
+
- Technical risks
|
|
749
|
+
- Migration complexity
|
|
750
|
+
- Team adoption concerns
|
|
751
|
+
|
|
752
|
+
FORMAT as structured markdown with specific file paths and evidence from codebase.
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
**Deploy using Task tool (ALL in one message):**
|
|
756
|
+
|
|
757
|
+
```xml
|
|
758
|
+
<invoke name="Task">
|
|
759
|
+
<parameter name="description">Security analysis of {TOPIC}</parameter>
|
|
760
|
+
<parameter name="prompt">{prompt with DOMAIN=security}</parameter>
|
|
761
|
+
<parameter name="subagent_type">agileflow-security</parameter>
|
|
762
|
+
<parameter name="run_in_background">true</parameter>
|
|
763
|
+
</invoke>
|
|
764
|
+
|
|
765
|
+
<invoke name="Task">
|
|
766
|
+
<parameter name="description">API analysis of {TOPIC}</parameter>
|
|
767
|
+
<parameter name="prompt">{prompt with DOMAIN=api}</parameter>
|
|
768
|
+
<parameter name="subagent_type">agileflow-api</parameter>
|
|
769
|
+
<parameter name="run_in_background">true</parameter>
|
|
770
|
+
</invoke>
|
|
771
|
+
|
|
772
|
+
<invoke name="Task">
|
|
773
|
+
<parameter name="description">Testing analysis of {TOPIC}</parameter>
|
|
774
|
+
<parameter name="prompt">{prompt with DOMAIN=testing}</parameter>
|
|
775
|
+
<parameter name="subagent_type">agileflow-testing</parameter>
|
|
776
|
+
<parameter name="run_in_background">true</parameter>
|
|
777
|
+
</invoke>
|
|
666
778
|
|
|
667
|
-
|
|
779
|
+
<!-- Continue for all selected experts -->
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
---
|
|
783
|
+
|
|
784
|
+
### Step 12: Collect Results and Synthesize
|
|
668
785
|
|
|
669
|
-
|
|
670
|
-
- [Benefit 1 - specific to this project]
|
|
671
|
-
- [Benefit 2 - quantifiable if possible]
|
|
672
|
-
- [Benefit 3 - addresses current gaps/pain points]
|
|
786
|
+
Collect all expert outputs:
|
|
673
787
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
788
|
+
```xml
|
|
789
|
+
<invoke name="TaskOutput">
|
|
790
|
+
<parameter name="task_id">{security_task_id}</parameter>
|
|
791
|
+
<parameter name="block">true</parameter>
|
|
792
|
+
<parameter name="timeout">60000</parameter>
|
|
793
|
+
</invoke>
|
|
794
|
+
|
|
795
|
+
<!-- Repeat for each expert -->
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
**Synthesis Process:**
|
|
799
|
+
|
|
800
|
+
1. **Find Consensus**: Group similar recommendations across experts
|
|
801
|
+
- **HIGH CONFIDENCE**: 2+ experts recommend same approach/files
|
|
802
|
+
- **MEDIUM CONFIDENCE**: 1 expert with specific evidence
|
|
803
|
+
|
|
804
|
+
2. **Aggregate Effort Estimates**: Average across experts, note range
|
|
805
|
+
|
|
806
|
+
3. **Collect All Risks**: Union of risks from all experts, prioritize by frequency
|
|
807
|
+
|
|
808
|
+
4. **Validate Artifact Recommendation** via expert consensus:
|
|
809
|
+
- If experts mention "decision", "tradeoffs", "alternatives" → **ADR**
|
|
810
|
+
- If experts identify 5+ files across multiple domains → **Epic + Stories**
|
|
811
|
+
- If experts agree on single focus area, 1-3 files → **Story**
|
|
812
|
+
- If experts focus on guidelines, patterns → **Practice doc**
|
|
677
813
|
|
|
678
814
|
---
|
|
679
815
|
|
|
680
|
-
###
|
|
816
|
+
### Step 13: Present Implementation Ideation Report
|
|
817
|
+
|
|
818
|
+
Present the synthesized analysis:
|
|
819
|
+
|
|
820
|
+
```markdown
|
|
821
|
+
## 🧠 Implementation Ideation Report
|
|
822
|
+
|
|
823
|
+
**Research**: {TOPIC}
|
|
824
|
+
**Experts Consulted**: {list of 3-5 experts with badges}
|
|
825
|
+
**Consensus Level**: {High/Medium/Low based on agreement}
|
|
826
|
+
|
|
827
|
+
---
|
|
681
828
|
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|------|--------|--------|
|
|
685
|
-
| `path/to/file1.ts` | [What changes] | Low |
|
|
686
|
-
| `path/to/file2.ts` | [What changes] | Medium |
|
|
829
|
+
### 🎯 High-Confidence Implementation Steps
|
|
830
|
+
*Agreed by 2+ experts*
|
|
687
831
|
|
|
688
|
-
**
|
|
689
|
-
-
|
|
832
|
+
1. **{Step title}**
|
|
833
|
+
- Experts: 🔒 security, 🧪 testing
|
|
834
|
+
- Files: `path/to/file1.ts`, `path/to/file2.ts`
|
|
835
|
+
- Effort: {averaged estimate}
|
|
836
|
+
- Approach: {consensus approach}
|
|
690
837
|
|
|
691
|
-
**
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
838
|
+
2. **{Step title}**
|
|
839
|
+
- Experts: ⚡ api, 🗄️ database
|
|
840
|
+
- Files: `path/to/file3.ts`
|
|
841
|
+
- Effort: {averaged estimate}
|
|
842
|
+
- Approach: {consensus approach}
|
|
695
843
|
|
|
696
844
|
---
|
|
697
845
|
|
|
698
|
-
###
|
|
846
|
+
### 💡 Domain-Specific Considerations
|
|
699
847
|
|
|
700
|
-
**
|
|
701
|
-
-
|
|
702
|
-
-
|
|
848
|
+
**🔒 Security** (security expert):
|
|
849
|
+
- {key consideration 1}
|
|
850
|
+
- {risk flagged}
|
|
851
|
+
- Mitigation: {recommended approach}
|
|
703
852
|
|
|
704
|
-
**
|
|
705
|
-
-
|
|
706
|
-
-
|
|
853
|
+
**⚡ Performance** (performance expert):
|
|
854
|
+
- {optimization opportunity}
|
|
855
|
+
- {bottleneck identified}
|
|
707
856
|
|
|
708
|
-
**
|
|
709
|
-
-
|
|
710
|
-
-
|
|
857
|
+
**🧪 Testing** (testing expert):
|
|
858
|
+
- {coverage requirements}
|
|
859
|
+
- {edge cases to handle}
|
|
860
|
+
- {regression risk assessment}
|
|
861
|
+
|
|
862
|
+
**🔧 API** (api expert):
|
|
863
|
+
- {API changes needed}
|
|
864
|
+
- {versioning considerations}
|
|
711
865
|
|
|
712
866
|
---
|
|
713
867
|
|
|
714
|
-
### ⚠️ Risks &
|
|
868
|
+
### ⚠️ Risks & Gotchas
|
|
869
|
+
*Flagged by experts*
|
|
715
870
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
871
|
+
| Risk | Expert(s) | Severity | Mitigation |
|
|
872
|
+
|------|-----------|----------|------------|
|
|
873
|
+
| {risk 1} | 🔒 security | High | {mitigation} |
|
|
874
|
+
| {risk 2} | ⚡ performance | Medium | {mitigation} |
|
|
875
|
+
| {risk 3} | 🧪 testing | Low | {mitigation} |
|
|
719
876
|
|
|
720
877
|
---
|
|
721
878
|
|
|
722
|
-
###
|
|
879
|
+
### 📊 Effort Estimate Summary
|
|
723
880
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
881
|
+
| Expert | Estimate | Notes |
|
|
882
|
+
|--------|----------|-------|
|
|
883
|
+
| security | {estimate} | {notes} |
|
|
884
|
+
| api | {estimate} | {notes} |
|
|
885
|
+
| testing | {estimate} | {notes} |
|
|
886
|
+
| **Consensus** | **{averaged}** | {range: min-max} |
|
|
887
|
+
|
|
888
|
+
---
|
|
727
889
|
|
|
728
|
-
|
|
890
|
+
### 📋 Recommended Artifact
|
|
891
|
+
|
|
892
|
+
Based on expert consensus: **{ADR/Epic/Story/Practice}**
|
|
893
|
+
|
|
894
|
+
**Reason**: {why this artifact type based on scope and expert recommendations}
|
|
895
|
+
|
|
896
|
+
**Evidence**:
|
|
897
|
+
- {expert 1} recommended: {artifact type}
|
|
898
|
+
- {expert 2} recommended: {artifact type}
|
|
899
|
+
- Scope assessment: {small/medium/large}
|
|
900
|
+
```
|
|
729
901
|
|
|
730
902
|
---
|
|
731
903
|
|
|
732
|
-
### Step
|
|
904
|
+
### Step 14: Confirm Interest in Implementing
|
|
733
905
|
|
|
734
906
|
```xml
|
|
735
907
|
<invoke name="AskUserQuestion">
|
|
736
908
|
<parameter name="questions">[{
|
|
737
|
-
"question": "Based on this analysis, would you like to proceed with implementation?",
|
|
909
|
+
"question": "Based on this multi-expert analysis, would you like to proceed with implementation?",
|
|
738
910
|
"header": "Proceed?",
|
|
739
911
|
"multiSelect": false,
|
|
740
912
|
"options": [
|
|
741
|
-
{"label": "Yes - Create implementation artifacts", "description": "I'll
|
|
913
|
+
{"label": "Yes - Create implementation artifacts", "description": "I'll create the recommended artifact based on expert consensus"},
|
|
742
914
|
{"label": "Modify approach first", "description": "Let's adjust the plan before creating artifacts"},
|
|
743
915
|
{"label": "Save analysis only", "description": "Exit plan mode, keep research + analysis for later"},
|
|
744
916
|
{"label": "Cancel", "description": "Exit plan mode, research already saved"}
|
|
@@ -748,34 +920,24 @@ Present this analysis to the user.
|
|
|
748
920
|
```
|
|
749
921
|
|
|
750
922
|
**If "Modify approach"**: Discuss changes, update analysis, re-ask.
|
|
751
|
-
**If "Save analysis only"**: Append
|
|
923
|
+
**If "Save analysis only"**: Append Implementation Ideation Report to the research file, exit plan mode.
|
|
752
924
|
**If "Cancel"**: Exit plan mode, done.
|
|
753
|
-
**If "Yes"**: Continue to Step
|
|
925
|
+
**If "Yes"**: Continue to Step 15.
|
|
754
926
|
|
|
755
927
|
---
|
|
756
928
|
|
|
757
|
-
### Step
|
|
929
|
+
### Step 15: Intelligently Suggest Artifact Type
|
|
758
930
|
|
|
759
|
-
Based on
|
|
760
|
-
|
|
761
|
-
| Research Type | Suggested Artifact | Indicators |
|
|
762
|
-
|---------------|-------------------|------------|
|
|
763
|
-
| Architecture/technology decision | **ADR** | "Should we use X or Y?", trade-offs, alternatives |
|
|
764
|
-
| Large feature with multiple parts | **Epic + Stories** | 5+ implementation steps, multiple domains |
|
|
765
|
-
| Single focused improvement | **Story** | Clear scope, 1-3 files, can be done in one session |
|
|
766
|
-
| Best practices/patterns | **Practice doc** | "How to do X", guidelines, not feature work |
|
|
767
|
-
| Code quality improvement | **Tech debt item** | Refactoring, cleanup, no user-facing change |
|
|
768
|
-
|
|
769
|
-
Present the recommendation:
|
|
931
|
+
Based on expert consensus, present the recommendation:
|
|
770
932
|
|
|
771
933
|
```xml
|
|
772
934
|
<invoke name="AskUserQuestion">
|
|
773
935
|
<parameter name="questions">[{
|
|
774
|
-
"question": "Based on
|
|
936
|
+
"question": "Based on expert consensus, I recommend creating: [ARTIFACT TYPE]. What would you like to do?",
|
|
775
937
|
"header": "Create",
|
|
776
938
|
"multiSelect": false,
|
|
777
939
|
"options": [
|
|
778
|
-
{"label": "[Recommended artifact] (Recommended)", "description": "[Why
|
|
940
|
+
{"label": "[Recommended artifact] (Recommended)", "description": "[Why experts agreed on this choice]"},
|
|
779
941
|
{"label": "Create ADR instead", "description": "Document this as an architecture decision"},
|
|
780
942
|
{"label": "Create Epic + Stories instead", "description": "Break down into trackable work items"},
|
|
781
943
|
{"label": "Create single Story instead", "description": "Track as a single work item"},
|
|
@@ -787,35 +949,45 @@ Present the recommendation:
|
|
|
787
949
|
|
|
788
950
|
---
|
|
789
951
|
|
|
790
|
-
### Step
|
|
952
|
+
### Step 16: Create Selected Artifact
|
|
791
953
|
|
|
792
954
|
**If ADR selected**:
|
|
793
955
|
- Use `/agileflow:adr` command format
|
|
794
956
|
- Reference the research file
|
|
795
|
-
- Include key decisions from analysis
|
|
957
|
+
- Include key decisions from expert analysis
|
|
958
|
+
- Document trade-offs identified by experts
|
|
796
959
|
|
|
797
960
|
**If Epic + Stories selected**:
|
|
798
961
|
- Create epic in status.json
|
|
799
|
-
- Generate stories based on implementation steps
|
|
962
|
+
- Generate stories based on high-confidence implementation steps
|
|
963
|
+
- Include expert-identified risks as acceptance criteria
|
|
800
964
|
- Reference research in epic
|
|
801
965
|
|
|
802
966
|
**If Story selected**:
|
|
803
967
|
- Create single story with ACs from implementation steps
|
|
968
|
+
- Include testing requirements from testing expert
|
|
804
969
|
- Reference research
|
|
805
970
|
|
|
806
971
|
**If Practice doc selected**:
|
|
807
972
|
- Create doc in `docs/02-practices/`
|
|
808
973
|
- Format as guidelines/best practices
|
|
974
|
+
- Include expert-recommended patterns
|
|
809
975
|
|
|
810
976
|
After creation, exit plan mode and confirm:
|
|
811
977
|
|
|
812
978
|
```
|
|
813
979
|
✅ Created [ARTIFACT] from research "[TOPIC]"
|
|
814
980
|
|
|
981
|
+
**Multi-Expert Analysis Summary:**
|
|
982
|
+
- Experts consulted: {list}
|
|
983
|
+
- Consensus level: {High/Medium/Low}
|
|
984
|
+
- Key insights preserved: {count}
|
|
985
|
+
|
|
986
|
+
**Artifacts:**
|
|
815
987
|
- Research: docs/10-research/YYYYMMDD-topic.md
|
|
816
988
|
- [Artifact]: [path or ID]
|
|
817
989
|
|
|
818
|
-
The implementation plan is now tracked and ready to execute.
|
|
990
|
+
The implementation plan is now tracked and ready to execute with expert-validated guidance.
|
|
819
991
|
```
|
|
820
992
|
|
|
821
993
|
---
|