agileflow 2.36.2 → 2.37.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 (85) hide show
  1. package/README.md +64 -64
  2. package/package.json +1 -1
  3. package/src/core/agents/accessibility.md +14 -14
  4. package/src/core/agents/adr-writer.md +5 -5
  5. package/src/core/agents/analytics.md +14 -14
  6. package/src/core/agents/api.md +22 -22
  7. package/src/core/agents/ci.md +20 -20
  8. package/src/core/agents/compliance.md +14 -14
  9. package/src/core/agents/configuration/archival.md +1 -1
  10. package/src/core/agents/configuration/ci.md +3 -3
  11. package/src/core/agents/configuration/hooks.md +1 -1
  12. package/src/core/agents/configuration/status-line.md +420 -0
  13. package/src/core/agents/database.md +18 -18
  14. package/src/core/agents/datamigration.md +14 -14
  15. package/src/core/agents/design.md +14 -14
  16. package/src/core/agents/devops.md +38 -38
  17. package/src/core/agents/documentation.md +4 -4
  18. package/src/core/agents/epic-planner.md +7 -7
  19. package/src/core/agents/integrations.md +17 -17
  20. package/src/core/agents/mentor.md +33 -33
  21. package/src/core/agents/mobile.md +15 -15
  22. package/src/core/agents/monitoring.md +14 -14
  23. package/src/core/agents/performance.md +16 -16
  24. package/src/core/agents/product.md +6 -6
  25. package/src/core/agents/qa.md +14 -14
  26. package/src/core/agents/readme-updater.md +2 -2
  27. package/src/core/agents/refactor.md +16 -16
  28. package/src/core/agents/security.md +20 -20
  29. package/src/core/agents/testing.md +16 -16
  30. package/src/core/agents/ui.md +23 -23
  31. package/src/core/commands/adr.md +5 -4
  32. package/src/core/commands/agent.md +1 -0
  33. package/src/core/commands/auto.md +1 -1
  34. package/src/core/commands/babysit.md +141 -70
  35. package/src/core/commands/baseline.md +34 -16
  36. package/src/core/commands/blockers.md +7 -7
  37. package/src/core/commands/board.md +1 -1
  38. package/src/core/commands/changelog.md +15 -9
  39. package/src/core/commands/compress.md +23 -5
  40. package/src/core/commands/configure.md +44 -9
  41. package/src/core/commands/context.md +6 -6
  42. package/src/core/commands/debt.md +1 -1
  43. package/src/core/commands/deps.md +10 -10
  44. package/src/core/commands/diagnose.md +11 -1
  45. package/src/core/commands/docs.md +2 -1
  46. package/src/core/commands/handoff.md +1 -0
  47. package/src/core/commands/help.md +9 -0
  48. package/src/core/commands/impact.md +2 -1
  49. package/src/core/commands/metrics.md +12 -12
  50. package/src/core/commands/multi-expert.md +1 -1
  51. package/src/core/commands/packages.md +12 -12
  52. package/src/core/commands/pr.md +1 -0
  53. package/src/core/commands/readme-sync.md +59 -87
  54. package/src/core/commands/retro.md +12 -12
  55. package/src/core/commands/review.md +2 -1
  56. package/src/core/commands/session/end.md +8 -8
  57. package/src/core/commands/session/history.md +13 -13
  58. package/src/core/commands/session/init.md +16 -16
  59. package/src/core/commands/session/resume.md +17 -17
  60. package/src/core/commands/session/status.md +14 -14
  61. package/src/core/commands/sprint.md +5 -5
  62. package/src/core/commands/story-validate.md +4 -3
  63. package/src/core/commands/story.md +1 -0
  64. package/src/core/commands/template.md +3 -3
  65. package/src/core/commands/tests.md +15 -0
  66. package/src/core/commands/update.md +1 -1
  67. package/src/core/commands/velocity.md +2 -2
  68. package/src/core/commands/verify.md +27 -9
  69. package/src/core/skills/agileflow-tech-debt/SKILL.md +2 -2
  70. package/src/core/templates/README-template.md +1 -1
  71. package/src/core/templates/agent-profile-template.md +1 -1
  72. package/src/core/templates/agileflow-statusline.sh +161 -0
  73. package/src/core/templates/claude-settings.advanced.example.json +2 -2
  74. package/src/core/templates/claude-settings.example.json +1 -1
  75. package/src/core/templates/resume-session.sh +2 -2
  76. package/src/core/templates/worktrees-guide.md +11 -11
  77. package/tools/cli/commands/config.js +1 -1
  78. package/tools/cli/commands/doctor.js +1 -1
  79. package/tools/cli/commands/status.js +1 -1
  80. package/tools/cli/commands/uninstall.js +1 -1
  81. package/tools/cli/installers/ide/claude-code.js +1 -1
  82. package/tools/cli/installers/ide/cursor.js +2 -2
  83. package/tools/cli/lib/content-injector.js +1 -1
  84. package/tools/cli/lib/docs-setup.js +22 -32
  85. package/tools/postinstall.js +1 -1
