agileflow 2.92.1 → 2.94.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 (115) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/scripts/agileflow-statusline.sh +106 -0
  5. package/scripts/agileflow-welcome.js +54 -0
  6. package/scripts/document-repl.js +793 -0
  7. package/scripts/session-manager.js +230 -16
  8. package/scripts/spawn-parallel.js +53 -14
  9. package/src/core/agents/accessibility.md +19 -125
  10. package/src/core/agents/adr-writer.md +18 -1
  11. package/src/core/agents/analytics.md +19 -125
  12. package/src/core/agents/api.md +5 -130
  13. package/src/core/agents/ci.md +26 -131
  14. package/src/core/agents/compliance.md +21 -125
  15. package/src/core/agents/database.md +20 -125
  16. package/src/core/agents/datamigration.md +20 -125
  17. package/src/core/agents/design.md +19 -125
  18. package/src/core/agents/devops.md +12 -129
  19. package/src/core/agents/documentation.md +18 -1
  20. package/src/core/agents/epic-planner.md +31 -10
  21. package/src/core/agents/integrations.md +19 -125
  22. package/src/core/agents/mobile.md +19 -125
  23. package/src/core/agents/monitoring.md +19 -125
  24. package/src/core/agents/performance.md +19 -125
  25. package/src/core/agents/product.md +18 -1
  26. package/src/core/agents/qa.md +21 -125
  27. package/src/core/agents/readme-updater.md +18 -1
  28. package/src/core/agents/refactor.md +19 -125
  29. package/src/core/agents/research.md +3 -1
  30. package/src/core/agents/rlm-subcore.md +202 -0
  31. package/src/core/agents/security.md +7 -125
  32. package/src/core/agents/testing.md +20 -125
  33. package/src/core/agents/ui.md +14 -135
  34. package/src/core/commands/adr/list.md +20 -0
  35. package/src/core/commands/adr/update.md +24 -1
  36. package/src/core/commands/adr/view.md +23 -1
  37. package/src/core/commands/adr.md +2 -2
  38. package/src/core/commands/agent.md +11 -1
  39. package/src/core/commands/assign.md +15 -6
  40. package/src/core/commands/auto.md +11 -1
  41. package/src/core/commands/babysit.md +15 -4
  42. package/src/core/commands/baseline.md +11 -1
  43. package/src/core/commands/batch.md +11 -1
  44. package/src/core/commands/blockers.md +11 -1
  45. package/src/core/commands/board.md +11 -1
  46. package/src/core/commands/changelog.md +11 -0
  47. package/src/core/commands/choose.md +16 -1
  48. package/src/core/commands/ci.md +11 -1
  49. package/src/core/commands/configure.md +73 -2
  50. package/src/core/commands/context/export.md +8 -0
  51. package/src/core/commands/context/full.md +8 -0
  52. package/src/core/commands/context/note.md +8 -0
  53. package/src/core/commands/debt.md +11 -0
  54. package/src/core/commands/deploy.md +10 -0
  55. package/src/core/commands/deps.md +11 -1
  56. package/src/core/commands/diagnose.md +10 -0
  57. package/src/core/commands/docs.md +12 -2
  58. package/src/core/commands/epic/list.md +20 -0
  59. package/src/core/commands/epic/view.md +25 -0
  60. package/src/core/commands/epic.md +5 -6
  61. package/src/core/commands/feedback.md +11 -0
  62. package/src/core/commands/handoff.md +12 -2
  63. package/src/core/commands/help.md +10 -0
  64. package/src/core/commands/ideate.md +10 -0
  65. package/src/core/commands/impact.md +11 -1
  66. package/src/core/commands/metrics.md +11 -1
  67. package/src/core/commands/multi-expert.md +11 -1
  68. package/src/core/commands/packages.md +11 -0
  69. package/src/core/commands/pr.md +10 -0
  70. package/src/core/commands/readme-sync.md +10 -5
  71. package/src/core/commands/research/analyze.md +60 -3
  72. package/src/core/commands/research/ask.md +9 -1
  73. package/src/core/commands/research/import.md +8 -0
  74. package/src/core/commands/research/list.md +8 -0
  75. package/src/core/commands/research/synthesize.md +9 -1
  76. package/src/core/commands/research/view.md +8 -0
  77. package/src/core/commands/retro.md +12 -2
  78. package/src/core/commands/review.md +11 -1
  79. package/src/core/commands/rlm.md +363 -0
  80. package/src/core/commands/roadmap/analyze.md +1 -1
  81. package/src/core/commands/rpi.md +9 -1
  82. package/src/core/commands/session/cleanup.md +250 -0
  83. package/src/core/commands/session/end.md +10 -0
  84. package/src/core/commands/session/history.md +11 -1
  85. package/src/core/commands/session/init.md +10 -0
  86. package/src/core/commands/session/new.md +113 -13
  87. package/src/core/commands/session/resume.md +10 -0
  88. package/src/core/commands/session/spawn.md +8 -0
  89. package/src/core/commands/session/status.md +10 -0
  90. package/src/core/commands/skill/create.md +1 -1
  91. package/src/core/commands/skill/delete.md +11 -1
  92. package/src/core/commands/skill/edit.md +11 -1
  93. package/src/core/commands/skill/test.md +11 -1
  94. package/src/core/commands/skill/upgrade.md +11 -1
  95. package/src/core/commands/sprint.md +14 -3
  96. package/src/core/commands/status.md +15 -6
  97. package/src/core/commands/story/list.md +23 -0
  98. package/src/core/commands/story/view.md +24 -0
  99. package/src/core/commands/story.md +4 -5
  100. package/src/core/commands/template.md +10 -0
  101. package/src/core/commands/tests.md +10 -0
  102. package/src/core/commands/update.md +10 -0
  103. package/src/core/commands/validate-expertise.md +10 -1
  104. package/src/core/commands/velocity.md +11 -1
  105. package/src/core/commands/verify.md +13 -1
  106. package/src/core/commands/whats-new.md +8 -0
  107. package/src/core/commands/workflow.md +16 -1
  108. package/src/core/templates/agent-coordination-pattern.md +38 -0
  109. package/src/core/templates/agileflow-metadata.json +25 -0
  110. package/src/core/templates/preserve-rules-common.md +107 -0
  111. package/src/core/templates/preserve-rules.json +42 -0
  112. package/src/core/templates/proactive-action-spec.md +29 -0
  113. package/src/core/templates/quality-gate-priorities.md +34 -0
  114. package/src/core/templates/session-harness-protocol.md +128 -0
  115. package/tools/cli/lib/content-injector.js +338 -0
