agileflow 2.92.0 → 2.93.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +6 -6
  3. package/lib/codebase-indexer.js +2 -1
  4. package/package.json +1 -1
  5. package/scripts/agileflow-statusline.sh +106 -0
  6. package/scripts/agileflow-welcome.js +135 -22
  7. package/scripts/document-repl.js +793 -0
  8. package/scripts/lib/configure-features.js +8 -1
  9. package/scripts/lib/context-loader.js +16 -16
  10. package/scripts/query-codebase.js +8 -3
  11. package/scripts/session-manager.js +374 -16
  12. package/scripts/spawn-parallel.js +72 -30
  13. package/src/core/agents/accessibility.md +19 -125
  14. package/src/core/agents/adr-writer.md +18 -1
  15. package/src/core/agents/analytics.md +19 -125
  16. package/src/core/agents/api.md +5 -130
  17. package/src/core/agents/ci.md +26 -131
  18. package/src/core/agents/compliance.md +21 -125
  19. package/src/core/agents/database.md +20 -125
  20. package/src/core/agents/datamigration.md +20 -125
  21. package/src/core/agents/design.md +19 -125
  22. package/src/core/agents/devops.md +12 -129
  23. package/src/core/agents/documentation.md +18 -1
  24. package/src/core/agents/epic-planner.md +31 -10
  25. package/src/core/agents/integrations.md +19 -125
  26. package/src/core/agents/mobile.md +19 -125
  27. package/src/core/agents/monitoring.md +19 -125
  28. package/src/core/agents/performance.md +19 -125
  29. package/src/core/agents/product.md +18 -1
  30. package/src/core/agents/qa.md +21 -125
  31. package/src/core/agents/readme-updater.md +18 -1
  32. package/src/core/agents/refactor.md +19 -125
  33. package/src/core/agents/research.md +3 -1
  34. package/src/core/agents/rlm-subcore.md +202 -0
  35. package/src/core/agents/security.md +7 -125
  36. package/src/core/agents/testing.md +20 -125
  37. package/src/core/agents/ui.md +14 -135
  38. package/src/core/commands/adr/list.md +20 -0
  39. package/src/core/commands/adr/update.md +24 -1
  40. package/src/core/commands/adr/view.md +23 -1
  41. package/src/core/commands/adr.md +2 -2
  42. package/src/core/commands/agent.md +11 -1
  43. package/src/core/commands/assign.md +15 -6
  44. package/src/core/commands/auto.md +11 -1
  45. package/src/core/commands/babysit.md +15 -4
  46. package/src/core/commands/baseline.md +11 -1
  47. package/src/core/commands/batch.md +11 -1
  48. package/src/core/commands/blockers.md +11 -1
  49. package/src/core/commands/board.md +11 -1
  50. package/src/core/commands/changelog.md +11 -0
  51. package/src/core/commands/choose.md +16 -1
  52. package/src/core/commands/ci.md +11 -1
  53. package/src/core/commands/configure.md +73 -2
  54. package/src/core/commands/context/export.md +8 -0
  55. package/src/core/commands/context/full.md +8 -0
  56. package/src/core/commands/context/note.md +8 -0
  57. package/src/core/commands/debt.md +11 -0
  58. package/src/core/commands/deploy.md +10 -0
  59. package/src/core/commands/deps.md +11 -1
  60. package/src/core/commands/diagnose.md +10 -0
  61. package/src/core/commands/docs.md +12 -2
  62. package/src/core/commands/epic/list.md +20 -0
  63. package/src/core/commands/epic/view.md +25 -0
  64. package/src/core/commands/epic.md +5 -6
  65. package/src/core/commands/feedback.md +11 -0
  66. package/src/core/commands/handoff.md +12 -2
  67. package/src/core/commands/help.md +10 -0
  68. package/src/core/commands/ideate.md +10 -0
  69. package/src/core/commands/impact.md +11 -1
  70. package/src/core/commands/metrics.md +11 -1
  71. package/src/core/commands/multi-expert.md +11 -1
  72. package/src/core/commands/packages.md +11 -0
  73. package/src/core/commands/pr.md +10 -0
  74. package/src/core/commands/readme-sync.md +10 -5
  75. package/src/core/commands/research/analyze.md +60 -3
  76. package/src/core/commands/research/ask.md +9 -1
  77. package/src/core/commands/research/import.md +8 -0
  78. package/src/core/commands/research/list.md +8 -0
  79. package/src/core/commands/research/synthesize.md +9 -1
  80. package/src/core/commands/research/view.md +8 -0
  81. package/src/core/commands/retro.md +12 -2
  82. package/src/core/commands/review.md +11 -1
  83. package/src/core/commands/rlm.md +363 -0
  84. package/src/core/commands/roadmap/analyze.md +1 -1
  85. package/src/core/commands/rpi.md +9 -1
  86. package/src/core/commands/session/cleanup.md +250 -0
  87. package/src/core/commands/session/end.md +10 -0
  88. package/src/core/commands/session/history.md +11 -1
  89. package/src/core/commands/session/init.md +10 -0
  90. package/src/core/commands/session/new.md +132 -13
  91. package/src/core/commands/session/resume.md +10 -0
  92. package/src/core/commands/session/spawn.md +8 -0
  93. package/src/core/commands/session/status.md +10 -0
  94. package/src/core/commands/skill/create.md +1 -1
  95. package/src/core/commands/skill/delete.md +11 -1
  96. package/src/core/commands/skill/edit.md +11 -1
  97. package/src/core/commands/skill/test.md +11 -1
  98. package/src/core/commands/skill/upgrade.md +11 -1
  99. package/src/core/commands/sprint.md +14 -3
  100. package/src/core/commands/status.md +15 -6
  101. package/src/core/commands/story/list.md +23 -0
  102. package/src/core/commands/story/view.md +24 -0
  103. package/src/core/commands/story.md +4 -5
  104. package/src/core/commands/template.md +10 -0
  105. package/src/core/commands/tests.md +10 -0
  106. package/src/core/commands/update.md +10 -0
  107. package/src/core/commands/validate-expertise.md +10 -1
  108. package/src/core/commands/velocity.md +11 -1
  109. package/src/core/commands/verify.md +13 -1
  110. package/src/core/commands/whats-new.md +8 -0
  111. package/src/core/commands/workflow.md +16 -1
  112. package/src/core/templates/agent-coordination-pattern.md +38 -0
  113. package/src/core/templates/agileflow-metadata.json +25 -0
  114. package/src/core/templates/preserve-rules-common.md +107 -0
  115. package/src/core/templates/preserve-rules.json +42 -0
  116. package/src/core/templates/proactive-action-spec.md +29 -0
  117. package/src/core/templates/quality-gate-priorities.md +34 -0
  118. package/src/core/templates/session-harness-protocol.md +128 -0
  119. package/tools/cli/commands/setup.js +12 -3
  120. package/tools/cli/installers/ide/windsurf.js +1 -1
  121. package/tools/cli/lib/content-injector.js +336 -0
  122. package/tools/cli/lib/ide-registry.js +2 -4
  123. package/tools/cli/lib/ui.js +2 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Auto-generate stories from PRDs, mockups, or specs