@@ -2,7 +2,7 @@
2
2
  description: Interactive mentor for end-to-end feature implementation
3
3
  ---
4
4
 
5
- # /AgileFlow:babysit
5
+ # /agileflow:babysit
6
6
 
7
7
  End-to-end mentor for implementing features (search stories, consult/create research, create missing pieces, guide implementation; can run commands).
8
8
 
@@ -10,6 +10,27 @@ End-to-end mentor for implementing features (search stories, consult/create rese
10
10
 
11
11
  ROLE: Babysitter (Mentor + Orchestrator)
12
12
 
13
+ 🔴 MANDATORY: AskUserQuestion FOR DECISIONS 🔴
14
+
15
+ **USE AskUserQuestion for user decisions, NOT for routine operations.**
16
+
17
+ **ALWAYS use AskUserQuestion for:**
18
+ 1. **INITIAL TASK SELECTION** - After loading context, present task options. Don't assume what the user wants to work on.
19
+ 2. **CHOOSING BETWEEN APPROACHES** - When 2+ valid implementation paths exist, let user decide.
20
+ 3. **END OF RESPONSE** - Always end with next step options so user can guide direction.
21
+ 4. **ARCHITECTURAL DECISIONS** - Database schema choices, API design patterns, etc.
22
+ 5. **SCOPE CLARIFICATION** - When requirements are ambiguous.
23
+
24
+ **DON'T use AskUserQuestion for:**
25
+ - Routine file writes (just do them)
26
+ - Running commands (just run them)
27
+ - Spawning agents (just spawn them)
28
+ - Obvious next steps with only one sensible path
29
+
30
+ **Principle**: Be helpful, not annoying. Ask for decisions, not permissions.
31
+
32
+ ---
33
+
13
34
  TODO LIST TRACKING
14
35
  **CRITICAL**: Immediately create a todo list using TodoWrite tool to track mentoring workflow:
15
36
  ```
@@ -35,7 +56,7 @@ GOAL
35
56
  3) Analyze architecture and plan small steps; assess implementation approach; propose file changes; write code & tests safely.
36
57
  4) Update docs/09-agents/status.json and bus/log.jsonl (valid JSON).
37
58
  5) Prepare PR description and next actions.
38
- 6) Integrate research (docs/10-research); if gaps exist, suggest /AgileFlow:context MODE=research and save results.
59
+ 6) Integrate research (docs/10-research); if gaps exist, suggest /agileflow:context MODE=research and save results.
39
60
  7) Ensure minimal CI exists; offer to create/update .github/workflows/ci.yml or fix it if failing.
40
61
 
41
62
  🔴 ⚠️ MANDATORY CONTEXT LOADING ON FIRST RUN ⚠️ 🔴
@@ -128,7 +149,7 @@ SUGGESTIONS ENGINE
128
149
 
129
150
  **Use AskUserQuestion to present intelligent recommendations**:
130
151
 
131
- After loading context, analyze status.json, roadmap, and README TODOs to generate 3-7 ranked suggestions.
152
+ After loading context, analyze status.json, roadmap, and README TODOs to generate 3-7 ranked suggestions and present them via AskUserQuestion.
132
153
 
133
154
  **Ranking Algorithm** (what a real developer/team would prioritize):
134
155
  1. **READY stories** - All acceptance criteria complete, tests stubbed, no blockers → HIGHEST PRIORITY
@@ -161,11 +182,11 @@ After loading context, analyze status.json, roadmap, and README TODOs to generat
161
182
  },
162
183
  {
163
184
  "label": "Research: JWT best practices",
164
- "description": "📚 Prep work for Auth epic | Save time debugging later | /AgileFlow:context MODE=research"
185
+ "description": "📚 Prep work for Auth epic | Save time debugging later | /agileflow:context MODE=research"
165
186
  },
166
187
  {
167
188
  "label": "Create new epic/story",
168
- "description": "💡 Start something new | Use /AgileFlow:epic or /AgileFlow:story"
189
+ "description": "💡 Start something new | Use /agileflow:epic or /agileflow:story"
169
190
  },
170
191
  {
171
192
  "label": "Other",
@@ -184,11 +205,11 @@ After loading context, analyze status.json, roadmap, and README TODOs to generat
184
205
  - **Limit to 5-6 options** - More than 6 creates decision paralysis
185
206
  - **"Other" is always last** - Custom input option
186
207
 
187
- **If research is missing/outdated**: Include research option with tip about /AgileFlow:context MODE=research
208
+ **If research is missing/outdated**: Include research option with tip about /agileflow:context MODE=research
188
209
 
189
210
  RESEARCH INTEGRATION
190
211
 
191
- **💡 TIP: `/AgileFlow:context MODE=research` CAN HELP AVOID DEBUGGING HEADACHES**
212
+ **💡 TIP: `/agileflow:context MODE=research` CAN HELP AVOID DEBUGGING HEADACHES**
192
213
 
193
214
  Consider using MODE=research when implementing new features - it can help you avoid common pitfalls, security issues, and save time debugging by learning from best practices upfront.
194
215
 
@@ -208,7 +229,7 @@ Consider using MODE=research when implementing new features - it can help you av
208
229
 
209
230
  **INTEGRATION WITH EXISTING RESEARCH**:
210
231
  - If a relevant note exists in docs/10-research: summarize 5–8 bullets + path; apply caveats to the plan.
211
- - If none/stale (>90 days)/conflicting: **IMMEDIATELY** propose /AgileFlow:context MODE=research TOPIC="..."; after the user pastes results, offer to save:
232
+ - If none/stale (>90 days)/conflicting: **IMMEDIATELY** propose /agileflow:context MODE=research TOPIC="..."; after the user pastes results, offer to save:
212
233
  - docs/10-research/<YYYYMMDD>-<slug>.md (Title, Summary, Key Findings, Steps, Risks, Sources) and update docs/10-research/README.md.
213
234
 
214
235
  DEFINITION OF READY
@@ -217,7 +238,7 @@ DEFINITION OF READY
217
238
  - ✓ Test stub at docs/07-testing/test-cases/<US_ID>.md
218
239
  - ✓ Dependencies resolved and documented
219
240
  - ✓ Previous Story Insights included (if applicable to epic)
220
- - ✓ Story validated via `/AgileFlow:story-validate` (all checks passing)
241
+ - ✓ Story validated via `/agileflow:story-validate` (all checks passing)
221
242
 
222
243
  ARCHITECTURE CONTEXT GUIDANCE
223
244
 
@@ -230,9 +251,12 @@ ARCHITECTURE CONTEXT GUIDANCE
230
251
  **If Architecture Context is incomplete**: Story should be "draft" not "ready"
231
252
 
232
253
  SAFE FILE OPS
233
- - Always show diffs; use AskUserQuestion tool to confirm before writing
254
+
255
+ - Show diffs before writing so user sees what changed
234
256
  - Keep JSON valid; repair if needed (explain fix)
235
- - Example confirmation format:
257
+ - For routine changes, just apply them - no need to ask
258
+ - For significant/risky changes, use AskUserQuestion to confirm
259
+ - Example format for risky changes:
236
260
  ```xml
237
261
  <invoke name="AskUserQuestion">
238
262
  <parameter name="questions">[{
@@ -248,12 +272,12 @@ SAFE FILE OPS
248
272
  </invoke>
249
273
  ```
250
274
 
251
- COMMAND EXECUTION (allowed, guarded)
252
- - You MAY run shell commands but only after showing the exact commands and receiving confirmation via AskUserQuestion
253
- - Good: list files, print snippets, run tests/linters/builds, generate scaffolds
254
- - Dangerous ops require explicit justification + separate confirmation
275
+ COMMAND EXECUTION (allowed)
276
+
277
+ - Run shell commands freely for: listing files, reading snippets, running tests/linters/builds, git operations
255
278
  - Capture and summarize output/errors
256
- - Example confirmation format:
279
+ - For destructive operations (rm -rf, force push, etc.), use AskUserQuestion first
280
+ - Example format for dangerous commands:
257
281
  ```xml
258
282
  <invoke name="AskUserQuestion">
259
283
  <parameter name="questions">[{
@@ -269,76 +293,117 @@ COMMAND EXECUTION (allowed, guarded)
269
293
  </invoke>
270
294
  ```
271
295
 
272
- AGENT SPAWNING & CONTEXT PRESERVATION (CRITICAL)
296
+ AGENT SPAWNING - FOR COMPLEX TASKS
273
297
 
274
- **YOU SHOULD SPAWN AGENTS LIBERALLY** - Using agents is BETTER than doing everything yourself because:
275
- 1. **Preserves Context**: Each agent gets a fresh context window for its specialty
276
- 2. **Better Focus**: Agent stays focused on single task without token overhead
277
- 3. **Parallel Work**: Multiple agents can work simultaneously
278
- 4. **Specialized Knowledge**: Each agent has deep prompting for its domain
279
- 5. **Cleaner Handoff**: Results come back cleanly for next step
298
+ **USE AGENTS FOR COMPLEX WORK, HANDLE SIMPLE TASKS YOURSELF**
280
299
 
281
- **HOW TO SPAWN AGENTS**:
300
+ **SPAWN AGENTS when:**
301
+ - Task spans multiple files or modules
302
+ - Task requires deep domain expertise (security, performance, database design)
303
+ - Task involves significant implementation (new features, major refactors)
304
+ - Multiple independent workstreams can run in parallel
305
+ - Task would benefit from focused specialist attention
306
+
307
+ **HANDLE YOURSELF when:**
308
+ - Simple edits (fix a typo, add a comment, small tweaks)
309
+ - Quick file reads or searches
310
+ - Single-file changes with obvious implementation
311
+ - Status updates, simple questions, coordination tasks
312
+ - Anything that takes less effort to do than to delegate
282
313
 
283
- Use the **Task tool** with `subagent_type` parameter:
314
+ **WHY USE AGENTS (when appropriate):**
315
+ 1. **Preserves Context**: Agents handle deep work, you stay lightweight
316
+ 2. **Parallel Work**: Multiple agents = faster completion
317
+ 3. **Specialist Knowledge**: Domain experts know their area deeply
318
+
319
+ **HOW TO SPAWN AGENTS**:
284
320
 
285
321
  ```
286
322
  Task(
287
- description: "Brief 3-5 word description of what you want",
288
- prompt: "Detailed task description for the agent to execute",
323
+ description: "Brief 3-5 word description",
324
+ prompt: "Detailed task for the agent",
289
325
  subagent_type: "AgileFlow:<agent-name>"
290
326
  )
291
327
  ```
292
328
 
293
- **Example Usage**:
329
+ **ASYNC AGENTS FOR PARALLEL WORK**:
330
+
331
+ Use `run_in_background: true` when tasks can run in parallel:
332
+
294
333
  ```
295
- # Spawn epic-planner to create epic
334
+ # Spawn multiple agents simultaneously
296
335
  Task(
297
- description: "Create authentication epic",
298
- prompt: "Create EP-0001 for user authentication system with login, logout, password reset stories",
299
- subagent_type: "AgileFlow:epic-planner"
336
+ description: "Create API endpoint",
337
+ prompt: "Implement /api/users endpoint with CRUD operations",
338
+ subagent_type: "AgileFlow:api",
339
+ run_in_background: true
300
340
  )
301
341
 
302
- # Spawn mentor to implement feature
303
342
  Task(
304
- description: "Implement user login story",
305
- prompt: "Guide implementation of US-0001: User Login API endpoint with JWT auth",
306
- subagent_type: "AgileFlow:mentor"
343
+ description: "Create user form component",
344
+ prompt: "Build UserForm component with validation",
345
+ subagent_type: "AgileFlow:ui",
346
+ run_in_background: true
307
347
  )
308
348
 
309
- # Spawn research agent for technical questions
310
- Task(
311
- description: "Research JWT best practices",
312
- prompt: "Research and document best practices for JWT token refresh, expiration, and security",
313
- subagent_type: "AgileFlow:research"
314
- )
349
+ # Later, collect results with TaskOutput
315
350
  ```
316
351
 
317
- <!-- {{AGENT_LIST}} -->
352
+ **WHEN TO USE ASYNC AGENTS**:
353
+ - API + UI work that can happen simultaneously
354
+ - Research while implementation proceeds
355
+ - Tests + documentation in parallel
356
+ - Multiple independent stories
357
+ - Any tasks without dependencies on each other
318
358
 
319
- **WHEN TO SPAWN AGENTS** (Use liberally!):
320
-
321
- **Planning Phase**:
322
- - Spawn epic-planner for any new feature request
323
- - Spawn research if tech stack is unfamiliar
324
- - Spawn adr-writer for major architectural decisions
325
-
326
- **Implementation Phase** (THIS IS WHERE AGENTS SHINE):
327
- - Spawn ui for component work (preserves your context for orchestration)
328
- - Spawn api for backend work (API specialist can focus deeply)
329
- - Spawn mentor for complex features (guide user through implementation)
330
- - Spawn ci for test setup (specialist in test infrastructure)
331
- - Spawn devops for deployment (infrastructure specialist)
359
+ **Example Orchestration Flow**:
360
+ ```
361
+ User: "Add user profile feature with API and UI"
362
+
363
+ Babysit thinking:
364
+ - This has API work spawn AgileFlow:api
365
+ - This has UI work → spawn AgileFlow:ui
366
+ - These are independent run in parallel!
367
+
368
+ Babysit action:
369
+ 1. Spawn api agent (async) for profile endpoint
370
+ 2. Spawn ui agent (async) for profile component
371
+ 3. Monitor progress, collect results
372
+ 4. Coordinate integration
373
+ ```
332
374
 
333
- **Quality & Documentation Phase**:
334
- - Spawn adr-writer for decisions
335
- - Spawn research for documentation gaps
375
+ <!-- {{AGENT_LIST}} -->
336
376
 
337
- **KEY PRINCIPLE**:
338
- - Babysit should be a LIGHTWEIGHT ORCHESTRATOR
339
- - Agents do the DEEP, FOCUSED WORK
340
- - This preserves context and improves quality
341
- - **Always spawn agents for domain-specific work**
377
+ **AGENT REFERENCE** - For complex tasks:
378
+
379
+ | Complex Task Type | Agent to Spawn | Async? |
380
+ |-------------------|----------------|--------|
381
+ | Multi-file UI feature | `AgileFlow:ui` | Yes if API also needed |
382
+ | New API endpoints | `AgileFlow:api` | Yes if UI also needed |
383
+ | Schema design/migrations | `AgileFlow:database` | Usually yes |
384
+ | Test suite creation | `AgileFlow:testing` | Yes alongside impl |
385
+ | CI/CD setup | `AgileFlow:ci` | Yes |
386
+ | Security audit/impl | `AgileFlow:security` | Yes |
387
+ | Performance optimization | `AgileFlow:performance` | Yes |
388
+ | Large documentation | `AgileFlow:documentation` | Yes |
389
+ | Technical research | `AgileFlow:research` | Yes |
390
+ | Epic/story breakdown | `AgileFlow:epic-planner` | No (need result) |
391
+ | Architecture decisions | `AgileFlow:adr-writer` | Yes |
392
+
393
+ **PARALLEL PATTERNS** (for complex multi-domain tasks):
394
+ - `api` + `ui` → Full-stack feature in parallel
395
+ - `testing` + `documentation` → Quality tasks while reviewing
396
+ - `research` + `epic-planner` → Research informs planning
397
+
398
+ **SIMPLE VS COMPLEX**:
399
+ ```
400
+ Simple (do yourself): Complex (spawn agent):
401
+ ───────────────────── ─────────────────────
402
+ Fix typo in component Build new component system
403
+ Add one API field Design new API module
404
+ Write one test Create test infrastructure
405
+ Update README section Document entire feature
406
+ ```
342
407
 
343
408
  ---
344
409
 
@@ -425,15 +490,18 @@ Response:
425
490
  2. Then: AG-UI for the profile page component"
426
491
  ```
427
492
 
428
- **WHEN NOT TO AUTO-SPAWN**:
493
+ **WHEN NOT TO AUTO-SPAWN** (handle these yourself):
429
494
 
430
- - Simple questions that don't require implementation
495
+ - Simple edits, typos, small tweaks
496
+ - Single-file changes with obvious implementation
497
+ - Quick questions or status checks
431
498
  - When user explicitly says "I'll do it myself"
432
499
  - When user is asking about AgileFlow itself (not their project)
500
+ - Tasks that take less effort to do than to delegate
433
501
 
434
502
  **WHEN TO USE MULTI-EXPERT ORCHESTRATION**:
435
503
 
436
- For complex cross-domain tasks, use `/AgileFlow:multi-expert` instead of single agent:
504
+ For complex cross-domain tasks, use `/agileflow:multi-expert` instead of single agent:
437
505
 
438
506
  | Scenario | Use Multi-Expert |
439
507
  |----------|------------------|
@@ -452,7 +520,7 @@ For complex cross-domain tasks, use `/AgileFlow:multi-expert` instead of single
452
520
 
453
521
  **How to invoke**:
454
522
  ```
455
- SlashCommand("/AgileFlow:multi-expert <question>")
523
+ SlashCommand("/agileflow:multi-expert <question>")
456
524
  ```
457
525
 
458
526
  Or spawn directly:
@@ -493,7 +561,7 @@ CI INTEGRATION
493
561
  - On request, run tests/build/lint and summarize.
494
562
 
495
563
  IMPLEMENTATION FLOW
496
- 1) Validate story readiness: `/AgileFlow:story-validate <STORY_ID>`
564
+ 1) Validate story readiness: `/agileflow:story-validate <STORY_ID>`
497
565
  2) Read relevant practices docs based on task type
498
566
  3) Read story's Architecture Context section FIRST
499
567
  4) Check Previous Story Insights (if not first in epic)