@@ -1,6 +1,18 @@
1
1
  ---
2
2
  description: List all Architecture Decision Records
3
3
  argument-hint: [STATUS=<status>]
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:adr:list - Lists all ADRs with status and quick actions"
8
+ - "MUST read docs/03-decisions/ directory for ADR files"
9
+ - "MUST parse frontmatter for status, date, tags"
10
+ - "MUST display table sorted by number with status indicators"
11
+ - "MUST offer actions: view details, create new, update status"
12
+ - "This is READ-ONLY - no file writes"
13
+ state_fields:
14
+ - status_filter
15
+ - adr_count
4
16
  ---
5
17
 
6
18
  # /agileflow:adr:list
@@ -21,6 +33,14 @@ Shows all ADRs from `docs/03-decisions/` with:
21
33
 
22
34
  ---
23
35
 
36
+ ## STEP 0: Gather Context
37
+
38
+ ```bash
39
+ node .agileflow/scripts/obtain-context.js adr:list
40
+ ```
41
+
42
+ ---
43
+
24
44
  <!-- COMPACT_SUMMARY_START -->
25
45
  ## Compact Summary
26
46
 
@@ -1,6 +1,21 @@
1
1
  ---
2
2
  description: Update ADR status or content
3
- argument-hint: NUMBER=<4-digit> [STATUS=<status>] [REASON=<text>]
3
+ argument-hint: NUMBER=<number> [STATUS=<status>] [REASON=<text>]
4
+ compact_context:
5
+ priority: high
6
+ preserve_rules:
7
+ - "NUMBER is REQUIRED - always ask if missing"
8
+ - "Every status change MUST have documented reason"
9
+ - "Show preview of changes before writing (diff-first pattern)"
10
+ - "If superseded, MUST link to replacement ADR"
11
+ - "Never delete content - always append amendments"
12
+ - "Update timestamps in frontmatter when modifying"
13
+ state_fields:
14
+ - adr_number
15
+ - current_status
16
+ - new_status
17
+ - reason
18
+ - superseded_by
4
19
  ---
5
20
 
6
21
  # /agileflow:adr:update
@@ -19,6 +34,14 @@ Allows you to:
19
34
 
20
35
  ---
21
36
 
37
+ ## STEP 0: Gather Context
38
+
39
+ ```bash
40
+ node .agileflow/scripts/obtain-context.js adr:update
41
+ ```
42
+
43
+ ---
44
+
22
45
  <!-- COMPACT_SUMMARY_START -->
23
46
  ## Compact Summary
24
47
 
@@ -1,6 +1,20 @@
1
1
  ---
2
2
  description: View ADR details with contextual actions
