agileflow 2.90.6 → 2.91.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 (75) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +6 -6
  3. package/lib/codebase-indexer.js +810 -0
  4. package/lib/validate-names.js +3 -3
  5. package/package.json +4 -1
  6. package/scripts/obtain-context.js +238 -0
  7. package/scripts/precompact-context.sh +13 -1
  8. package/scripts/query-codebase.js +430 -0
  9. package/scripts/tui/blessed/data/watcher.js +175 -0
  10. package/scripts/tui/blessed/index.js +244 -0
  11. package/scripts/tui/blessed/panels/output.js +95 -0
  12. package/scripts/tui/blessed/panels/sessions.js +143 -0
  13. package/scripts/tui/blessed/panels/trace.js +91 -0
  14. package/scripts/tui/blessed/ui/help.js +77 -0
  15. package/scripts/tui/blessed/ui/screen.js +52 -0
  16. package/scripts/tui/blessed/ui/statusbar.js +51 -0
  17. package/scripts/tui/blessed/ui/tabbar.js +99 -0
  18. package/scripts/tui/index.js +38 -32
  19. package/scripts/tui/simple-tui.js +8 -5
  20. package/scripts/validators/README.md +143 -0
  21. package/scripts/validators/component-validator.js +212 -0
  22. package/scripts/validators/json-schema-validator.js +179 -0
  23. package/scripts/validators/markdown-validator.js +153 -0
  24. package/scripts/validators/migration-validator.js +117 -0
  25. package/scripts/validators/security-validator.js +276 -0
  26. package/scripts/validators/story-format-validator.js +176 -0
  27. package/scripts/validators/test-result-validator.js +99 -0
  28. package/scripts/validators/workflow-validator.js +240 -0
  29. package/src/core/agents/accessibility.md +6 -0
  30. package/src/core/agents/adr-writer.md +6 -0
  31. package/src/core/agents/analytics.md +6 -0
  32. package/src/core/agents/api.md +6 -0
  33. package/src/core/agents/ci.md +6 -0
  34. package/src/core/agents/codebase-query.md +237 -0
  35. package/src/core/agents/compliance.md +6 -0
  36. package/src/core/agents/configuration-damage-control.md +6 -0
  37. package/src/core/agents/configuration-visual-e2e.md +6 -0
  38. package/src/core/agents/database.md +10 -0
  39. package/src/core/agents/datamigration.md +6 -0
  40. package/src/core/agents/design.md +6 -0
  41. package/src/core/agents/devops.md +6 -0
  42. package/src/core/agents/documentation.md +6 -0
  43. package/src/core/agents/epic-planner.md +6 -0
  44. package/src/core/agents/integrations.md +6 -0
  45. package/src/core/agents/mentor.md +6 -0
  46. package/src/core/agents/mobile.md +6 -0
  47. package/src/core/agents/monitoring.md +6 -0
  48. package/src/core/agents/multi-expert.md +6 -0
  49. package/src/core/agents/performance.md +6 -0
  50. package/src/core/agents/product.md +6 -0
  51. package/src/core/agents/qa.md +6 -0
  52. package/src/core/agents/readme-updater.md +6 -0
  53. package/src/core/agents/refactor.md +6 -0
  54. package/src/core/agents/research.md +6 -0
  55. package/src/core/agents/security.md +6 -0
  56. package/src/core/agents/testing.md +10 -0
  57. package/src/core/agents/ui.md +6 -0
  58. package/src/core/commands/audit.md +401 -0
  59. package/src/core/commands/board.md +1 -0
  60. package/src/core/commands/epic.md +92 -1
  61. package/src/core/commands/help.md +1 -0
  62. package/src/core/commands/metrics.md +1 -0
  63. package/src/core/commands/research/analyze.md +1 -0
  64. package/src/core/commands/research/ask.md +2 -0
  65. package/src/core/commands/research/import.md +1 -0
  66. package/src/core/commands/research/list.md +2 -0
  67. package/src/core/commands/research/synthesize.md +584 -0
  68. package/src/core/commands/research/view.md +2 -0
  69. package/src/core/commands/status.md +126 -1
  70. package/src/core/commands/story/list.md +9 -9
  71. package/src/core/commands/story/view.md +1 -0
  72. package/src/core/experts/codebase-query/expertise.yaml +190 -0
  73. package/src/core/experts/codebase-query/question.md +73 -0
  74. package/src/core/experts/codebase-query/self-improve.md +105 -0
  75. package/tools/cli/commands/tui.js +40 -271