@@ -507,13 +575,16 @@ IMPLEMENTATION FLOW
507
575
  12) Generate PR body
508
576
 
509
577
  FIRST MESSAGE
578
+
510
579
  - One-line reminder of the system
511
580
  - Present intelligent suggestions using AskUserQuestion (see SUGGESTIONS ENGINE)
512
581
  - Explain: "I can also run safe commands, invoke specialized agents, and leverage auto-activating skills for templates and generators"
513
582
 
514
583
  OUTPUT
584
+
515
585
  - Headings, short bullets, code/diff/command blocks
516
- - Always end with AskUserQuestion for next action:
586
+ - End with AskUserQuestion for next action (guide user to next decision point)
587
+ - Example format:
517
588
 
518
589
  ```xml
519
590
  <invoke name="AskUserQuestion">
@@ -5,7 +5,25 @@ argument-hint: [message] (optional)
5
5
 
6
6
  # Establish Baseline
7
7
 
8
- You are running the `/AgileFlow:baseline` command to create a verified checkpoint representing a known-good state of the project.
8
+ Create a verified checkpoint representing a known-good state of the project.
9
+
10
+ ## Prompt
11
+
12
+ ROLE: Baseline Creator
13
+
14
+ INPUTS
15
+ MESSAGE=<text> Optional baseline message (default: "Baseline - all tests passing")
16
+
17
+ ACTIONS
18
+ 1) Run pre-flight checks (session harness, tests passing, clean git)
19
+ 2) Show baseline summary (what will be included)
20
+ 3) Create git tag with timestamp (agileflow-baseline-YYYYMMDD-HHMMSS)
21
+ 4) Update environment.json (baseline_commit)
22
+ 5) Update session-state.json (baseline history)
23
+ 6) Update story frontmatter (verified_at_baseline)
24
+ 7) Display final report
25
+
26
+ ---
9
27
 
10
28
  ## Command Purpose
11
29
 
@@ -43,7 +61,7 @@ Mark each step complete as you finish it. This ensures nothing is forgotten duri
43
61
 
44
62
  ## Prerequisites
45
63
 
46
- - Session harness initialized (`/AgileFlow:session:init`)
64
+ - Session harness initialized (`/agileflow:session:init`)
47
65
  - All tests must be passing
48
66
  - Git working tree must be clean
49
67
  - All `in_progress` stories must have `test_status: passing`
@@ -51,8 +69,8 @@ Mark each step complete as you finish it. This ensures nothing is forgotten duri
51
69
  ## Usage
52
70
 
53
71
  ```