3
- argument-hint: NUMBER=<4-digit>
3
+ argument-hint: NUMBER=<number>
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:adr:view - Views ADR with context-aware actions"
8
+ - "MUST read ADR file from docs/03-decisions/adr-NUMBER-*.md"
9
+ - "MUST display full ADR content: context, decision, consequences, links"
10
+ - "MUST offer CONTEXT-AWARE actions based on ADR status"
11
+ - "STATUS=proposed → Accept, reject, request changes"
12
+ - "STATUS=accepted → Create stories, supersede, deprecate"
13
+ - "STATUS=deprecated/superseded → View history, replacement"
14
+ - "ALWAYS offer next steps via AskUserQuestion"
15
+ state_fields:
16
+ - selected_adr_number
17
+ - adr_status
4
18
  ---
5
19
 
6
20
  # /agileflow:adr:view
@@ -19,6 +33,14 @@ Displays complete ADR information and offers **context-aware actions** based on
19
33
 
20
34
  ---
21
35
 
36
+ ## STEP 0: Gather Context
37
+
38
+ ```bash
39
+ node .agileflow/scripts/obtain-context.js adr:view
40
+ ```
41
+
42
+ ---
43
+
22
44
  <!-- COMPACT_SUMMARY_START -->
23
45
  ## Compact Summary
24
46
 
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  description: Create an Architecture Decision Record
3
- argument-hint: NUMBER=<4-digit> TITLE=<text> CONTEXT=<text> DECISION=<text> CONSEQUENCES=<text> [LINKS=<text>]
3
+ argument-hint: NUMBER=<number> TITLE=<text> CONTEXT=<text> DECISION=<text> CONSEQUENCES=<text> [LINKS=<text>]
4
4
  compact_context:
5
5
  priority: medium
6
6
  preserve_rules:
7
7
  - "NUMBER is REQUIRED - must be 4-digit sequentially (0001, 0002, etc.)"
8
8
  - "TITLE, CONTEXT, DECISION, CONSEQUENCES all REQUIRED"
9
9
  - "Create ADR file in docs/03-decisions/adr-<NUMBER>-<slug>.md"
10
- - "Always show preview FIRST, wait for YES/NO confirmation BEFORE writing"
10
+ - "{{RULES:file_preview}}"
11
11
  - "Document BOTH positive and negative consequences"
12
12
  - "Keep ADRs concise: 1-2 pages max"
13
13
  - "Link related ADRs and stories in Related section"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Onboard a new agent with profile and contract
3
- argument-hint: AGENT_ID=<id> ROLE=<role> [TOOLS=<list>] [SCOPE=<dirs>]
3
+ argument-hint: AGENT_ID=<id> ROLE=<text> [TOOLS=<list>] [SCOPE=<list>]
4
4
  compact_context:
5
5
  priority: high
6
6
  preserve_rules:
@@ -225,6 +225,16 @@ Options:
225
225
  [AskUserQuestion: "How to proceed?"]
226
226
  ```
227
227
 
228
+ ---
229
+
230
+ ## Related Commands
231
+
232
+ - `/agileflow:configure` - Manage AgileFlow features and hooks
233
+ - `/agileflow:story` - Create user stories for agents
234
+ - `/agileflow:status` - Update story status and progress
235
+ - `/agileflow:babysit` - Interactive mentor workflow
236
+ - `/agileflow:help` - Display AgileFlow overview
237
+
228
238
  ### Roster File Created
229
239
 
230
240
  ```
@@ -6,12 +6,11 @@ compact_context:
6
6
  preserve_rules:
7
7
  - "ACTIVE COMMAND: /agileflow:assign - Story assigner and owner changer"
8
8
  - "MUST update story frontmatter (owner, status, updated timestamp)"
9
- - "MUST update docs/09-agents/status.json using jq or Edit tool"
10
- - "MUST validate JSON after modification"
11
- - "MUST append assign event to docs/09-agents/bus/log.jsonl"
12
- - "MUST use AskUserQuestion for user confirmation (YES/NO format)"
13
- - "MUST show diff preview before confirming (diff-first pattern)"
14
- - "Status values: ready|in-progress|blocked|in-review|done"
9
+ - "{{RULES:json_operations}}"
10
+ - "{{RULES:bus_messaging}}"
11
+ - "{{RULES:user_confirmation}}"
12
+ - "{{RULES:file_preview}}"
13
+ - "{{RULES:status_updates}}"
15
14
  state_fields:
16
15
  - story_id
17
16
  - current_owner
@@ -357,3 +356,13 @@ Files to update:
357
356
  New owner: AG-UI
358
357
  Notification sent to both agents
359
358
  ```
359
+
360
+ ---
361
+
362
+ ## Related Commands
363
+
364
+ - `/agileflow:status` - Update story status
365
+ - `/agileflow:handoff` - Document work handoff
366
+ - `/agileflow:sprint` - Sprint planning
367
+ - `/agileflow:board` - Kanban board view
368
+ - `/agileflow:story:view` - View story details
@@ -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