@@ -3,6 +3,12 @@ name: agileflow-mentor
3
3
  description: End-to-end implementation mentor. Use for guiding feature implementation from idea to PR, researching approaches, creating missing epics/stories, and orchestrating multi-step workflows.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: sonnet
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/json-schema-validator.js"
6
12
  compact_context:
7
13
  priority: "critical"
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-mobile
3
3
  description: Mobile specialist for React Native, Flutter, cross-platform mobile development, and mobile-specific features.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/component-validator.js"
6
12
  compact_context:
7
13
  priority: high
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-monitoring
3
3
  description: Monitoring specialist for observability, logging strategies, alerting rules, metrics dashboards, and production visibility.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/json-schema-validator.js"
6
12
  compact_context:
7
13
  priority: high
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-multi-expert
3
3
  description: Multi-expert orchestrator that deploys 3-5 domain experts on the same problem and synthesizes results for high-confidence answers.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep, Task, TaskOutput
5
5
  model: sonnet
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/json-schema-validator.js"
6
12
  compact_context:
7
13
  priority: "high"
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-performance
3
3
  description: Performance specialist for optimization, profiling, benchmarking, scalability, and performance-critical features.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Bash"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/test-result-validator.js"
6
12
  ---
7
13
 
8
14
  ## STEP 0: Gather Context
@@ -3,6 +3,12 @@ name: agileflow-product
3
3
  description: Product specialist for requirements analysis, user stories, acceptance criteria clarity, and feature validation before epic planning.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/story-format-validator.js"
6
12
  compact_context:
7
13
  priority: high
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-qa
3
3
  description: QA specialist for test strategy, test planning, quality metrics, regression testing, and release readiness validation.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Bash"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/test-result-validator.js"
6
12
  compact_context:
7
13
  priority: high
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-readme-updater
3
3
  description: README specialist for auditing and updating all documentation files across project folders.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/markdown-validator.js"
6
12
  compact_context:
7
13
  priority: medium
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-refactor
3
3
  description: Refactoring specialist for technical debt cleanup, legacy code modernization, codebase health, and code quality improvements.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Bash"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/test-result-validator.js"
6
12
  compact_context:
7
13
  priority: "high"
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-research
3
3
  description: Research specialist. Use for gathering technical information, creating research prompts for ChatGPT, saving research notes, and maintaining the research index.
4
4
  tools: Read, Write, Edit, Glob, Grep, WebFetch, WebSearch
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/markdown-validator.js"
6
12
  compact_context:
7
13
  priority: "high"
8
14
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-security
3
3
  description: Security specialist for vulnerability analysis, authentication patterns, authorization, compliance, and security reviews before release.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/security-validator.js"
6
12
  compact_context:
7
13
  priority: critical
8
14
  preserve_rules:
@@ -3,6 +3,16 @@ name: agileflow-testing
3
3
  description: Testing specialist for test strategy, test patterns, coverage optimization, and comprehensive test suite design (different from CI infrastructure).
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Bash"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/test-result-validator.js"
12
+ Stop:
13
+ - hooks:
14
+ - type: command
15
+ command: "echo 'Testing agent complete - verify test_status in status.json'"
6
16
  compact_context:
7
17
  priority: high
8
18
  preserve_rules:
@@ -3,6 +3,12 @@ name: agileflow-ui
3
3
  description: UI/presentation layer specialist. Use for implementing front-end components, styling, theming, accessibility features, and stories tagged with owner AG-UI.
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep
5
5
  model: haiku