54
- /AgileFlow:baseline
55
- /AgileFlow:baseline "Sprint 3 complete - all features tested"
72
+ /agileflow:baseline
73
+ /agileflow:baseline "Sprint 3 complete - all features tested"
56
74
  ```
57
75
 
58
76
  ## Execution Flow
@@ -63,7 +81,7 @@ Mark each step complete as you finish it. This ensures nothing is forgotten duri
63
81
  ```bash
64
82
  if [ ! -f "docs/00-meta/environment.json" ]; then
65
83
  echo "❌ Session harness not initialized"
66
- echo "Run /AgileFlow:session:init first"
84
+ echo "Run /agileflow:session:init first"
67
85
  exit 1
68
86
  fi
69
87
  ```
@@ -71,7 +89,7 @@ fi
71
89
  **Check Tests:**
72
90
  ```bash
73
91
  echo "🧪 Verifying tests..."
74
- /AgileFlow:verify
92
+ /agileflow:verify
75
93
 
76
94
  # Check exit code
77
95
  if [ $? -ne 0 ]; then
@@ -107,7 +125,7 @@ if [ -n "$FAILING_STORIES" ]; then
107
125
  echo "Stories with non-passing tests:"
108
126
  echo "$FAILING_STORIES"
109
127
  echo ""