3
- argument-hint: SOURCE=<path|url> [EPIC=<id>] [OWNER=<agent>] [AUTO_CREATE=yes|no]
3
+ argument-hint: SOURCE=<path|url> [EPIC=<EP-ID>] [OWNER=<id>] [AUTO_CREATE=true|false]
4
4
  compact_context:
5
5
  priority: high
6
6
  preserve_rules:
@@ -471,3 +471,13 @@ OUTPUT
471
471
  - Story files (multiple)
472
472
  - Test stub files (multiple)
473
473
  - Updated status.json
474
+
475
+ ---
476
+
477
+ ## Related Commands
478
+
479
+ - `/agileflow:story` - Create user stories manually
480
+ - `/agileflow:epic` - Create epics
481
+ - `/agileflow:epic-planner` - Plan epic breakdown
482
+ - `/agileflow:sprint` - Sprint planning
483
+ - `/agileflow:babysit` - Mentor workflow
@@ -1,15 +1,14 @@
1
1
  ---
2
2
  description: Interactive mentor for end-to-end feature implementation
3
- argument-hint: "[EPIC=<id>] [MODE=loop] [MAX=<iterations>] [VISUAL=true] [COVERAGE=<percent>]"
3
+ argument-hint: [EPIC=<EP-ID>] [MODE=loop|once] [MAX=<number>] [VISUAL=true|false] [COVERAGE=<number>]
4
4
  compact_context:
5
5
  priority: critical
6
6
  preserve_rules:
7
7
  - "ACTIVE COMMAND: /agileflow-babysit - Mentor mode with expert delegation"
8
8
  - "🔔 MANDATORY: Call AskUserQuestion tool at END of EVERY response - especially after completing tasks"
9
9
  - "NEVER end with text like 'Done!' or 'What's next?' - ALWAYS use AskUserQuestion tool instead"
10
- - "MUST use EnterPlanMode FIRST for ANY non-trivial task (explore codebase, design approach, get approval)"
11
- - "MUST delegate complex work to domain experts (don't do everything yourself)"
12
- - "Simple task → do yourself | Complex single-domain → spawn expert | Multi-domain → spawn orchestrator"
10
+ - "{{RULES:plan_mode}}"
11
+ - "{{RULES:delegation}}"
13
12
  - "STUCK DETECTION: If same error 2+ times, suggest /agileflow:research:ask with 200+ line detailed prompt"