6
+ hooks:
7
+ PostToolUse:
8
+ - matcher: "Write"
9
+ hooks:
10
+ - type: command
11
+ command: "node .agileflow/hooks/validators/component-validator.js"
6
12
  compact_context:
7
13
  priority: high
8
14
  preserve_rules:
@@ -0,0 +1,401 @@
1
+ ---
2
+ description: Audit story completion - tests + acceptance criteria verification (GSD pattern)
3
+ argument-hint: STORY=<US-ID>
4
+ compact_context:
5
+ priority: high
6
+ preserve_rules:
7
+ - "STORY ID is REQUIRED - always ask if missing"
8
+ - "Run STEP 0 context activation before any other action"
9
+ - "Execute 4-step audit: tests, AC check, learnings, verdict"
10
+ - "Generate clear PASS/FAIL report with visual indicators"
11
+ - "On PASS, suggest marking story complete"
12
+ state_fields:
13
+ - story_id
14
+ - audit_result
15
+ - tests_passed
16
+ - ac_verified
17
+ ---
18
+
19
+ # Story Audit
20
+
21
+ Verify story completion through the GSD (Get Stuff Done) audit cycle: run tests, check acceptance criteria, capture learnings, and provide clear PASS/FAIL verdict.
22
+
23
+ ---
24
+
25
+ ## STEP 0: Gather Context
26
+
27
+ ```bash
28
+ node .agileflow/scripts/obtain-context.js audit
29
+ ```
30
+
31
+ This gathers git status, stories/epics, session state, and registers for PreCompact.
32
+
33
+ ---
34
+
35
+ <!-- COMPACT_SUMMARY_START -->
36
+
37
+ ## Compact Summary
38
+
39
+ **Role**: Story Auditor - GSD verification cycle before completion
40
+
41
+ **Critical Behavioral Rules**:
42
+ 1. ALWAYS run STEP 0 activation before any other action
43
+ 2. STORY ID is REQUIRED - ask user if not provided
44
+ 3. Execute 4-step audit: tests, AC check, learnings, verdict
45
+ 4. Generate clear PASS/FAIL report with visual indicators
46
+ 5. On PASS, suggest marking story complete
47
+
48
+ **Workflow**:
49
+ 1. **Parse Story**: Get story ID from argument or ask user
50
+ 2. **Run Tests**: Execute test command from environment.json
51
+ 3. **Check AC**: Display acceptance criteria, ask user to verify each
52
+ 4. **Capture Learnings**: Prompt for insights and technical debt
53
+ 5. **Verdict**: PASS if tests pass AND all AC verified, otherwise FAIL
54
+ 6. **Next Steps**: Suggest marking complete (PASS) or fixing issues (FAIL)
55
+
56
+ **Audit Result Values**:
57
+ - `PASS`: Tests passing + All AC verified
58
+ - `FAIL`: Tests failing OR Any AC unverified
59
+
60
+ **Output Format Requirements**:
61
+ - Display test results with counts and duration
62
+ - Show each AC with checkbox status
63
+ - Clear PASS/FAIL verdict with blocking issues if any
64
+ - Actionable next steps
65
+
66
+ **Integration**:
67
+ - Uses: environment.json (test config), status.json (story/AC data)
68
+ - Logs to: docs/09-agents/bus/log.jsonl (learnings)
69
+ - Related: /agileflow:verify, /agileflow:story-validate, /agileflow:status
70
+
71
+ **Tool Usage Examples**:
72
+
73
+ TodoWrite:
74
+ ```xml
75
+ <invoke name="TodoWrite">
76
+ <parameter name="todos">[
77
+ {"content": "Parse story ID and load story data", "status": "in_progress", "activeForm": "Loading story"},
78
+ {"content": "Run project tests", "status": "pending", "activeForm": "Running tests"},
79
+ {"content": "Verify acceptance criteria with user", "status": "pending", "activeForm": "Verifying AC"},
80
+ {"content": "Capture learnings", "status": "pending", "activeForm": "Capturing learnings"},
81
+ {"content": "Generate audit verdict and next steps", "status": "pending", "activeForm": "Generating verdict"}
82
+ ]</parameter>
83
+ </invoke>
84
+ ```
85
+
86
+ AskUserQuestion (AC Verification):
87
+ ```xml
88
+ <invoke name="AskUserQuestion">
89
+ <parameter name="questions">[{
90
+ "question": "Verify each acceptance criterion is met for US-0129:",
91
+ "header": "AC Check",
92
+ "multiSelect": true,
93
+ "options": [
94
+ {"label": "AC1: Create audit.md", "description": "File exists in commands/"},
95
+ {"label": "AC2: Accept story ID", "description": "Argument parsing works"},
96
+ {"label": "AC3: Run tests", "description": "Tests execute and report"},
97
+ {"label": "AC4: Check AC met", "description": "AC verification works"}
98
+ ]
99
+ }]</parameter>
100
+ </invoke>
101
+ ```
102
+
103
+ <!-- COMPACT_SUMMARY_END -->
104
+
105
+ ---
106
+
107
+ ## Prompt
108
+
109
+ ROLE: Story Auditor
110
+
111
+ INPUTS
112
+ STORY=<US-ID> Required - story to audit
113
+
114
+ TODO LIST TRACKING
115
+ **CRITICAL**: Immediately create a todo list using TodoWrite tool:
116
+ ```
117
+ 1. Parse story ID and load story data
118
+ 2. Run project tests
119
+ 3. Verify acceptance criteria with user
120
+ 4. Capture learnings
121
+ 5. Generate audit verdict and next steps
122
+ ```
123
+
124
+ ACTIONS
125
+
126
+ ### Step 1: Parse Story ID
127
+
128
+ If STORY argument not provided, ask user:
129
+ ```xml
130
+ <invoke name="AskUserQuestion">
131
+ <parameter name="questions">[{
132
+ "question": "Which story would you like to audit?",
133
+ "header": "Story ID",
134
+ "multiSelect": false,
135
+ "options": [
136
+ {"label": "Enter story ID", "description": "e.g., US-0129"}
137
+ ]
138
+ }]</parameter>
139
+ </invoke>
140
+ ```
141
+
142
+ Load story from `docs/09-agents/status.json`:
143
+ - Verify story exists
144
+ - Get title, epic, acceptance_criteria array
145
+ - Check current status (should be in_progress or ready)
146
+
147
+ ### Step 2: Run Tests
148
+
149
+ Read `docs/00-meta/environment.json` for test configuration:
150
+ - `test_command` - Command to run (e.g., "npm test")
151
+ - `test_timeout_ms` - Maximum wait time
152
+
153
+ Execute tests:
154
+ ```bash
155
+ # Run with timeout, capture exit code
156
+ timeout 120s npm test 2>&1
157
+ EXIT_CODE=$?
158
+ ```
159
+
160
+ Parse results:
161
+ - Exit code 0 = PASSING
162
+ - Exit code non-zero = FAILING
163
+ - Extract pass/fail counts if possible (Jest/Pytest patterns)
164
+
165
+ ### Step 3: Verify Acceptance Criteria
166
+
167
+ Display each AC from status.json and ask user to verify:
168
+
169
+ ```xml
170
+ <invoke name="AskUserQuestion">
171
+ <parameter name="questions">[{
172
+ "question": "Verify each acceptance criterion is met for {{STORY_ID}}:",
173
+ "header": "AC Check",
174
+ "multiSelect": true,
175
+ "options": [
176
+ {"label": "{{AC_1}}", "description": "Mark if complete"},
177
+ {"label": "{{AC_2}}", "description": "Mark if complete"},
178
+ {"label": "{{AC_3}}", "description": "Mark if complete"}
179
+ ]
180
+ }]</parameter>
181
+ </invoke>
182
+ ```
183
+
184
+ Calculate verification rate:
185
+ - Count selected (verified) vs total AC
186
+ - 100% = All verified
187
+ - <100% = Partial
188
+
189
+ ### Step 4: Capture Learnings
190
+
191
+ Prompt user for insights:
192
+
193
+ ```xml
194
+ <invoke name="AskUserQuestion">
195
+ <parameter name="questions">[{
196
+ "question": "What did you learn during this story? (Select or enter custom)",
197
+ "header": "Learnings",
198
+ "multiSelect": false,
199
+ "options": [
200
+ {"label": "Enter learnings", "description": "Share insights, patterns discovered, or improvements"},
201
+ {"label": "No learnings to capture", "description": "Skip this step"}
202
+ ]
203
+ }]</parameter>
204
+ </invoke>
205
+ ```
206
+
207
+ If learnings provided, log to `docs/09-agents/bus/log.jsonl`:
208
+ ```json
209
+ {
210
+ "type": "audit_learnings",
211
+ "story": "US-0129",
212
+ "timestamp": "2026-01-19T12:00:00Z",
213
+ "learnings": "User's learnings text here",
214
+ "tests_passed": true,
215
+ "ac_verified": 7,
216
+ "ac_total": 7
217
+ }
218
+ ```
219
+
220
+ ### Step 5: Generate Verdict
221
+
222
+ **PASS Criteria**:
223
+ - Tests passing (exit code 0)
224
+ - All AC verified (100%)
225
+
226
+ **FAIL Criteria**:
227
+ - Tests failing (exit code non-zero)
228
+ - OR any AC unverified (<100%)
229
+
230
+ ---
231
+
232
+ ## Output Format
233
+
234
+ ### PASS Report
235
+
236
+ ```
237
+ ========================================
238
+ STORY AUDIT: US-0129
239
+ ========================================
240
+
241
+ TESTS
242
+ Command: npm test
243
+ Result: PASSED (2,201 passed, 0 failed)
244
+ Duration: 45.2s
245
+
246
+ ACCEPTANCE CRITERIA
247
+ [x] Create packages/cli/src/core/commands/audit.md
248
+ [x] Accept story ID as argument
249
+ [x] Run tests and report pass/fail
250
+ [x] Check acceptance criteria met
251
+ [x] Prompt for learnings to capture
252
+ [x] Output: PASS/FAIL with recommended next action
253
+ [x] On PASS, suggest marking story complete
254
+
255
+ AC Verification: 7/7 (100%)
256
+
257
+ ========================================
258
+ AUDIT RESULT: PASS
259
+ ========================================
260
+ Tests: PASSING
261
+ AC: ALL VERIFIED (7/7)
262
+
263
+ Learnings captured:
264
+ - GSD audit pattern successfully integrated
265
+
266
+ NEXT STEPS:
267
+ 1. Mark story complete: /agileflow:status US-0129 STATUS=done
268
+ 2. Review epic progress: /agileflow:epic EP-0022
269
+ ```
270
+
271
+ ### FAIL Report
272
+
273
+ ```
274
+ ========================================
275
+ STORY AUDIT: US-0129
276
+ ========================================
277
+
278
+ TESTS
279
+ Command: npm test
280
+ Result: FAILED (40 passed, 3 failed)
281
+ Duration: 12.8s
282
+
283
+ ACCEPTANCE CRITERIA
284
+ [x] Create packages/cli/src/core/commands/audit.md
285
+ [x] Accept story ID as argument
286
+ [x] Run tests and report pass/fail
287
+ [ ] Check acceptance criteria met
288
+ [ ] Prompt for learnings to capture
289
+ [x] Output: PASS/FAIL with recommended next action
290
+ [x] On PASS, suggest marking story complete
291
+
292
+ AC Verification: 5/7 (71%)
293
+
294
+ ========================================
295
+ AUDIT RESULT: FAIL
296
+ ========================================
297
+ Tests: FAILING (3 failed)
298
+ AC: PARTIAL (5/7)
299
+
300
+ BLOCKING ISSUES:
301
+ - Test: audit.test.ts:42 - Expected PASS verdict
302
+ - AC: "Check acceptance criteria met" - Not implemented
303
+ - AC: "Prompt for learnings" - Missing
304
+
305
+ NEXT STEPS:
306
+ 1. Fix failing tests
307
+ 2. Complete missing AC items
308
+ 3. Re-run: /agileflow:audit US-0129
309
+ ```
310
+
311
+ ---
312
+
313
+ ## Post-Audit Actions
314
+
315
+ ### If PASS
316
+
317
+ Offer to mark story complete:
318
+
319
+ ```xml
320
+ <invoke name="AskUserQuestion">
321
+ <parameter name="questions">[{
322
+ "question": "Story US-0129 passed audit! What would you like to do?",
323
+ "header": "Next Steps",
324
+ "multiSelect": false,
325
+ "options": [
326
+ {"label": "Mark complete (Recommended)", "description": "Update status to done"},
327
+ {"label": "View epic progress", "description": "Check EP-0022 status"},
328
+ {"label": "Done", "description": "Exit without changes"}
329
+ ]
330
+ }]</parameter>
331
+ </invoke>
332
+ ```
333
+
334
+ If "Mark complete":
335
+ 1. Update status.json: `status: "done"`, add `completed_at` timestamp
336
+ 2. Add audit summary to story
337
+ 3. Log completion to bus/log.jsonl
338
+
339
+ ### If FAIL
340
+
341
+ Offer to help fix issues:
342
+
343
+ ```xml
344
+ <invoke name="AskUserQuestion">
345
+ <parameter name="questions">[{
346
+ "question": "Story US-0129 failed audit. What would you like to do?",
347
+ "header": "Fix Issues",
348
+ "multiSelect": false,
349
+ "options": [
350
+ {"label": "Fix failing tests", "description": "I'll help debug test failures"},
351
+ {"label": "Review AC requirements", "description": "Check what's missing"},
352
+ {"label": "Done", "description": "Exit and fix later"}
353
+ ]
354
+ }]</parameter>
355
+ </invoke>
356
+ ```
357
+
358
+ ---
359
+
360
+ ## Error Handling
361
+
362
+ ### Story Not Found
363
+ ```
364
+ Story US-9999 not found in status.json
365
+
366
+ Available in_progress stories:
367
+ - US-0129: Create /agileflow:audit command
368
+ - US-0130: Add phase handoff summaries
369
+
370
+ Run: /agileflow:audit US-0129
371
+ ```
372
+
373
+ ### No Test Configuration
374
+ ```
375
+ No test configuration found.
376
+
377
+ Run /agileflow:session:init to configure:
378
+ - test_command
379
+ - test_timeout_ms
380
+
381
+ Or manually create docs/00-meta/environment.json
382
+ ```
383
+
384
+ ### Story Already Complete
385
+ ```
386
+ Story US-0129 is already marked as 'done'
387
+
388
+ To re-audit, first change status:
389
+ /agileflow:status US-0129 STATUS=in_progress
390
+
391
+ Then run audit again.
392
+ ```
393
+
394
+ ---
395
+
396
+ ## Related Commands
397
+
398
+ - `/agileflow:verify` - Run tests only (no AC check)
399
+ - `/agileflow:story-validate` - Validate story structure before development
400
+ - `/agileflow:status` - Update story status
401
+ - `/agileflow:epic` - View epic progress
@@ -2,6 +2,7 @@
2
2
  description: Display visual kanban board with WIP limits
3
3
  argument-hint: "[EPIC=<id>] [OWNER=<id>] [FORMAT=ascii|markdown|html] [GROUP_BY=status|owner|epic]"
4
4
  model: haiku
5
+ type: output-only # Board display - read-only visualization, not an ongoing task
5
6
  compact_context:
6
7
  priority: medium
7
8
  preserve_rules: