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
@@ -30,6 +30,16 @@ When you need to work on multiple things simultaneously in the same repo, this c
30
30
  - Its own branch
31
31
  - Independent session tracking
32
32
 
33
+ ---
34
+
35
+ ## STEP 0: Gather Context
36
+
37
+ ```bash
38
+ node .agileflow/scripts/obtain-context.js session:new
39
+ ```
40
+
41
+ ---
42
+
33
43
  ## IMMEDIATE ACTIONS
34
44
 
35
45
  Upon invocation, execute these steps:
@@ -87,23 +97,75 @@ AskUserQuestion:
87
97
  description: "Bug fixing"
88
98
  ```
89
99
 
90
- Then run:
100
+ ### Step 2B.2: Ask Startup Mode (OPTIONAL but recommended)
101
+
102
+ After getting the session name, check for configured default startup mode:
91
103
 
92
104
  ```bash
93
- # If auto-generate selected:
94
- node .agileflow/scripts/spawn-parallel.js add-window
105
+ # Read the default startup mode from metadata (if exists)
106
+ cat docs/00-meta/agileflow-metadata.json | grep -A1 '"defaultStartupMode"' 2>/dev/null
107
+ ```
108
+
109
+ The `defaultStartupMode` can be: `normal`, `skip-permissions`, `accept-edits`, or `no-claude`.
95
110
 
96
- # If named option selected:
97
- node .agileflow/scripts/spawn-parallel.js add-window --name {selected_name}
111
+ Then ask how Claude should start, putting the configured default first with "(Recommended)":
98
112
 
99
- # If "Other" with custom input:
100
- node .agileflow/scripts/spawn-parallel.js add-window --name {custom_name}
113
+ ```
114
+ AskUserQuestion:
115
+ question: "How should Claude start in this session?"
116
+ header: "Startup mode"
117
+ multiSelect: false
118
+ options:
119
+ # Put the defaultStartupMode option FIRST with "(Recommended)" suffix
120
+ # Example if defaultStartupMode is "normal":
121
+ - label: "Normal (Recommended)"
122
+ description: "Standard Claude with permission prompts"
123
+ - label: "Skip permissions"
124
+ description: "claude --dangerously-skip-permissions (trusted mode)"
125
+ - label: "Accept edits only"
126
+ description: "claude --permission-mode acceptEdits"
127
+ - label: "Don't start Claude"
128
+ description: "Create worktree only, start Claude manually"
129
+
130
+ # Example if defaultStartupMode is "skip-permissions":
131
+ # - label: "Skip permissions (Recommended)"
132
+ # description: "claude --dangerously-skip-permissions (trusted mode)"
133
+ # - label: "Normal"
134
+ # description: "Standard Claude with permission prompts"
135
+ # - label: "Accept edits only"
136
+ # description: "claude --permission-mode acceptEdits"
137
+ # - label: "Don't start Claude"
138
+ # description: "Create worktree only, start Claude manually"
139
+ ```
140
+
141
+ **Mode to Flag Mapping:**
142
+ | defaultStartupMode | spawn-parallel.js flag |
143
+ |--------------------|------------------------|
144
+ | `normal` | (no extra flags) |
145
+ | `skip-permissions` | `--dangerous` |
146
+ | `accept-edits` | `--claude-args "--permission-mode acceptEdits"` |
147
+ | `no-claude` | `--no-claude` |
148
+
149
+ Then run based on selections:
150
+
151
+ ```bash
152
+ # Normal mode (default):
153
+ node .agileflow/scripts/spawn-parallel.js add-window --name {session_name}
154
+
155
+ # Skip permissions mode:
156
+ node .agileflow/scripts/spawn-parallel.js add-window --name {session_name} --dangerous
157
+
158
+ # Accept edits only mode:
159
+ node .agileflow/scripts/spawn-parallel.js add-window --name {session_name} --claude-args "--permission-mode acceptEdits"
160
+
161
+ # Don't start Claude:
162
+ node .agileflow/scripts/spawn-parallel.js add-window --name {session_name} --no-claude
101
163
  ```
102
164
 
103
165
  The script will:
104
166
  1. Create a new git worktree
105
167
  2. Add a new tmux window to the current session
106
- 3. Start Claude in that window
168
+ 3. Start Claude with selected options (or just cd if --no-claude)
107
169
  4. Output the Alt+N shortcut to switch to it
108
170
 
109
171
  Display success and exit - skip remaining steps.
@@ -284,7 +346,7 @@ echo $TMUX
284
346
 
285
347
  ### 🚨 RULE #1B: TMUX FLOW (when in tmux)
286
348
 
287
- Ask for session name:
349
+ **Step 1: Ask for session name:**
288
350
  ```xml
289
351
  <invoke name="AskUserQuestion">
290
352
  <parameter name="questions">[{
@@ -301,13 +363,44 @@ Ask for session name:
301
363
  </invoke>
302
364
  ```
303
365
 
304
- Then run:
366
+ **Step 2: Read default startup mode and ask:**
305
367
  ```bash
306
- # Auto-generate:
307
- node .agileflow/scripts/spawn-parallel.js add-window
368
+ # Check configured default (normal if not set)
369
+ cat docs/00-meta/agileflow-metadata.json | grep '"defaultStartupMode"' 2>/dev/null
370
+ ```
308
371
 
309
- # Named:
372
+ Then ask with configured default first + "(Recommended)":
373
+ ```xml
374
+ <invoke name="AskUserQuestion">
375
+ <parameter name="questions">[{
376
+ "question": "How should Claude start?",
377
+ "header": "Startup",
378
+ "multiSelect": false,
379
+ "options": [
380
+ {"label": "{default} (Recommended)", "description": "Configured default"},
381
+ {"label": "Normal", "description": "Standard with prompts"},
382
+ {"label": "Skip permissions", "description": "--dangerously-skip-permissions"},
383
+ {"label": "Accept edits only", "description": "--permission-mode acceptEdits"},
384
+ {"label": "Don't start Claude", "description": "Manual start later"}
385
+ ]
386
+ }]</parameter>
387
+ </invoke>
388
+ ```
389
+ Note: Put the defaultStartupMode FIRST with "(Recommended)", remove duplicate.
390
+
391
+ **Step 3: Run with selected options:**
392
+ ```bash
393
+ # Normal:
310
394
  node .agileflow/scripts/spawn-parallel.js add-window --name {name}
395
+
396
+ # Skip permissions:
397
+ node .agileflow/scripts/spawn-parallel.js add-window --name {name} --dangerous
398
+
399
+ # Accept edits:
400
+ node .agileflow/scripts/spawn-parallel.js add-window --name {name} --claude-args "--permission-mode acceptEdits"
401
+
402
+ # No Claude:
403
+ node .agileflow/scripts/spawn-parallel.js add-window --name {name} --no-claude
311
404
  ```
312
405
 
313
406
  The script outputs the Alt+N shortcut. **DONE - skip remaining rules.**
@@ -609,5 +702,12 @@ To switch to this session, run:
609
702
  - **Run `session-manager.js switch {new_id}` AFTER creating session** (enables boundary protection)
610
703
  - Show `/add-dir {path}` command for user to switch (NOT cd && claude)
611
704
  - Show tip to use /agileflow:session:resume
705
+ - **STARTUP OPTIONS (tmux flow)**: After name, ask startup mode:
706
+ - Read `defaultStartupMode` from `docs/00-meta/agileflow-metadata.json`
707
+ - Put configured default FIRST with "(Recommended)" suffix
708
+ - Normal → (no extra flags)
709
+ - Skip permissions → `--dangerous`
710
+ - Accept edits → `--claude-args "--permission-mode acceptEdits"`
711
+ - Don't start → `--no-claude`
612
712
 
613
713
  <!-- COMPACT_SUMMARY_END -->
@@ -29,6 +29,16 @@ When you have multiple sessions and want to switch between them, this command:
29
29
  - Shows which are currently active (have a running Claude process)
30
30
  - Provides the `cd` command to switch to your chosen session
31
31
 
32
+ ---
33
+
34
+ ## STEP 0: Gather Context
35
+
36
+ ```bash
37
+ node .agileflow/scripts/obtain-context.js session:resume
38
+ ```
39
+
40
+ ---
41
+
32
42
  ## IMMEDIATE ACTIONS
33
43
 
34
44
  Upon invocation, execute these steps:
@@ -35,6 +35,14 @@ Based on the [git worktrees parallel sessions research](../../../10-research/202
35
35
 
36
36
  ---
37
37
 
38
+ ## STEP 0: Gather Context
39
+
40
+ ```bash
41
+ node .agileflow/scripts/obtain-context.js session:spawn
42
+ ```
43
+
44
+ ---
45
+
38
46
  ## IMMEDIATE ACTIONS
39
47
 
40
48
  Upon invocation, execute these steps:
@@ -27,6 +27,16 @@ Quick view of all sessions and their status.
27
27
 
28
28
  Display a compact overview of all registered sessions without prompting for action.
29
29
 
30
+ ---
31
+
32
+ ## STEP 0: Gather Context
33
+
34
+ ```bash
35
+ node .agileflow/scripts/obtain-context.js session:status
36
+ ```
37
+
38
+ ---
39
+
30
40
  ## Arguments
31
41
 
32
42
  | Argument | Required | Description |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Generate a custom skill with web research, cookbook pattern, and MCP integration
3
- argument-hint: [SKILL_NAME] (optional)
3
+ argument-hint: [<name>]
4
4
  compact_context:
5
5
  priority: high
6
6
  preserve_rules:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Remove an installed skill from .claude/skills/
3
- argument-hint: [SKILL_NAME] (optional)
3
+ argument-hint: [<name>]
4
4
  compact_context:
5
5
  priority: medium
6
6
  preserve_rules:
@@ -304,3 +304,13 @@ Try manually: rm -rf .claude/skills/<skill>/
304
304
  # Delete specific skill
305
305
  /agileflow:skill:delete supabase-swift
306
306
  ```
307
+
308
+ ---
309
+
310
+ ## Related Commands
311
+
312
+ - `/agileflow:skill:create` - Create a new skill
313
+ - `/agileflow:skill:list` - List all installed skills
314
+ - `/agileflow:skill:edit` - Edit existing skill
315
+ - `/agileflow:skill:upgrade` - Add learning capability
316
+ - `/agileflow:skill:test` - Test skill functionality
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Edit an existing skill's SKILL.md, cookbook entries, or references
3
- argument-hint: [SKILL_NAME] (optional)
3
+ argument-hint: [<name>]
4
4
  compact_context:
5
5
  priority: medium
6
6
  preserve_rules:
@@ -347,3 +347,13 @@ Create a skill first: /agileflow:skill:create
347
347
  # Edit specific skill
348
348
  /agileflow:skill:edit supabase-swift
349
349
  ```
350
+
351
+ ---
352
+
353
+ ## Related Commands
354
+
355
+ - `/agileflow:skill:create` - Create a new skill
356
+ - `/agileflow:skill:list` - List all installed skills
357
+ - `/agileflow:skill:test` - Test skill functionality
358
+ - `/agileflow:skill:upgrade` - Add learning capability
359
+ - `/agileflow:skill:delete` - Remove an installed skill
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Verify a skill works correctly by testing its activation and functionality
3
- argument-hint: [SKILL_NAME] (optional)
3
+ argument-hint: [<name>]
4
4
  compact_context:
5
5
  priority: medium
6
6
  preserve_rules:
@@ -382,3 +382,13 @@ Fix with: /agileflow:skill:edit <name>
382
382
  # Test specific skill
383
383
  /agileflow:skill:test supabase-swift
384
384
  ```
385
+
386
+ ---
387
+
388
+ ## Related Commands
389
+
390
+ - `/agileflow:skill:create` - Create a new skill
391
+ - `/agileflow:skill:list` - List all installed skills
392
+ - `/agileflow:skill:edit` - Edit existing skill
393
+ - `/agileflow:skill:upgrade` - Add learning capability
394
+ - `/agileflow:skill:delete` - Remove an installed skill
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Upgrade existing skills with self-improving learning capability
3
- argument-hint: [SKILL_NAME] (optional)
3
+ argument-hint: [<name>]
4
4
  compact_context:
5
5
  priority: medium
6
6
  preserve_rules:
@@ -540,3 +540,13 @@ Before completing, verify:
540
540
  # Batch upgrade (upgrade all at once)
541
541
  /agileflow:skill:upgrade --all
542
542
  ```
543
+
544
+ ---
545
+
546
+ ## Related Commands
547
+
548
+ - `/agileflow:skill:create` - Create a new skill
549
+ - `/agileflow:skill:list` - List all installed skills
550
+ - `/agileflow:skill:edit` - Edit existing skill
551
+ - `/agileflow:skill:test` - Test skill functionality
552
+ - `/agileflow:skill:delete` - Remove an installed skill
@@ -1,16 +1,16 @@
1
1
  ---
2
2
  description: Data-driven sprint planning with velocity forecasting
3
- argument-hint: "[SPRINT=<id>] [DURATION=<days>] [AGENTS=<list>] [MODE=suggest|commit] [FOCUS_EPIC=<id>]"
3
+ argument-hint: [SPRINT=<id>] [DURATION=<number>] [AGENTS=<list>] [MODE=suggest|commit] [FOCUS_EPIC=<EP-ID>]
4
4
  model: haiku
5
5
  compact_context:
6
6
  priority: critical
7
7
  preserve_rules:
8
8
  - "ACTIVE COMMAND: /agileflow:sprint-plan - Sprint planner with capacity analysis"
9
- - "MUST create TodoWrite task list immediately (8 steps: load knowledge, analyze capacity, calculate velocity, select stories, assess risks, generate report, commit if MODE=commit)"
9
+ - "{{RULES:todo_tracking}}"
10
10
  - "MUST calculate historical velocity from last 30 days (bus/log.jsonl)"
11
11
  - "MUST respect WIP limits (max 2 in-progress per agent)"
12
12
  - "MUST validate dependencies resolved (only select stories with all deps status=done)"
13
- - "MUST show diff preview before committing (MODE=commit)"
13
+ - "{{RULES:file_preview}}"
14
14
  - "MUST assess risks (dependency chains, cross-agent coordination, epic staleness)"
15
15
  - "MODE=suggest shows preview; MODE=commit updates status.json + milestones.md"
16
16
  state_fields:
@@ -627,3 +627,14 @@ After displaying plan, ask:
627
627
  - "Does this sprint commitment look reasonable?"
628
628
  - "Should I commit this plan (update status.json and milestones.md)?"
629
629
  - "Any stories you'd like to add/remove?"
630
+
631
+ ---
632
+
633
+ ## Related Commands
634
+
635
+ - `/agileflow:board` - Visual kanban board
636
+ - `/agileflow:velocity` - Track velocity and forecast capacity
637
+ - `/agileflow:metrics` - Analytics dashboard with cycle time
638
+ - `/agileflow:assign` - Assign stories to owners
639
+ - `/agileflow:blockers` - Track and resolve blockers
640
+ - `/agileflow:retro` - Sprint retrospective
@@ -5,12 +5,11 @@ compact_context:
5
5
  priority: high
6
6
  preserve_rules:
7
7
  - "ACTIVE COMMAND: /agileflow:status - Status updater broadcasting to message bus"
8
- - "MUST update docs/09-agents/status.json (use jq or Edit tool, never echo/cat >)"
9
- - "MUST validate JSON after modification (jq empty check)"
10
- - "MUST append bus message to docs/09-agents/bus/log.jsonl"
11
- - "MUST use AskUserQuestion for user confirmation (YES/NO format)"
12
- - "MUST show diff preview before confirming (diff-first pattern)"
13
- - "Status values: ready|in-progress|blocked|in-review|done"
8
+ - "{{RULES:json_operations}}"
9
+ - "{{RULES:bus_messaging}}"
10
+ - "{{RULES:user_confirmation}}"
11
+ - "{{RULES:file_preview}}"
12
+ - "{{RULES:status_updates}}"
14
13
  - "MUST escape user text automatically (jq handles escaping)"
15
14
  - "PHASE HANDOFF: Prompt for summary on phase transitions (ready→in-progress, in-progress→in-review, in-review→done)"
16
15
  state_fields:
@@ -411,3 +410,13 @@ Valid values are:
411
410
  Fix: Restoring from backup: docs/09-agents/status.json.backup
412
411
  ✅ Backup restored successfully
413
412
  ```
413
+
414
+ ---
415
+
416
+ ## Related Commands
417
+
418
+ - `/agileflow:board` - Visual kanban board
419
+ - `/agileflow:assign` - Assign stories to owners
420
+ - `/agileflow:blockers` - Track and resolve blockers
421
+ - `/agileflow:story:view` - View story details
422
+ - `/agileflow:handoff` - Document work handoff
@@ -1,6 +1,21 @@
1
1
  ---
2
2
  description: List all stories with status and filters
3
3
  argument-hint: [EPIC=<EP-ID>] [STATUS=<status>] [OWNER=<id>]
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:story:list - Lists stories with filters and quick actions"
8
+ - "MUST read status.json for story data"
9
+ - "MUST support filters: EPIC, STATUS, OWNER (combinable)"
10
+ - "MUST group stories by epic in output table"
11
+ - "MUST show: story ID, title, status, phase, owner, estimate"
12
+ - "MUST offer actions: view details, start work, create new"
13
+ - "This is READ-ONLY - no file writes"
14
+ state_fields:
15
+ - epic_filter
16
+ - status_filter
17
+ - owner_filter
18
+ - story_count
4
19
  ---
5
20
 
6
21
  # /agileflow:story:list
@@ -21,6 +36,14 @@ Shows all stories from `docs/09-agents/status.json` with:
21
36
 
22
37
  ---
23
38
 
39
+ ## STEP 0: Gather Context
40
+
41
+ ```bash
42
+ node .agileflow/scripts/obtain-context.js story:list
43
+ ```
44
+
45
+ ---
46
+
24
47
  <!-- COMPACT_SUMMARY_START -->
25
48
  ## Compact Summary
26
49
 
@@ -1,6 +1,22 @@
1
1
  ---
2
2
  description: View story details with contextual actions
3
3
  argument-hint: STORY=<US-ID>
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:story:view - Views story with context-aware actions"
8
+ - "MUST read story file and status.json entry"
9
+ - "MUST display full story: AC (with checkboxes), tests, dependencies, blockers"
10
+ - "MUST offer CONTEXT-AWARE actions based on story status"
11
+ - "STATUS=ready → Start work, validate, view research"
12
+ - "STATUS=in_progress → Mark complete, mark blocked, view tests"
13
+ - "STATUS=blocked → View blocker, unblock, reassign"
14
+ - "STATUS=done → View summary, reopen, view next story"
15
+ - "ALWAYS offer next steps via AskUserQuestion"
16
+ state_fields:
17
+ - selected_story_id
18
+ - story_status
19
+ - story_epic
4
20
  ---
5
21
 
6
22
  # /agileflow:story:view
@@ -19,6 +35,14 @@ Displays complete story information and offers **context-aware actions** based o
19
35
 
20
36
  ---
21
37
 
38
+ ## STEP 0: Gather Context
39
+
40
+ ```bash
41
+ node .agileflow/scripts/obtain-context.js story:view
42
+ ```
43
+
44
+ ---
45
+
22
46
  <!-- COMPACT_SUMMARY_START -->
23
47
  ## Compact Summary
24
48
 
@@ -5,11 +5,10 @@ compact_context:
5
5
  priority: high
6
6
  preserve_rules:
7
7
  - "ACTIVE COMMAND: /agileflow:story-new - Story creator with acceptance criteria"
8
- - "MUST create TodoWrite task list immediately (6 steps: parse, create story, create test stub, 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
  - "MUST create test stub in docs/07-testing/test-cases/<STORY>.md referencing AC"
14
13
  - "AC format: Given/When/Then bullets (user story format)"
15
14
  - "TDD=true: Generate framework-specific test code BEFORE implementation"
@@ -563,3 +563,13 @@ OUTPUT
563
563
  - Updated template file (if ACTION=edit)
564
564
  - Generated document from template (if ACTION=use)
565
565
  - Updated registry.json
566
+
567
+ ---
568
+
569
+ ## Related Commands
570
+
571
+ - `/agileflow:configure` - Manage AgileFlow features and hooks
572
+ - `/agileflow:story` - Create user stories
573
+ - `/agileflow:epic` - Create epics
574
+ - `/agileflow:adr` - Create Architecture Decision Records
575
+ - `/agileflow:docs` - Synchronize documentation
@@ -635,3 +635,13 @@ OUTPUT
635
635
  - Example tests (unit + integration + E2E if requested)
636
636
  - CI integration
637
637
  - Testing documentation
638
+
639
+ ---
640
+
641
+ ## Related Commands
642
+
643
+ - `/agileflow:configure` - Manage AgileFlow features and hooks
644
+ - `/agileflow:ci` - Bootstrap CI/CD workflow
645
+ - `/agileflow:verify` - Run tests and update story status
646
+ - `/agileflow:baseline` - Mark verified baseline
647
+ - `/agileflow:pr` - Generate pull request from story
@@ -520,3 +520,13 @@ OUTPUT
520
520
  - Saved to docs/08-project/updates/
521
521
  - Optional: Email sent to stakeholders
522
522
  - Log entry in bus/log.jsonl
523
+
524
+ ---
525
+
526
+ ## Related Commands
527
+
528
+ - `/agileflow:docs` - Synchronize documentation with code
529
+ - `/agileflow:metrics` - Analytics dashboard with cycle time
530
+ - `/agileflow:board` - Visual kanban board
531
+ - `/agileflow:retro` - Generate sprint retrospective
532
+ - `/agileflow:changelog` - Generate changelog from commits
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Validate expertise files for drift and staleness
3
- argument-hint: "[DOMAIN]"
3
+ argument-hint: [<domain>]
4
4
  model: haiku
5
5
  compact_context:
6
6
  priority: medium
@@ -218,3 +218,12 @@ RULES
218
218
  - Report issues but don't auto-fix
219
219
  - Prioritize drift detection (most critical)
220
220
  - Keep output concise and actionable
221
+
222
+ ---
223
+
224
+ ## Related Commands
225
+
226
+ - `/agileflow:diagnose` - System health diagnostics
227
+ - `/agileflow:configure` - Manage AgileFlow features
228
+ - `/agileflow:agent` - Onboard new agents
229
+ - `/agileflow:help` - Display AgileFlow overview
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Track velocity and forecast sprint capacity
3
- argument-hint: "[PERIOD=week|sprint|month|all] [FORECAST=<epic-id>] [FORMAT=report|chart|json]"
3
+ argument-hint: [PERIOD=week|sprint|month|all] [FORECAST=<EP-ID>] [FORMAT=report|chart|json]
4
4
  model: haiku
5
5
  compact_context:
6
6
  priority: medium
@@ -544,3 +544,13 @@ OUTPUT
544
544
  - Forecasts for epics/milestones
545
545
  - Risk analysis
546
546
  - Action items
547
+
548
+ ---
549
+
550
+ ## Related Commands
551
+
552
+ - `/agileflow:sprint` - Sprint planning
553
+ - `/agileflow:metrics` - Analytics dashboard
554
+ - `/agileflow:retro` - Sprint retrospective
555
+ - `/agileflow:board` - Kanban board view
556
+ - `/agileflow:epic:list` - View epics with progress
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Run project tests and update story test status
3
- argument-hint: [story_id] (optional)
3
+ argument-hint: [<US-ID>]
4
4
  compact_context:
5
5
  priority: critical
6
6
  preserve_rules:
@@ -399,6 +399,18 @@ Run without story_id to verify all in_progress stories.
399
399
  6. **Incremental Parsing**: Start with exit code only, add framework-specific parsing later
400
400
  7. **User Feedback**: Show clear, actionable output with visual indicators (✅/❌)
401
401
 
402
+ ---
403
+
404
+ ## Related Commands
405
+
406
+ - `/agileflow:status` - Update story status
407
+ - `/agileflow:audit` - Audit story completion
408
+ - `/agileflow:ci` - Set up CI/CD workflow
409
+ - `/agileflow:tests` - Set up testing infrastructure
410
+ - `/agileflow:baseline` - Mark verified baseline
411
+
412
+ ---
413
+
402
414
  ## Example Execution
403
415
 
404
416
  ```
@@ -122,3 +122,11 @@ If a newer version exists, show:
122
122
  - Include dates if available
123
123
  - Always show the GitHub link for full history
124
124
  - Mention update availability if applicable
125
+
126
+ ---
127
+
128
+ ## Related Commands
129
+
130
+ - `/agileflow:changelog` - Generate changelog from commits
131
+ - `/agileflow:configure` - Manage AgileFlow features
132
+ - `/agileflow:help` - Display AgileFlow overview
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: Define and run parameterized workflow templates
3
- argument-hint: <template> [arguments...]
3
+ argument-hint: <template> [<arguments>]
4
4
  compact_context:
5
5
  priority: normal
6
6
  preserve_rules:
@@ -8,6 +8,11 @@ compact_context:
8
8
  - "Template format: {{arg_name}} for substitution"
9
9
  - "Built-in workflows: review, test-feature, implement, analyze"
10
10
  - "Custom workflows in docs/08-project/workflows/"
11
+ state_fields:
12
+ - workflow_name
13
+ - workflow_arguments
14
+ - execution_status
15
+ - template_path
11
16
  ---
12
17
 
13
18
  # /agileflow:workflow
@@ -342,3 +347,13 @@ Custom workflows (docs/08-project/workflows/):
342
347
  - Works with babysit for story implementation
343
348
  - Can trigger from Ralph Loop
344
349
  - Integrates with expert system for multi-domain work
350
+
351
+ ---
352
+
353
+ ## Related Commands
354
+
355
+ - `/agileflow:babysit` - Interactive mentor workflow
356
+ - `/agileflow:batch` - Process multiple items
357
+ - `/agileflow:story` - Create user stories
358
+ - `/agileflow:template` - Manage custom templates
359
+ - `/agileflow:choose` - AI-directed decision making