14
13
  - "Research prompts MUST include: 50+ lines actual code, exact error, what was tried, 3+ specific questions"
15
14
  - "STORY CLAIMING: Run 'node .agileflow/scripts/lib/story-claiming.js claim <id>' IMMEDIATELY after user selects story"
@@ -1059,3 +1058,15 @@ Based on your project state:
1059
1058
  3. You approve the plan
1060
1059
  4. I execute (directly or via domain experts)
1061
1060
  ```
1061
+
1062
+ ---
1063
+
1064
+ ## Related Commands
1065
+
1066
+ - `/agileflow:sprint` - Sprint planning with velocity forecasting
1067
+ - `/agileflow:board` - Visual kanban board of stories
1068
+ - `/agileflow:story` - Create new user stories
1069
+ - `/agileflow:epic` - Create new epics
1070
+ - `/agileflow:status` - Update story status
1071
+ - `/agileflow:blockers` - Track and resolve blockers
1072
+ - `/agileflow:research:ask` - Generate research prompts when stuck
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Mark current state as verified baseline
3
- argument-hint: [message] (optional)
3
+ argument-hint: [<message>]
4
4
  compact_context:
5
5
  priority: critical
6
6
  preserve_rules:
@@ -657,3 +657,13 @@ Claude: 🧪 Verifying all requirements...
657
657
 
658
658
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
659
659
  ```
660
+
661
+ ---
662
+
663
+ ## Related Commands
664
+
665
+ - `/agileflow:verify` - Run tests and update status
666
+ - `/agileflow:ci` - CI/CD workflow
667
+ - `/agileflow:tests` - Testing infrastructure
668
+ - `/agileflow:changelog` - Generate changelog
669
+ - `/agileflow:pr` - Create pull request
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Process multiple items with functional patterns (map/pmap/filter/reduce)
3
- argument-hint: <operation> <pattern> [action]
3
+ argument-hint: <operation> <pattern> [<action>]
4
4
  compact_context:
5
5
  priority: normal
6
6
  preserve_rules:
@@ -475,3 +475,13 @@ Future versions may add: coverage, lint, types gates.
475
475
  - Works with `/agileflow:babysit` for batch story processing
476
476
  - **Loop mode** enables iterative batch processing with quality gates
477
477
  - Integrates with agent system for parallel work
478
+
479
+ ---
480
+
481
+ ## Related Commands
482
+
483
+ - `/agileflow:babysit` - Mentor workflow
484
+ - `/agileflow:story` - Create user stories
485
+ - `/agileflow:tests` - Set up testing infrastructure
486
+ - `/agileflow:verify` - Run tests and verify
487
+ - `/agileflow:sprint` - Sprint planning
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Track and resolve blockers with actionable suggestions
3
- argument-hint: "[AGENT=<id>] [SHOW_RESOLVED=true] [DETAILED=true]"
3
+ argument-hint: [AGENT=<id>] [SHOW_RESOLVED=true|false] [DETAILED=true|false]
4
4
  model: haiku
5
5
  compact_context:
6
6
  priority: high
@@ -529,3 +529,13 @@ If yes, suggest:
529
529
  - `/story-new` for creating unblocking stories
530
530
  - `/handoff` for reassigning capacity-blocked stories
531
531
  - `/adr-new` for architectural blockers needing decisions
532
+
533
+ ---
534
+
535
+ ## Related Commands
536
+
537
+ - `/agileflow:status` - Update story status
538
+ - `/agileflow:board` - Kanban board view
539
+ - `/agileflow:sprint` - Sprint planning
540
+ - `/agileflow:handoff` - Document work handoff
541
+ - `/agileflow:deps` - Dependency visualization
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Display visual kanban board with WIP limits
3
- argument-hint: "[EPIC=<id>] [OWNER=<id>] [FORMAT=ascii|markdown|html] [GROUP_BY=status|owner|epic]"
3
+ argument-hint: [EPIC=<EP-ID>] [OWNER=<id>] [FORMAT=ascii|markdown|html] [GROUP_BY=status|owner|epic]
4
4
  model: haiku
5
5
  type: output-only # Board display - read-only visualization, not an ongoing task
6
6
  compact_context:
@@ -430,3 +430,13 @@ OUTPUT
430
430
  - Statistics summary
431
431
  - Action suggestions
432
432
  - Optional: saved snapshot file
433
+
434
+ ---
435
+
436
+ ## Related Commands
437
+
438
+ - `/agileflow:sprint` - Sprint planning
439
+ - `/agileflow:status` - Update story status
440
+ - `/agileflow:blockers` - Track blockers
441
+ - `/agileflow:story:list` - List all stories
442
+ - `/agileflow:epic:view` - View epic details
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  description: Auto-generate changelog from commit history
3
+ argument-hint: (no arguments)
3
4
  compact_context:
4
5
  priority: high
5
6
  preserve_rules:
@@ -529,6 +530,16 @@ User selected: Changed
529
530
  [Continuing with remaining commits...]
530
531
  ```
531
532
 
533
+ ---
534
+
535
+ ## Related Commands
536
+
537
+ - `/agileflow:docs` - Synchronize documentation with code
538
+ - `/agileflow:update` - Generate stakeholder progress report
539
+ - `/agileflow:pr` - Generate pull request from story
540
+ - `/agileflow:deploy` - Set up deployment pipeline
541
+ - `/agileflow:whats-new` - Show AgileFlow version history
542
+
532
543
  ### Version Suggestion
533
544
 
534
545
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: AI-directed decision making with structured options
3
- argument-hint: <decision> [context]
3
+ argument-hint: <decision> [<context>]
4
4
  compact_context:
5
5
  priority: normal
6
6
  preserve_rules:
@@ -8,6 +8,11 @@ compact_context:
8
8
  - "AI selects best option based on context"
9
9
  - "Always explain selection rationale"
10
10
  - "Can delegate to experts for analysis before choosing"
11
+ state_fields:
12
+ - decision_question
13
+ - options_analyzed
14
+ - selected_option
15
+ - selection_rationale
11
16
  ---
12
17
 
13
18
  # /agileflow:choose
@@ -335,3 +340,13 @@ Use `/agileflow:choose` for decisions that:
335
340
  3. **Be honest about trade-offs**: Every option has downsides
336
341
  4. **Document decisions**: Use `/agileflow:adr` for important architectural choices
337
342
  5. **Revisit decisions**: Circumstances change; choices may need updating
343
+
344
+ ---
345
+
346
+ ## Related Commands
347
+
348
+ - `/agileflow:adr` - Create Architecture Decision Records
349
+ - `/agileflow:multi-expert` - Deploy multiple experts for analysis
350
+ - `/agileflow:workflow` - Run parameterized workflows
351
+ - `/agileflow:babysit` - Interactive mentor workflow
352
+ - `/agileflow:rpi` - Research-Plan-Implement workflow
@@ -7,7 +7,7 @@ compact_context:
7
7
  - "CI setup creates .github/workflows/ci.yml with lint/typecheck/test jobs"
8
8
  - "MUST parse OWNERS input (comma-separated GitHub handles or team names)"
9
9
  - "MUST create CODEOWNERS file with owner mappings for src/ and docs/03-decisions/"
10
- - "ALWAYS show diff-first preview before creating files (YES/NO confirmation required)"
10
+ - "{{RULES:file_preview}}"
11
11
  - "Concurrency control and minimal permissions are required for security"
12
12
  state_fields:
13
13
  - owners_input
@@ -240,3 +240,13 @@ ACTIONS
240
240
  3) Print notes for enabling required checks.
241
241
 
242
242
  Diff-first; YES/NO.
243
+
244
+ ---
245
+
246
+ ## Related Commands
247
+
248
+ - `/agileflow:configure` - Manage AgileFlow features and hooks
249
+ - `/agileflow:deploy` - Set up deployment pipeline
250
+ - `/agileflow:tests` - Set up testing infrastructure
251
+ - `/agileflow:verify` - Run tests and verify stories
252
+ - `/agileflow:pr` - Generate pull request from story
@@ -7,7 +7,7 @@ compact_context:
7
7
  - "ACTIVE COMMAND: /agileflow:configure - Configuration manager for AgileFlow features"
8
8
  - "CRITICAL: Max 4 options per AskUserQuestion - use hierarchical menus"
9
9
  - "CRITICAL: Run --detect FIRST, handle issues, then show Main Menu"
10
- - "Main Menu (4 categories): Profiles | Features | Infrastructure | Maintenance"
10
+ - "Main Menu (5 categories): Profiles | Features | Sessions | Infrastructure | Maintenance"
11
11
  - "Each category has its own sub-menu with max 4 options"
12
12
  - "MUST show RED RESTART banner after ANY changes"
13
13
  state_fields:
@@ -27,7 +27,7 @@ Configuration management with **hierarchical menus** (4 options max per question
27
27
 
28
28
  1. **Run detection**: `node .agileflow/scripts/agileflow-configure.js --detect`
29
29
  2. **Handle issues**: If ⚠️ INVALID FORMAT → migrate. If 🔄 OUTDATED → upgrade.
30
- 3. **Main menu** (4 categories): Profiles | Features | Infrastructure | Maintenance
30
+ 3. **Main menu** (5 categories): Profiles | Features | Sessions | Infrastructure | Maintenance
31
31
  4. **Sub-menu**: Based on selection, show category-specific options
32
32
 
33
33
  ### Menu Flow
@@ -39,6 +39,8 @@ Main Menu → "What would you like to configure?"
39
39
  │ └─ Custom: Save, Export, Import, Delete
40
40
  ├─ Features → Enable | Disable | View status
41
41
  │ └─ Hooks (4) + Other Features (4)
42
+ ├─ Sessions → Default startup mode for new sessions
43
+ │ └─ Normal | Skip permissions | Accept edits | No Claude
42
44
  ├─ Infrastructure → Visual E2E | Damage Control | CI/CD
43
45
  └─ Maintenance → Fix format | Upgrade | Repair | Check status
44
46
  ```
@@ -133,6 +135,7 @@ After handling issues (or if none), present the main category menu:
133
135
  "options": [
134
136
  {"label": "Profiles", "description": "Quick setup with preset configurations (full, basic, minimal)"},
135
137
  {"label": "Features", "description": "Enable or disable individual hooks and features"},
138
+ {"label": "Sessions", "description": "Configure default startup mode for new sessions"},
136
139
  {"label": "Infrastructure", "description": "Set up Visual E2E, Damage Control, or CI/CD"},
137
140
  {"label": "Maintenance", "description": "Fix issues, repair scripts, or check status"}
138
141
  ]
@@ -341,6 +344,63 @@ node .agileflow/scripts/agileflow-configure.js --disable=feature1,feature2
341
344
 
342
345
  ---
343
346
 
347
+ ### If "Sessions" selected
348
+
349
+ Configure default startup mode for new sessions created with `/agileflow:session:new`.
350
+
351
+ First, read current setting:
352
+ ```bash
353
+ cat docs/00-meta/agileflow-metadata.json | grep '"defaultStartupMode"' 2>/dev/null || echo "normal"
354
+ ```
355
+
356
+ Then present options:
357
+ ```xml
358
+ <invoke name="AskUserQuestion">
359
+ <parameter name="questions">[{
360
+ "question": "What should be the default Claude startup mode for new sessions?",
361
+ "header": "Startup",
362
+ "multiSelect": false,
363
+ "options": [
364
+ {"label": "Normal (Recommended)", "description": "Standard Claude with permission prompts"},
365
+ {"label": "Skip permissions", "description": "claude --dangerously-skip-permissions (trusted mode)"},
366
+ {"label": "Accept edits only", "description": "claude --permission-mode acceptEdits"},
367
+ {"label": "Don't start Claude", "description": "Create worktree only, start Claude manually"}
368
+ ]
369
+ }]</parameter>
370
+ </invoke>
371
+ ```
372
+
373
+ Map selection to value:
374
+ | Selection | defaultStartupMode value |
375
+ |-----------|--------------------------|
376
+ | Normal | `normal` |
377
+ | Skip permissions | `skip-permissions` |
378
+ | Accept edits only | `accept-edits` |
379
+ | Don't start Claude | `no-claude` |
380
+
381
+ Update the metadata file:
382
+ ```bash
383
+ # Read current metadata
384
+ metadata=$(cat docs/00-meta/agileflow-metadata.json)
385
+
386
+ # Update defaultStartupMode (using jq if available, or manual edit)
387
+ # The value should be one of: normal, skip-permissions, accept-edits, no-claude
388
+ ```
389
+
390
+ Or use the Edit tool to update `docs/00-meta/agileflow-metadata.json`:
391
+ - Find: `"defaultStartupMode": "..."`
392
+ - Replace with: `"defaultStartupMode": "{selected_value}"`
393
+
394
+ Display confirmation:
395
+ ```
396
+ ✅ Default session startup mode set to: {selected_value}
397
+
398
+ When creating new sessions with /agileflow:session:new, this will be the
399
+ recommended option. You can still choose a different mode per-session.
400
+ ```
401
+
402
+ ---
403
+
344
404
  ### If "Infrastructure" selected
345
405
 