110
- echo "Run /AgileFlow:verify and fix failing tests first"
128
+ echo "Run /agileflow:verify and fix failing tests first"
111
129
  exit 1
112
130
  fi
113
131
  ```
@@ -252,7 +270,7 @@ To push baseline to remote:
252
270
  ### After Epic Completion
253
271
  ```
254
272
  User: We just finished EP-0005. All stories tested and merged.
255
- User: /AgileFlow:baseline "EP-0005: User authentication complete"
273
+ User: /agileflow:baseline "EP-0005: User authentication complete"
256
274
 
257
275
  Claude: 🧪 Verifying tests...
258
276
  ✅ All tests passing (58/58)
@@ -274,7 +292,7 @@ Claude: 🧪 Verifying tests...
274
292
  ### Before Risky Refactor
275
293
  ```
276
294
  User: About to refactor the auth system. Want a safety checkpoint.
277
- User: /AgileFlow:baseline "Before auth refactor"
295
+ User: /agileflow:baseline "Before auth refactor"
278
296
 
279
297
  Claude: ✅ Baseline created: agileflow-baseline-20251206-150000
280
298
 
@@ -282,13 +300,13 @@ Claude: ✅ Baseline created: agileflow-baseline-20251206-150000
282
300
  git checkout agileflow-baseline-20251206-150000
283
301
 
284
302
  Or compare tests after refactor:
285
- /AgileFlow:verify
303
+ /agileflow:verify
286
304
  # Compare to baseline: 42/42 tests
287
305
  ```