346
406
  ```xml
@@ -834,3 +894,14 @@ Repaired: 1, Errors: 0, Skipped: 18
834
894
  | Scripts outdated (feature version differs) | `--upgrade` |
835
895
  | Settings format broken | `--migrate` |
836
896
  | Major corruption/reinstall needed | `npx agileflow update --force`
897
+
898
+ ---
899
+
900
+ ## Related Commands
901
+
902
+ - `/agileflow:ci` - Bootstrap CI/CD workflow
903
+ - `/agileflow:deploy` - Set up deployment pipeline
904
+ - `/agileflow:tests` - Set up testing infrastructure
905
+ - `/agileflow:template` - Manage custom templates
906
+ - `/agileflow:diagnose` - System health diagnostics
907
+ - `/agileflow:help` - Display AgileFlow overview
@@ -29,6 +29,14 @@ Reads `docs/context.md` and outputs a condensed excerpt (≤300 lines) ready to
29
29
 
30
30
  ---
31
31
 
32
+ ## STEP 0: Gather Context
33
+
34
+ ```bash
35
+ node .agileflow/scripts/obtain-context.js context:export
36
+ ```
37
+
38
+ ---
39
+
32
40
  <!-- COMPACT_SUMMARY_START -->
33
41
 
34
42
  ## ⚠️ COMPACT SUMMARY - /agileflow:context:export IS ACTIVE
@@ -38,6 +38,14 @@ This file is designed to be pasted into ChatGPT, Perplexity, Gemini, or Claude w
38
38
 
39
39
  ---
40
40
 
41
+ ## STEP 0: Gather Context
42
+
43
+ ```bash
44
+ node .agileflow/scripts/obtain-context.js context:full
45
+ ```
46
+
47
+ ---
48
+
41
49
  <!-- COMPACT_SUMMARY_START -->
42
50
 
43
51
  ## ⚠️ COMPACT SUMMARY - /agileflow:context:full IS ACTIVE
@@ -30,6 +30,14 @@ Quickly add a note to `docs/context.md` under the "Notes" section. Useful for re
30
30
 
31
31
  ---
32
32
 
33
+ ## STEP 0: Gather Context
34
+
35
+ ```bash
36
+ node .agileflow/scripts/obtain-context.js context:note
37
+ ```
38
+
39
+ ---
40
+
33
41
  <!-- COMPACT_SUMMARY_START -->
34
42
 
35
43
  ## ⚠️ COMPACT SUMMARY - /agileflow:context:note IS ACTIVE
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  description: Track and prioritize technical debt items
3
+ argument-hint: (no arguments)
3
4
  compact_context:
4
5
  priority: medium
5
6
  preserve_rules:
@@ -396,3 +397,13 @@ OUTPUT
396
397
  - Optional: Stories for top debt items
397
398
  - Optional: Trend analysis
398
399
  - Recommendations for debt reduction
400
+
401
+ ---
402
+
403
+ ## Related Commands
404
+
405
+ - `/agileflow:diagnose` - System health diagnostics
406
+ - `/agileflow:review` - AI-powered code review
407
+ - `/agileflow:packages` - Manage dependencies and audits
408
+ - `/agileflow:story` - Create stories for debt items
409
+ - `/agileflow:retro` - Sprint retrospective with debt review
@@ -778,3 +778,13 @@ OUTPUT
778
778
  - CI/CD workflow
779
779
  - Environment management guide
780
780
  - Next steps checklist
781
+
782
+ ---
783
+
784
+ ## Related Commands
785
+
786
+ - `/agileflow:configure` - Manage AgileFlow features and hooks
787
+ - `/agileflow:ci` - Bootstrap CI/CD workflow
788
+ - `/agileflow:tests` - Set up testing infrastructure
789
+ - `/agileflow:changelog` - Generate changelog for releases
790
+ - `/agileflow:pr` - Generate pull request from story
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Visualize dependency graph with critical path detection
3
- argument-hint: [SCOPE=story|epic|all] [EPIC=<id>] [STORY=<id>] [FORMAT=ascii|mermaid|graphviz|json] [ANALYSIS=critical-path|circular|blocking|all]
3
+ argument-hint: [SCOPE=story|epic|all] [EPIC=<EP-ID>] [STORY=<US-ID>] [FORMAT=ascii|mermaid|graphviz|json] [ANALYSIS=critical-path|circular|blocking|all]
4
4
  model: haiku
5
5
  compact_context:
6
6
  priority: high
@@ -648,3 +648,13 @@ OUTPUT
648
648
  - Blocking story impact analysis
649
649
  - Parallel work opportunities
650
650
  - Optional: Mermaid/GraphViz export for documentation
651
+
652
+ ---
653
+
654
+ ## Related Commands
655
+
656
+ - `/agileflow:blockers` - Track blockers
657
+ - `/agileflow:sprint` - Sprint planning
658
+ - `/agileflow:board` - Kanban board view
659
+ - `/agileflow:story:view` - View story details
660
+ - `/agileflow:epic:view` - View epic details
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  description: System health diagnostics
3
+ argument-hint: (no arguments)
3
4
  compact_context:
4
5
  priority: high
5
6
  preserve_rules:
@@ -391,3 +392,12 @@ Next steps:
391
392
  2. Verify installation completed successfully
392
393
  3. Re-run diagnostics: /agileflow:diagnose
393
394
  ```