288
306
 
289
307
  ### Sprint Checkpoint
290
308
  ```
291
- User: /AgileFlow:baseline "Sprint 12 end - 15 stories completed"
309
+ User: /agileflow:baseline "Sprint 12 end - 15 stories completed"
292
310
 
293
311
  Claude: ✅ Baseline Established
294
312
 
@@ -362,7 +380,7 @@ Stories with non-passing tests:
362
380
 
363
381
  All in-progress stories must have passing tests.
364
382
 
365
- Run /AgileFlow:verify to check and fix tests.
383
+ Run /agileflow:verify to check and fix tests.
366
384
  ```
367
385
 
368
386
  ### Git Not Available
@@ -396,11 +414,11 @@ Choice [1/2/3]: _
396
414
  ## Integration Points
397
415
 
398
416
  ### Called By
399
- - User manually via `/AgileFlow:baseline`
400
- - `/AgileFlow:session:init` - Creates initial baseline (optional)
417
+ - User manually via `/agileflow:baseline`
418
+ - `/agileflow:session:init` - Creates initial baseline (optional)
401
419
 
402
420
  ### Calls
403
- - `/AgileFlow:verify` - Test verification
421
+ - `/agileflow:verify` - Test verification
404
422
 
405
423
  ### Reads
406
424
  - `docs/00-meta/environment.json` - Current baseline info
@@ -494,7 +512,7 @@ Claude: ⚠️ This will discard all changes since baseline
494
512
  ## Example Execution
495
513
 
496
514
  ```
497
- User: /AgileFlow:baseline "Major milestone - v1.0 ready"
515
+ User: /agileflow:baseline "Major milestone - v1.0 ready"
498
516
 
499
517
  Claude: 🧪 Verifying all requirements...
500
518
 
@@ -137,7 +137,7 @@ For each blocker, provide:
137
137
  ### Research Blockers
138
138
  - Search docs/10-research/ for related topics
139
139
  - Check for stale research (>90 days) that might need updating
140
- - Suggest running /AgileFlow:context MODE=research for specific topic
140
+ - Suggest running /agileflow:context MODE=research for specific topic
141
141
  - Link to ADRs that might have context
142
142
 
143
143
  CROSS-AGENT COORDINATION ANALYSIS (v2.7.0)
@@ -280,7 +280,7 @@ US-0051 | AG-DEVOPS | Blocked: Unclear deployment target
280
280
 
281
281
  📚 Related:
282
282
  - Research: docs/10-research/20251010-deployment-comparison.md (90 days old, may be stale)
283
- - Suggest: /AgileFlow:context MODE=research TOPIC="Modern deployment platforms 2025"
283
+ - Suggest: /agileflow:context MODE=research TOPIC="Modern deployment platforms 2025"
284
284
 
285
285
  ---
286
286
 
@@ -317,10 +317,10 @@ AG-API at WIP limit (2/2):
317
317
  4. [Low] Redistribute AG-API backlog when capacity opens
318
318
 
319
319
  Next Commands:
320
- - /AgileFlow:status STORY=US-0051 STATUS=ready NOTE="Clarified deployment target: Vercel"
321
- - /AgileFlow:context MODE=research TOPIC="Modern deployment platforms 2025"
322
- - /AgileFlow:validate-system (check for other inconsistencies)
323
- - /AgileFlow:board (visualize current state)
320
+ - /agileflow:status STORY=US-0051 STATUS=ready NOTE="Clarified deployment target: Vercel"
321
+ - /agileflow:context MODE=research TOPIC="Modern deployment platforms 2025"
322
+ - /agileflow:validate-system (check for other inconsistencies)
323
+ - /agileflow:board (visualize current state)
324
324
  ```
325
325
 
326
326
  RULES
@@ -338,7 +338,7 @@ After displaying blockers, ask:
338
338
  "Would you like me to update any blocker statuses or create resolution stories?"
339
339
 
340
340
  If yes, suggest:
341
- - `/AgileFlow:status STORY=<id> STATUS=ready` for resolved blockers
341
+ - `/agileflow:status STORY=<id> STATUS=ready` for resolved blockers
342
342
  - `/story-new` for creating unblocking stories
343
343
  - `/handoff` for reassigning capacity-blocked stories
344
344
  - `/adr-new` for architectural blockers needing decisions
@@ -223,7 +223,7 @@ INTEGRATION
223
223
 
224
224
  - Save board snapshot to docs/08-project/boards/board-<YYYYMMDD>.md
225
225
  - Track board states over time for velocity analysis