395
+
396
+ ---
397
+
398
+ ## Related Commands
399
+
400
+ - `/agileflow:configure` - Manage AgileFlow features
401
+ - `/agileflow:verify` - Run tests and verify
402
+ - `/agileflow:validate-expertise` - Validate expertise files
403
+ - `/agileflow:help` - Display AgileFlow overview
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Synchronize documentation with code changes
3
- argument-hint: [BRANCH=<name>] [BASE=<branch>] [AUTO_CREATE=yes|no]
3
+ argument-hint: [BRANCH=<name>] [BASE=<branch>] [AUTO_CREATE=true|false]
4
4
  compact_context:
5
5
  priority: high
6
6
  preserve_rules:
@@ -8,7 +8,7 @@ compact_context:
8
8
  - "Categorize changes: API, UI, services, config, database"
9
9
  - "Generate gap report: missing, outdated, up-to-date docs"
10
10
  - "NEVER delete docs without explicit approval"
11
- - "ALWAYS use diff-first, YES/NO pattern before writing"
11
+ - "{{RULES:file_preview}}"
12
12
  - "PRESERVE custom content - use managed section markers"
13
13
  - "INFER docs from TypeScript types, JSDoc, OpenAPI, tests"
14
14
  - "Optional AUTO_CREATE mode auto-generates all missing docs"
@@ -396,3 +396,13 @@ OUTPUT
396
396
  - Gap report (markdown)
397
397
  - List of actions to take
398
398
  - Optional: PR with doc updates (if approved)
399
+
400
+ ---
401
+
402
+ ## Related Commands
403
+
404
+ - `/agileflow:readme-sync` - Sync folder README with contents
405
+ - `/agileflow:changelog` - Generate changelog from commits
406
+ - `/agileflow:update` - Generate stakeholder progress report
407
+ - `/agileflow:template` - Manage custom templates
408
+ - `/agileflow:pr` - Generate pull request from story
@@ -1,6 +1,18 @@
1
1
  ---
2
2
  description: List all epics with status and progress
3
3
  argument-hint: [STATUS=<status>]
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:epic:list - Lists all epics with progress tracking"
8
+ - "MUST read status.json for epic data"
9
+ - "MUST calculate story progress (completed/total) for each epic"
10
+ - "MUST display table with status, progress percentage, owner"
11
+ - "MUST offer actions: view details, add story, create new epic"
12
+ - "This is READ-ONLY - no file writes"
13
+ state_fields:
14
+ - status_filter
15
+ - epic_count
4
16
  ---
5
17
 
6
18
  # /agileflow:epic:list
@@ -21,6 +33,14 @@ Shows all epics from `docs/09-agents/status.json` with:
21
33
 
22
34
  ---
23
35
 
36
+ ## STEP 0: Gather Context
37
+
38
+ ```bash
39
+ node .agileflow/scripts/obtain-context.js epic:list
40
+ ```
41
+
42
+ ---
43
+
24
44
  <!-- COMPACT_SUMMARY_START -->
25
45
  ## Compact Summary
26
46
 
@@ -1,6 +1,23 @@
1
1
  ---
2
2
  description: View epic details with stories and contextual actions
3
3
  argument-hint: EPIC=<EP-ID>
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:epic:view - Views epic with all stories and context-aware actions"
8
+ - "MUST read epic from status.json and load all stories"
9
+ - "MUST display overview: title, owner, goal, progress bar"
10
+ - "MUST group stories by status: in_progress, ready, done"
11
+ - "MUST offer CONTEXT-AWARE actions based on progress"
12
+ - "Progress <50% → Add stories, start work, plan sprint"
13
+ - "Progress 50-99% → Work on remaining, view details"
14
+ - "Progress 100% → Close epic, view summary"
15
+ - "Status on-hold → Resume, view blockers, close"
16
+ - "ALWAYS offer next steps via AskUserQuestion"
17
+ state_fields:
18
+ - selected_epic_id
19
+ - epic_progress
20
+ - epic_status
4
21
  ---
5
22
 
6
23
  # /agileflow:epic:view
@@ -19,6 +36,14 @@ Displays complete epic information and offers **context-aware actions** based on
19
36
 
20
37
  ---
21
38
 
39
+ ## STEP 0: Gather Context
40
+
41
+ ```bash
42
+ node .agileflow/scripts/obtain-context.js epic:view
43
+ ```
44
+
45
+ ---
46
+
22
47
  <!-- COMPACT_SUMMARY_START -->
23
48
  ## Compact Summary
24
49
 
@@ -5,13 +5,12 @@ compact_context:
5
5
  priority: high
6
6
  preserve_rules:
7
7
  - "ACTIVE COMMAND: /agileflow:epic-new - Epic creator for feature planning"
8
- - "MUST create TodoWrite task list immediately (6 steps: parse, create epic, create stories, merge status, append bus, confirm)"
9
- - "MUST show file previews before confirming writes"
10
- - "MUST use Edit tool or jq for JSON operations (never echo/cat > status.json)"
11
- - "MUST validate JSON after every modification"
12
- - "MUST use AskUserQuestion for user confirmation (YES/NO/CANCEL format)"
8
+ - "{{RULES:todo_tracking}}"
9
+ - "{{RULES:file_preview}}"
10
+ - "{{RULES:json_operations}}"
11
+ - "{{RULES:user_confirmation}}"
13
12
  - "STORIES format: 'US-ID|title|owner,US-ID2|title2|owner2' (comma-separated triplets)"
14
- - "RESEARCH-FIRST: Validate research exists before creating epic; warn if missing for complex features"
13
+ - "{{RULES:research_first}}"
15
14
  state_fields:
16
15
  - epic_id
17
16
  - owner
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  description: Collect and process agent feedback
3
+ argument-hint: (no arguments)
3
4
  compact_context:
4
5
  priority: medium
5
6
  preserve_rules:
@@ -521,3 +522,13 @@ OUTPUT
521
522
  - Saved feedback (markdown)
522
523
  - Optional: Retrospective summary
523
524
  - Optional: Auto-generated improvement stories
525
+
526
+ ---
527
+
528
+ ## Related Commands
529
+
530
+ - `/agileflow:retro` - Sprint retrospective
531
+ - `/agileflow:status` - Update story status
532
+ - `/agileflow:sprint` - Sprint planning
533
+ - `/agileflow:story` - Create improvement stories
534
+ - `/agileflow:metrics` - Analytics and metrics dashboard
@@ -6,8 +6,8 @@ compact_context:
6
6
  preserve_rules:
7
7
  - "STORY, FROM, TO are REQUIRED - always ask if missing"
8
8
  - "Create handoff note from template in docs/09-agents/comms/"
9
- - "Append bus log entry with type='handoff' to docs/09-agents/bus/log.jsonl"
10
- - "Always show diff/preview FIRST, wait for YES/NO confirmation BEFORE writing"
9
+ - "{{RULES:bus_messaging}}"
10
+ - "{{RULES:file_preview}}"
11
11
  - "Include SUMMARY (what was done) and BLOCKERS (issues for next agent)"
12
12
  - "Use template: @packages/cli/src/core/templates/comms-note-template.md"
13
13
  state_fields:
@@ -374,3 +374,13 @@ Check the FROM and TO parameters.
374
374
  Usage:
375
375
  /agileflow:handoff STORY=US-0042 FROM=AG-API TO=AG-UI SUMMARY="..."
376
376
  ```
377
+
378
+ ---
379
+
380
+ ## Related Commands
381
+
382
+ - `/agileflow:assign` - Assign stories to owners
383
+ - `/agileflow:status` - Update story status
384
+ - `/agileflow:blockers` - Track blockers
385
+ - `/agileflow:board` - Kanban board view
386
+ - `/agileflow:sprint` - Sprint planning
@@ -167,3 +167,13 @@ docs/
167
167
  - `/agileflow:diagnose` - System health check
168
168
  - `/agileflow:configure` - Setup AgileFlow
169
169
  ```
170
+
171
+ ---
172
+
173
+ ## Related Commands
174
+
175
+ - `/agileflow:configure` - Manage AgileFlow features and hooks
176
+ - `/agileflow:diagnose` - System health diagnostics
177
+ - `/agileflow:whats-new` - Show what's new in AgileFlow
178
+ - `/agileflow:board` - Visual kanban board
179
+ - `/agileflow:babysit` - Interactive mentor workflow
@@ -444,3 +444,13 @@ After generating output, present options:
444
444
  | OUTPUT | report, stories, both | report | What to generate |
445
445
 
446
446
  {{argument}}
447
+
448
+ ---
449
+
450
+ ## Related Commands
451
+
452
+ - `/agileflow:multi-expert` - Deploy multiple experts for analysis
453
+ - `/agileflow:story` - Create user stories from ideas
454
+ - `/agileflow:epic` - Create epic for grouped improvements
455
+ - `/agileflow:review` - AI-powered code review
456
+ - `/agileflow:debt` - Track technical debt items