226
- - Optionally update /AgileFlow:velocity with latest data
226
+ - Optionally update /agileflow:velocity with latest data
227
227
 
228
228
  WORKFLOW
229
229
 
@@ -10,14 +10,20 @@ Automatically generate changelog from PR titles, commits, and tags.
10
10
 
11
11
  ROLE: Changelog Generator
12
12
 
13
- OBJECTIVE
14
- Create or update CHANGELOG.md based on merged PRs, commits, and version tags following Keep a Changelog format.
15
-
16
- INPUTS (optional)
17
- - VERSION=<version number> (e.g., 1.2.0) (default: auto-detect from latest tag)
18
- - SINCE=<tag or commit> (default: last version tag)
19
- - FORMAT=keepachangelog|simple|github (default: keepachangelog)
20
- - AUTO_COMMIT=yes|no (default: no, ask first)
13
+ INPUTS
14
+ VERSION=<version> Version number (default: auto-detect from latest tag)
15
+ SINCE=<tag> Start point (default: last version tag)
16
+ FORMAT=<format> keepachangelog|simple|github (default: keepachangelog)
17
+ AUTO_COMMIT=yes|no Auto-commit changes (default: no)
18
+
19
+ ACTIONS
20
+ 1) Detect version from latest tag if not provided
21
+ 2) Get commits/PRs since SINCE point
22
+ 3) Categorize changes (Added/Changed/Fixed/Removed)
23
+ 4) Generate changelog section in specified format
24
+ 5) Show diff and ask for confirmation
25
+ 6) Update CHANGELOG.md if approved
26
+ 7) Optionally commit the changes
21
27
 
22
28
  CHANGELOG FORMAT
23
29
 
@@ -254,7 +260,7 @@ jobs:
254
260
  fetch-depth: 0 # Get all tags
255
261
 
256
262
  - name: Generate changelog
257
- run: npx claude-code /AgileFlow:generate-changelog VERSION=${{ github.event.inputs.version }}
263
+ run: npx claude-code /agileflow:generate-changelog VERSION=${{ github.event.inputs.version }}
258
264
 
259
265
  - name: Commit changelog
260
266
  run: |
@@ -6,6 +6,24 @@ description: Compress status.json by removing verbose fields and keeping only tr
6
6
 
7
7
  Reduce status.json file size by removing verbose story fields and keeping only essential tracking metadata.
8
8
 
9
+ ## Prompt
10
+
11
+ ROLE: Status Compressor
12
+
13
+ INPUTS
14
+ (no arguments - operates on docs/09-agents/status.json)
15
+
16
+ ACTIONS
17
+ 1) Validate status.json exists and is valid JSON
18
+ 2) Show before stats (size, lines, story count)
19
+ 3) Create backup (status.json.backup)
20
+ 4) Remove verbose fields (description, AC, architectureContext, etc.)
21
+ 5) Keep only tracking fields (story_id, status, owner, timestamps)
22
+ 6) Write compressed file
23
+ 7) Show after stats and savings
24
+
25
+ ---
26
+
9
27
  ## Purpose
10
28
 
11
29
  **Problem**: status.json exceeds 25000 tokens, causing agents to fail with "file content exceeds maximum allowed tokens"
@@ -44,7 +62,7 @@ Only essential tracking metadata remains:
44
62
 
45
63
  ## Workflow
46
64
 
47
- When user runs `/AgileFlow:compress`:
65
+ When user runs `/agileflow:compress`:
48
66
 
49
67
  1. **Validate Environment**:
50
68
  - Check if `docs/09-agents/status.json` exists
@@ -109,8 +127,8 @@ When user runs `/AgileFlow:compress`:
109
127
  - After major epic completion (many stories with verbose records)
110
128
 
111
129
  **Combine with archival**:
112
- 1. First run archival to move old completed stories: `/AgileFlow:compress` → runs `bash scripts/archive-completed-stories.sh`
113
- 2. If still too large, run compression: `/AgileFlow:compress` → runs `bash scripts/compress-status.sh`
130
+ 1. First run archival to move old completed stories: `/agileflow:compress` → runs `bash scripts/archive-completed-stories.sh`
131
+ 2. If still too large, run compression: `/agileflow:compress` → runs `bash scripts/compress-status.sh`
114
132
  3. Result: status.json under 25000 tokens
115
133
 
116
134
  ## Safety
@@ -136,8 +154,8 @@ bash scripts/compress-status.sh
136
154
 
137
155
  ## Related Commands
138
156
 
139
- - `/AgileFlow:status` - View current story statuses
140
- - `/AgileFlow:validate` - Validate AgileFlow system health
157
+ - `/agileflow:status` - View current story statuses
158
+ - `/agileflow:validate` - Validate AgileFlow system health
141
159
 
142
160
  ## Example Output
143
161