agileflow 2.34.0 → 2.36.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 (200) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +536 -0
  3. package/package.json +1 -1
  4. package/src/core/agents/accessibility.md +39 -9
  5. package/src/core/agents/adr-writer.md +36 -22
  6. package/src/core/agents/analytics.md +40 -9
  7. package/src/core/agents/api.md +48 -51
  8. package/src/core/agents/ci.md +47 -48
  9. package/src/core/agents/compliance.md +39 -9
  10. package/src/core/agents/configuration/archival.md +301 -0
  11. package/src/core/agents/configuration/attribution.md +318 -0
  12. package/src/core/agents/configuration/ci.md +1077 -0
  13. package/src/core/agents/configuration/git-config.md +511 -0
  14. package/src/core/agents/configuration/hooks.md +507 -0
  15. package/src/core/agents/configuration/verify.md +540 -0
  16. package/src/core/agents/database.md +39 -9
  17. package/src/core/agents/datamigration.md +39 -9
  18. package/src/core/agents/design.md +39 -9
  19. package/src/core/agents/devops.md +46 -43
  20. package/src/core/agents/documentation.md +35 -6
  21. package/src/core/agents/epic-planner.md +37 -26
  22. package/src/core/agents/integrations.md +40 -9
  23. package/src/core/agents/mentor.md +42 -28
  24. package/src/core/agents/mobile.md +40 -9
  25. package/src/core/agents/monitoring.md +40 -9
  26. package/src/core/agents/multi-expert.md +172 -0
  27. package/src/core/agents/performance.md +39 -9
  28. package/src/core/agents/product.md +35 -5
  29. package/src/core/agents/qa.md +39 -9
  30. package/src/core/agents/readme-updater.md +36 -6
  31. package/src/core/agents/refactor.md +39 -9
  32. package/src/core/agents/research.md +35 -12
  33. package/src/core/agents/security.md +39 -13
  34. package/src/core/agents/testing.md +40 -9
  35. package/src/core/agents/ui.md +47 -50
  36. package/src/core/commands/adr.md +5 -1
  37. package/src/core/commands/agent.md +4 -1
  38. package/src/core/commands/assign.md +1 -1
  39. package/src/core/commands/auto.md +1 -2
  40. package/src/core/commands/babysit.md +283 -32
  41. package/src/core/commands/baseline.md +10 -3
  42. package/src/core/commands/blockers.md +2 -1
  43. package/src/core/commands/board.md +9 -1
  44. package/src/core/commands/changelog.md +0 -1
  45. package/src/core/commands/ci.md +0 -1
  46. package/src/core/commands/configure.md +414 -0
  47. package/src/core/commands/context.md +1 -1
  48. package/src/core/commands/debt.md +0 -1
  49. package/src/core/commands/deploy.md +0 -1
  50. package/src/core/commands/deps.md +2 -1
  51. package/src/core/commands/diagnose.md +0 -42
  52. package/src/core/commands/docs.md +0 -1
  53. package/src/core/commands/epic.md +8 -1
  54. package/src/core/commands/feedback.md +0 -1
  55. package/src/core/commands/handoff.md +4 -1
  56. package/src/core/commands/help.md +0 -1
  57. package/src/core/commands/impact.md +1 -2
  58. package/src/core/commands/metrics.md +10 -1
  59. package/src/core/commands/multi-expert.md +285 -0
  60. package/src/core/commands/packages.md +0 -1
  61. package/src/core/commands/pr.md +0 -1
  62. package/src/core/commands/readme-sync.md +0 -1
  63. package/src/core/commands/research.md +3 -1
  64. package/src/core/commands/retro.md +11 -2
  65. package/src/core/commands/review.md +0 -1
  66. package/src/core/commands/session/end.md +316 -0
  67. package/src/core/commands/session/history.md +273 -0
  68. package/src/core/commands/{session-init.md → session/init.md} +14 -93
  69. package/src/core/commands/{resume.md → session/resume.md} +16 -32
  70. package/src/core/commands/session/status.md +250 -0
  71. package/src/core/commands/sprint.md +2 -2
  72. package/src/core/commands/status.md +1 -1
  73. package/src/core/commands/story-validate.md +1 -2
  74. package/src/core/commands/story.md +29 -3
  75. package/src/core/commands/template.md +8 -1
  76. package/src/core/commands/tests.md +0 -1
  77. package/src/core/commands/update.md +1 -2
  78. package/src/core/commands/validate-expertise.md +123 -0
  79. package/src/core/commands/velocity.md +9 -1
  80. package/src/core/commands/verify.md +9 -3
  81. package/src/core/experts/README.md +236 -0
  82. package/src/core/experts/accessibility/expertise.yaml +77 -0
  83. package/src/core/experts/accessibility/question.md +41 -0
  84. package/src/core/experts/accessibility/self-improve.md +45 -0
  85. package/src/core/experts/accessibility/workflow.md +59 -0
  86. package/src/core/experts/adr-writer/expertise.yaml +91 -0
  87. package/src/core/experts/adr-writer/question.md +56 -0
  88. package/src/core/experts/adr-writer/self-improve.md +106 -0
  89. package/src/core/experts/adr-writer/workflow.md +184 -0
  90. package/src/core/experts/analytics/expertise.yaml +167 -0
  91. package/src/core/experts/analytics/question.md +74 -0
  92. package/src/core/experts/analytics/self-improve.md +163 -0
  93. package/src/core/experts/analytics/workflow.md +272 -0
  94. package/src/core/experts/api/expertise.yaml +118 -0
  95. package/src/core/experts/api/question.md +74 -0
  96. package/src/core/experts/api/self-improve.md +122 -0
  97. package/src/core/experts/api/workflow.md +248 -0
  98. package/src/core/experts/ci/expertise.yaml +69 -0
  99. package/src/core/experts/ci/question.md +69 -0
  100. package/src/core/experts/ci/self-improve.md +100 -0
  101. package/src/core/experts/ci/workflow.md +145 -0
  102. package/src/core/experts/compliance/expertise.yaml +136 -0
  103. package/src/core/experts/compliance/question.md +56 -0
  104. package/src/core/experts/compliance/self-improve.md +106 -0
  105. package/src/core/experts/compliance/workflow.md +184 -0
  106. package/src/core/experts/database/expertise.yaml +99 -0
  107. package/src/core/experts/database/question.md +74 -0
  108. package/src/core/experts/database/self-improve.md +121 -0
  109. package/src/core/experts/database/workflow.md +234 -0
  110. package/src/core/experts/datamigration/expertise.yaml +107 -0
  111. package/src/core/experts/datamigration/question.md +56 -0
  112. package/src/core/experts/datamigration/self-improve.md +106 -0
  113. package/src/core/experts/datamigration/workflow.md +184 -0
  114. package/src/core/experts/design/expertise.yaml +97 -0
  115. package/src/core/experts/design/question.md +56 -0
  116. package/src/core/experts/design/self-improve.md +106 -0
  117. package/src/core/experts/design/workflow.md +184 -0
  118. package/src/core/experts/devops/expertise.yaml +76 -0
  119. package/src/core/experts/devops/question.md +68 -0
  120. package/src/core/experts/devops/self-improve.md +102 -0
  121. package/src/core/experts/devops/workflow.md +142 -0
  122. package/src/core/experts/documentation/expertise.yaml +61 -0
  123. package/src/core/experts/documentation/question.md +41 -0
  124. package/src/core/experts/documentation/self-improve.md +45 -0
  125. package/src/core/experts/documentation/workflow.md +55 -0
  126. package/src/core/experts/epic-planner/expertise.yaml +106 -0
  127. package/src/core/experts/epic-planner/question.md +56 -0
  128. package/src/core/experts/epic-planner/self-improve.md +106 -0
  129. package/src/core/experts/epic-planner/workflow.md +184 -0
  130. package/src/core/experts/integrations/expertise.yaml +143 -0
  131. package/src/core/experts/integrations/question.md +74 -0
  132. package/src/core/experts/integrations/self-improve.md +151 -0
  133. package/src/core/experts/integrations/workflow.md +246 -0
  134. package/src/core/experts/mentor/expertise.yaml +106 -0
  135. package/src/core/experts/mentor/question.md +56 -0
  136. package/src/core/experts/mentor/self-improve.md +106 -0
  137. package/src/core/experts/mentor/workflow.md +184 -0
  138. package/src/core/experts/mobile/expertise.yaml +122 -0
  139. package/src/core/experts/mobile/question.md +72 -0
  140. package/src/core/experts/mobile/self-improve.md +140 -0
  141. package/src/core/experts/mobile/workflow.md +240 -0
  142. package/src/core/experts/monitoring/expertise.yaml +143 -0
  143. package/src/core/experts/monitoring/question.md +76 -0
  144. package/src/core/experts/monitoring/self-improve.md +150 -0
  145. package/src/core/experts/monitoring/workflow.md +264 -0
  146. package/src/core/experts/performance/expertise.yaml +69 -0
  147. package/src/core/experts/performance/question.md +41 -0
  148. package/src/core/experts/performance/self-improve.md +45 -0
  149. package/src/core/experts/performance/workflow.md +61 -0
  150. package/src/core/experts/product/expertise.yaml +85 -0
  151. package/src/core/experts/product/question.md +56 -0
  152. package/src/core/experts/product/self-improve.md +106 -0
  153. package/src/core/experts/product/workflow.md +184 -0
  154. package/src/core/experts/qa/expertise.yaml +91 -0
  155. package/src/core/experts/qa/question.md +56 -0
  156. package/src/core/experts/qa/self-improve.md +106 -0
  157. package/src/core/experts/qa/workflow.md +184 -0
  158. package/src/core/experts/readme-updater/expertise.yaml +94 -0
  159. package/src/core/experts/readme-updater/question.md +56 -0
  160. package/src/core/experts/readme-updater/self-improve.md +106 -0
  161. package/src/core/experts/readme-updater/workflow.md +184 -0
  162. package/src/core/experts/refactor/expertise.yaml +59 -0
  163. package/src/core/experts/refactor/question.md +41 -0
  164. package/src/core/experts/refactor/self-improve.md +45 -0
  165. package/src/core/experts/refactor/workflow.md +57 -0
  166. package/src/core/experts/research/expertise.yaml +100 -0
  167. package/src/core/experts/research/question.md +56 -0
  168. package/src/core/experts/research/self-improve.md +106 -0
  169. package/src/core/experts/research/workflow.md +184 -0
  170. package/src/core/experts/security/expertise.yaml +79 -0
  171. package/src/core/experts/security/question.md +77 -0
  172. package/src/core/experts/security/self-improve.md +102 -0
  173. package/src/core/experts/security/workflow.md +152 -0
  174. package/src/core/experts/templates/expertise-template.yaml +67 -0
  175. package/src/core/experts/templates/question-template.md +56 -0
  176. package/src/core/experts/templates/self-improve-template.md +106 -0
  177. package/src/core/experts/templates/workflow-template.md +184 -0
  178. package/src/core/experts/testing/expertise.yaml +67 -0
  179. package/src/core/experts/testing/question.md +68 -0
  180. package/src/core/experts/testing/self-improve.md +102 -0
  181. package/src/core/experts/testing/workflow.md +143 -0
  182. package/src/core/experts/ui/expertise.yaml +122 -0
  183. package/src/core/experts/ui/question.md +74 -0
  184. package/src/core/experts/ui/self-improve.md +122 -0
  185. package/src/core/experts/ui/workflow.md +262 -0
  186. package/src/core/templates/resume-session.sh +2 -2
  187. package/src/core/templates/validate-tokens.sh +0 -15
  188. package/src/core/templates/worktrees-guide.md +0 -4
  189. package/tools/agileflow-npx.js +21 -9
  190. package/tools/cli/commands/doctor.js +122 -0
  191. package/tools/cli/commands/setup.js +4 -1
  192. package/tools/cli/commands/update.js +19 -5
  193. package/tools/cli/installers/core/installer.js +356 -38
  194. package/tools/cli/installers/ide/claude-code.js +1 -1
  195. package/tools/cli/installers/ide/cursor.js +1 -1
  196. package/tools/cli/installers/ide/windsurf.js +1 -1
  197. package/tools/cli/lib/docs-setup.js +52 -28
  198. package/tools/cli/lib/ui.js +9 -2
  199. package/src/core/agents/context7.md +0 -164
  200. package/src/core/commands/setup.md +0 -708
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 AgileFlow Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,536 @@
1
+ <p align="center">
2
+ <img src="assets/banner.png" alt="AgileFlow" />
3
+ </p>
4
+
5
+ [![npm version](https://img.shields.io/npm/v/agileflow?color=brightgreen)](https://www.npmjs.com/package/agileflow)
6
+ [![Commands](https://img.shields.io/badge/commands-41-blue)](#commands)
7
+ [![Subagents](https://img.shields.io/badge/subagents-26-orange)](SUBAGENTS.md)
8
+ [![Skills](https://img.shields.io/badge/skills-23-purple)](#skills)
9
+
10
+ **AI-driven agile development for Claude Code, Cursor, Windsurf, and more.** Combining Scrum, Kanban, ADRs, and docs-as-code principles into one framework-agnostic system.
11
+
12
+ ## Quick Start
13
+
14
+ ### Installation
15
+
16
+ #### Option 1: Global Installation (Recommended)
17
+
18
+ ```bash
19
+ npm install -g agileflow
20
+ agileflow setup
21
+ ```
22
+
23
+ #### Option 2: Project-Level Installation
24
+
25
+ ```bash
26
+ npm install agileflow
27
+ npx agileflow setup
28
+ ```
29
+
30
+ This will:
31
+ 1. Prompt where to install AgileFlow
32
+ 2. Prompt to select your IDE(s)
33
+ 3. Install AgileFlow core (commands, agents, skills)
34
+ 4. Configure your selected IDEs
35
+ 5. Create documentation structure
36
+
37
+ ### CLI Commands
38
+
39
+ **Global installation:**
40
+ ```bash
41
+ agileflow setup # Set up AgileFlow in project
42
+ agileflow status # Check installation + updates
43
+ agileflow update # Update to latest version
44
+ agileflow doctor # Diagnose issues
45
+ agileflow uninstall # Remove from project
46
+ ```
47
+
48
+ **Project-level installation (use `npx`):**
49
+ ```bash
50
+ npx agileflow setup # Set up AgileFlow in project
51
+ npx agileflow status # Check installation + updates
52
+ npx agileflow update # Update to latest version
53
+ npx agileflow doctor # Diagnose issues
54
+ npx agileflow uninstall # Remove from project
55
+ ```
56
+
57
+ ### After Setup
58
+
59
+ **Initialize the system:**
60
+ ```
61
+ /AgileFlow:setup
62
+ ```
63
+ Scaffolds docs structure, templates, and optional CI configuration.
64
+
65
+ **Get help:**
66
+ ```
67
+ /AgileFlow:help
68
+ ```
69
+ View system overview and available commands.
70
+
71
+ **Use the mentor (recommended):**
72
+ ```
73
+ Use the mentor subagent to guide me through implementing <feature>
74
+ ```
75
+ Interactive mentor guides you through epic/story creation, implementation, and PR preparation.
76
+
77
+ ### Supported IDEs
78
+
79
+ | IDE | Status | Config Location |
80
+ |-----|--------|-----------------|
81
+ | Claude Code | ✅ Supported | `.claude/commands/AgileFlow/` |
82
+ | Cursor | ✅ Supported | `.cursor/rules/agileflow/` |
83
+ | Windsurf | ✅ Supported | `.windsurf/workflows/agileflow/` |
84
+
85
+ ## Why AgileFlow?
86
+
87
+ AgileFlow combines three proven methodologies:
88
+
89
+ - **Agile (Scrum/Kanban)** - Break work into Epics → Stories → Acceptance Criteria with WIP limits
90
+ - **ADRs** - Record architectural decisions so future teams don't re-debate
91
+ - **Docs-as-Code** - Humans and AI agents coordinate via versioned files (traceable, reviewable, automatable)
92
+
93
+ **Key Benefits:**
94
+ - Clear priorities and testable increments
95
+ - Durable memory and decision history
96
+ - Effortless multi-agent collaboration via message bus
97
+ - Works with any tech stack or framework
98
+
99
+ <details>
100
+ <summary><strong>📁 Folder Structure</strong> (click to expand)</summary>
101
+
102
+ After running `/AgileFlow:setup`:
103
+
104
+ ```
105
+ docs/
106
+ 00-meta/ # Templates, glossary, conventions
107
+ 01-brainstorming/ # Ideas and sketches
108
+ 02-practices/ # Testing, git, CI, security practices
109
+ prompts/agents/ # Agent profiles and contracts
110
+ 03-decisions/ # ADRs (Architecture Decision Records)
111
+ 04-architecture/ # Architecture documentation
112
+ 05-epics/ # Epic definitions
113
+ 06-stories/ # User stories (grouped by epic)
114
+ 07-testing/ # Test cases and acceptance criteria
115
+ 08-project/ # Roadmap, backlog, milestones, risks
116
+ 09-agents/ # Agent status and message bus
117
+ bus/log.jsonl # Agent communication log
118
+ status.json # Current story statuses
119
+ 10-research/ # Saved research notes
120
+ context.md # One-page context brief for web AI tools
121
+ ```
122
+
123
+ </details>
124
+
125
+ <details>
126
+ <summary><strong>📚 Commands</strong> (41 total - click to expand)</summary>
127
+
128
+ ### Core Workflow
129
+ - `/AgileFlow:setup` - Bootstrap the entire system
130
+ - `/AgileFlow:help` - Display system overview
131
+ - `/AgileFlow:babysit` - Interactive mentor for end-to-end implementation
132
+
133
+ ### Planning & Structure
134
+ - `/AgileFlow:epic` - Create a new epic
135
+ - `/AgileFlow:story` - Create a user story with acceptance criteria
136
+ - `/AgileFlow:story-validate` - Validate story completeness before development
137
+ - `/AgileFlow:sprint` - Data-driven sprint planning with velocity forecasting
138
+ - `/AgileFlow:adr` - Create an Architecture Decision Record
139
+ - `/AgileFlow:agent` - Onboard a new agent
140
+
141
+ ### Task Management
142
+ - `/AgileFlow:assign` - Assign/reassign a story
143
+ - `/AgileFlow:status` - Update story status
144
+ - `/AgileFlow:handoff` - Document handoff between agents
145
+
146
+ ### Quality & CI
147
+ - `/AgileFlow:pr` - Generate PR description
148
+ - `/AgileFlow:ci` - Bootstrap CI workflow
149
+ - `/AgileFlow:readme-sync` - Sync folder READMEs
150
+ - `/AgileFlow:tests` - Automated testing infrastructure setup
151
+ - `/AgileFlow:review` - AI-powered code review
152
+ - `/AgileFlow:verify` - Run tests and update story test status (Session Harness)
153
+ - `/AgileFlow:session-init` - Initialize session harness with test verification (Phase 2)
154
+ - `/AgileFlow:resume` - Resume session with environment verification and context (Phase 2)
155
+ - `/AgileFlow:baseline` - Mark current state as verified baseline (Phase 2)
156
+ - `/AgileFlow:compress` - Compress status.json (fixes token limit issues)
157
+
158
+ ### Automation & DevOps
159
+ - `/AgileFlow:packages` - Manage dependencies (dashboard, updates, security audits)
160
+ - `/AgileFlow:docs` - Synchronize docs with code changes
161
+ - `/AgileFlow:impact` - Analyze change impact on codebase
162
+ - `/AgileFlow:debt` - Track and prioritize technical debt
163
+ - `/AgileFlow:deploy` - Automated deployment pipeline setup
164
+ - `/AgileFlow:changelog` - Auto-generate changelog from commits
165
+ - `/AgileFlow:auto` - Generate stories from PRDs/mockups/specs
166
+ - `/AgileFlow:template` - Create and manage custom templates
167
+ - `/AgileFlow:feedback` - Collect feedback for continuous improvement
168
+ - `/AgileFlow:update` - Generate stakeholder reports
169
+
170
+ ### Visualization & Analytics
171
+ - `/AgileFlow:board` - Visual kanban board with WIP limits
172
+ - `/AgileFlow:blockers` - Comprehensive blocker tracking with resolution suggestions
173
+ - `/AgileFlow:velocity` - Velocity tracking and forecasting
174
+ - `/AgileFlow:metrics` - Analytics dashboard (cycle time, lead time, throughput, flow efficiency)
175
+ - `/AgileFlow:retro` - Automated retrospective generator with insights
176
+ - `/AgileFlow:deps` - Dependency graph visualization with critical path detection
177
+
178
+ ### Web AI Integration
179
+ - `/AgileFlow:context` - Generate/export/manage context for web AI tools (ChatGPT, Perplexity, Gemini, Claude, etc.)
180
+ - `/AgileFlow:research` - Save research notes
181
+
182
+ </details>
183
+
184
+ <details>
185
+ <summary><strong>🤖 Subagents</strong> (26 specialized agents - click to expand)</summary>
186
+
187
+ AgileFlow includes **26 specialized subagents** that operate in separate context windows for focused work. See [SUBAGENTS.md](SUBAGENTS.md) for complete documentation.
188
+
189
+ ### Core Implementation Agents
190
+
191
+ **`ui`** - UI/Presentation Layer Specialist
192
+ - Front-end components, styling, theming, accessibility (WCAG 2.1 AA)
193
+ - Invocation: "Use the ui subagent to implement this UI feature"
194
+
195
+ **`api`** - Services/Data Layer Specialist
196
+ - Backend APIs, business logic, data models, API tests
197
+ - Invocation: "Use the api subagent to implement this API endpoint"
198
+
199
+ **`ci`** - CI/CD & Quality Specialist
200
+ - CI/CD pipelines, linting, type checking, test coverage
201
+ - Invocation: "Use the ci subagent to set up the test pipeline"
202
+
203
+ ### Orchestration & Planning Agents
204
+
205
+ **`mentor`** - End-to-End Implementation Mentor
206
+ - Guides feature implementation from idea to PR
207
+ - Invocation: "Use the mentor subagent to guide me through this feature"
208
+
209
+ **`epic-planner`** - Epic & Story Planning Specialist
210
+ - Breaks down features into epics and stories with acceptance criteria
211
+ - Invocation: "Use the epic-planner subagent to plan this feature"
212
+
213
+ **`adr-writer`** - Architecture Decision Record Specialist
214
+ - Documents technical decisions, trade-offs, alternatives
215
+ - Invocation: "Use the adr-writer subagent to document this decision"
216
+
217
+ **`research`** - Research & Knowledge Management Specialist
218
+ - Conducts technical research, builds research prompts, saves notes
219
+ - Invocation: "Use the research subagent to research authentication approaches"
220
+
221
+ ### Additional Specialized Agents
222
+ - `devops` - DevOps & Automation
223
+ - `security` - Security & Compliance
224
+ - `database` - Database & Data Layer
225
+ - `testing` - Testing & QA Automation
226
+ - `product` - Product Management & Prioritization
227
+ - `performance` - Performance Optimization
228
+ - `mobile` - Mobile Development
229
+ - `integrations` - Third-Party Integrations
230
+ - `refactor` - Code Refactoring & Technical Debt
231
+ - `design` - Design Systems & UI/UX
232
+ - `accessibility` - Accessibility Compliance (WCAG)
233
+ - `analytics` - Analytics & Metrics Implementation
234
+ - `datamigration` - Data Migration & ETL
235
+ - `qa` - Quality Assurance & Test Planning
236
+ - And more...
237
+
238
+ **When to Use Subagents:**
239
+ - Complex, multi-step implementation work
240
+ - Specialized tasks requiring focused expertise
241
+ - Work benefiting from separate context
242
+ - Tasks needing to run commands or write code
243
+
244
+ **When to Use Commands:**
245
+ - Quick, single-purpose actions
246
+ - Status updates and assignments
247
+ - Generating templates or prompts
248
+ - Simple file operations
249
+
250
+ </details>
251
+
252
+ <details>
253
+ <summary><strong>🎯 Skills</strong> (23 auto-loaded skills - click to expand)</summary>
254
+
255
+ Skills are **context-aware helpers** that activate automatically based on keywords (no manual invocation needed).
256
+
257
+ ### How Skills Work
258
+ - **Activation:** Automatic (keyword-based detection)
259
+ - **Context:** Main conversation
260
+ - **Purpose:** Quick enhancements and formatting
261
+ - **Structure:** Follow Anthropic's minimal specification (v2.21.0+)
262
+
263
+ ### Skills by Category
264
+
265
+ #### AgileFlow Skills (8 skills)
266
+ Auto-formatted outputs following AgileFlow templates:
267
+ - `agileflow-story-writer` - Converts discussions to user stories
268
+ - `agileflow-acceptance-criteria` - Generates Given/When/Then AC
269
+ - `epic-planner` - Breaks features into epics/stories
270
+ - `agileflow-sprint-planner` - Plans sprints with velocity
271
+ - `agileflow-retro-facilitator` - Structures retrospectives
272
+ - `agileflow-adr` - Captures architectural decisions
273
+ - `agileflow-commit-messages` - Formats Conventional Commits
274
+ - `agileflow-tech-debt` - Tracks technical debt
275
+
276
+ #### Template Generators (15 skills)
277
+ Generate code templates and documentation:
278
+ - `story-skeleton` - Story template scaffolding
279
+ - `acceptance-criteria-generator` - AC formatting
280
+ - `commit-message-formatter` - Git commit messages
281
+ - `adr-template` - Architecture decision records
282
+ - `api-documentation-generator` - OpenAPI/Swagger docs
283
+ - `changelog-entry` - Keep a Changelog format
284
+ - `pr-description` - Pull request descriptions
285
+ - `test-case-generator` - Test cases from AC
286
+ - `type-definitions` - TypeScript interfaces
287
+ - `sql-schema-generator` - SQL schemas with migrations
288
+ - `error-handler-template` - Error handling patterns
289
+ - `diagram-generator` - Mermaid/ASCII diagrams
290
+ - `validation-schema-generator` - Joi/Zod/Yup schemas
291
+ - `deployment-guide-generator` - Deployment runbooks
292
+ - `migration-checklist` - Data migration checklists
293
+
294
+ ### Example Activation
295
+ ```
296
+ User: "I need to create a user story for login functionality"
297
+ [agileflow-story-writer skill activates automatically]
298
+ Claude: Generates formatted story with AC, owner, priority, estimate
299
+ ```
300
+
301
+ </details>
302
+
303
+ <details>
304
+ <summary><strong>🎯 Hooks System</strong> (event-driven automation - click to expand)</summary>
305
+
306
+ AgileFlow supports **event-driven automation** through Claude Code's official hooks system.
307
+
308
+ ### What Are Hooks?
309
+
310
+ Hooks are automatic triggers that execute commands in response to events:
311
+ - **SessionStart** - Runs when Claude Code session starts
312
+ - **UserPromptSubmit** - Runs after you submit a prompt
313
+ - **Stop** - Runs when Claude stops responding
314
+
315
+ ### Quick Setup
316
+
317
+ 1. **Create .claude directory:**
318
+ ```bash
319
+ mkdir -p .claude
320
+ ```
321
+
322
+ 2. **Copy template:**
323
+ ```bash
324
+ cp templates/claude-settings.example.json .claude/settings.json
325
+ ```
326
+
327
+ 3. **Customize hooks** (edit `.claude/settings.json`):
328
+ ```json
329
+ {
330
+ "hooks": {
331
+ "SessionStart": [{
332
+ "hooks": [{
333
+ "type": "command",
334
+ "command": "echo '🚀 AgileFlow loaded - Type /AgileFlow:help'"
335
+ }]
336
+ }]
337
+ }
338
+ }
339
+ ```
340
+
341
+ 4. **Restart Claude Code**
342
+
343
+ ### Example Use Cases
344
+
345
+ **Welcome message:**
346
+ ```json
347
+ {
348
+ "SessionStart": [{
349
+ "hooks": [{
350
+ "type": "command",
351
+ "command": "echo '👋 Welcome! Current sprint: $(cat docs/08-project/current-sprint.txt)'"
352
+ }]
353
+ }]
354
+ }
355
+ ```
356
+
357
+ **Activity logging:**
358
+ ```json
359
+ {
360
+ "UserPromptSubmit": [{
361
+ "hooks": [{
362
+ "type": "command",
363
+ "command": "echo '[LOG] Prompt at $(date)' >> .claude/activity.log"
364
+ }]
365
+ }]
366
+ }
367
+ ```
368
+
369
+ ### Configuration Files
370
+ - `.claude/settings.json` - Project-level config (committed to git)
371
+ - `.claude/settings.local.json` - User-specific overrides (gitignored)
372
+
373
+ </details>
374
+
375
+ <details>
376
+ <summary><strong>🔧 Advanced Topics</strong> (click to expand)</summary>
377
+
378
+ ### Daily Workflow
379
+
380
+ 1. **Pick a story** - Use `mentor` or check `docs/09-agents/status.json`
381
+ 2. **Implement to AC** - Follow acceptance criteria
382
+ 3. **Write tests** - Reference `docs/07-testing/test-cases/<STORY_ID>.md`
383
+ 4. **Update status** - Use `/AgileFlow:status`
384
+ 5. **Create PR** - Use `/AgileFlow:pr`
385
+ 6. **Mark done** - Update status after merge
386
+
387
+ ### Multi-Agent Collaboration
388
+
389
+ AgileFlow uses a message bus (`docs/09-agents/bus/log.jsonl`) for coordination:
390
+ - Agents update `docs/09-agents/status.json` with current work
391
+ - Messages logged to bus for async communication
392
+ - Use `/AgileFlow:handoff` to transfer work between agents
393
+ - WIP limit: max 2 stories per agent
394
+
395
+ ### Git Worktrees for Context Preservation
396
+
397
+ For advanced users handling urgent hotfixes during feature work:
398
+
399
+ **Benefits:**
400
+ - Preserve AI context when switching tasks
401
+ - Handle production bugs without losing feature flow
402
+ - Compare implementations side-by-side
403
+ - Test risky refactors in isolation
404
+
405
+ **Quick Start:**
406
+ ```bash
407
+ # Use helper script (created by /AgileFlow:setup)
408
+ ./docs/00-meta/scripts/worktree-create.sh auth-hotfix
409
+
410
+ # Open in new window
411
+ code ../myapp-auth-hotfix
412
+ /AgileFlow:babysit
413
+ ```
414
+
415
+ See `docs/00-meta/guides/worktrees.md` for comprehensive guide.
416
+
417
+ ### Web AI Integration
418
+
419
+ Share context with web AI tools (ChatGPT, Perplexity, Gemini, Claude, etc.):
420
+
421
+ 1. Run `/AgileFlow:context` to generate/refresh context
422
+ 2. Use `/AgileFlow:context MODE=export` for concise excerpt
423
+ 3. Paste into web AI tool for research/ideation
424
+ 4. Use `/AgileFlow:context MODE=research TOPIC="..."` for structured prompts
425
+ 5. Save results with `/AgileFlow:research`
426
+
427
+ ### Session Harness System (v2.24.0+)
428
+
429
+ Ensures test verification and session continuity for long-running projects. Prevents agents from breaking functionality and maintains progress across context windows.
430
+
431
+ **The Problem:**
432
+ Without verification, agents can:
433
+ - Break existing functionality without noticing
434
+ - Claim features work when tests fail
435
+ - Lose context between sessions
436
+ - Mark incomplete work as finished
437
+
438
+ **The Solution:**
439
+ Session Harness System tracks test status, verifies baselines, and maintains session state.
440
+
441
+ **Quick Start:**
442
+ ```bash
443
+ # First time setup (interactive)
444
+ /AgileFlow:session-init
445
+
446
+ # Start each session (or auto-run via hook)
447
+ /AgileFlow:resume
448
+
449
+ # Run tests and update test status
450
+ /AgileFlow:verify
451
+
452
+ # Create verified checkpoint
453
+ /AgileFlow:baseline "Sprint 12 complete"
454
+ ```
455
+
456
+ **How It Works:**
457
+ 1. **Test Tracking**: Every story has `test_status` field (passing/failing/not_run)
458
+ 2. **Pre-Implementation**: Agents check test_status before starting work
459
+ 3. **Post-Implementation**: Agents run `/AgileFlow:verify` before marking complete
460
+ 4. **Session Resume**: Loads context and detects regressions
461
+ 5. **Baselines**: Git tags mark known-good states for reset points
462
+
463
+ **Benefits:**
464
+ - **No Broken Baselines**: Agents can't mark stories complete with failing tests
465
+ - **Fail Fast**: Catch regressions immediately, not at PR review
466
+ - **Context Continuity**: Structured handoff between sessions
467
+ - **Regression Detection**: Alerts when tests were passing, now failing
468
+
469
+ **Agent Integration (v2.26.0):**
470
+ All 18 dev agents now include verification protocol:
471
+ - ui, api, ci, devops
472
+ - security, database, testing
473
+ - performance, mobile, integrations
474
+ - refactor, design, accessibility
475
+ - analytics, datamigration, monitoring
476
+ - compliance, qa
477
+
478
+ **Learn More:** See CLAUDE.md "Session Harness System" section for complete documentation.
479
+
480
+ ### Status.json Compression
481
+
482
+ Prevent "file too large" errors:
483
+
484
+ ```bash
485
+ # Compress status.json (removes verbose fields)
486
+ /AgileFlow:compress
487
+
488
+ # Typical result: 80-90% size reduction
489
+ ```
490
+
491
+ Full story content remains in `docs/06-stories/` markdown files (no data loss).
492
+
493
+ </details>
494
+
495
+ ## Examples
496
+
497
+ ### Creating an Epic with Stories
498
+ ```
499
+ /AgileFlow:epic EPIC=EP-0001 TITLE="User Authentication" OWNER=AG-API GOAL="Secure user login and registration" STORIES="US-0001|Login form|AG-UI,US-0002|Auth API|AG-API"
500
+ ```
501
+
502
+ ### Working on a Story
503
+ ```
504
+ /AgileFlow:assign STORY=US-0001 NEW_OWNER=AG-UI NEW_STATUS=in-progress NOTE="Starting implementation"
505
+ # ... do the work ...
506
+ /AgileFlow:status STORY=US-0001 STATUS=in-review SUMMARY="Login form complete with tests" PR=https://github.com/...
507
+ ```
508
+
509
+ ### Recording a Decision
510
+ ```
511
+ /AgileFlow:adr NUMBER=0001 TITLE="Use JWT for authentication" CONTEXT="Need stateless auth for API" DECISION="JWT with 15min access + refresh tokens" CONSEQUENCES="Simpler scaling but requires token refresh flow"
512
+ ```
513
+
514
+ ## Templates
515
+
516
+ All templates are located in `templates/` and `docs/00-meta/templates/`:
517
+
518
+ - `epic-template.md` - Epic structure
519
+ - `story-template.md` - User story format
520
+ - `adr-template.md` - Architecture decision record
521
+ - `agent-profile-template.md` - Agent profile and contract
522
+ - `comms-note-template.md` - Handoff documentation
523
+ - `research-template.md` - Research note structure
524
+ - `README-template.md` - Folder README template
525
+
526
+ ## Contributing
527
+
528
+ This plugin is designed to be framework-agnostic. Customize templates and commands to fit your team's workflow.
529
+
530
+ ## License
531
+
532
+ MIT
533
+
534
+ ## Support
535
+
536
+ For issues or questions, please visit the [GitHub repository](https://github.com/projectquestorg/AgileFlow).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "2.34.0",
3
+ "version": "2.36.0",
4
4
  "description": "AI-driven agile development system for Claude Code, Cursor, Windsurf, and more",
5
5
  "keywords": [
6
6
  "agile",
@@ -59,7 +59,7 @@ Before starting work on ANY story:
59
59
  1. **Check Session Harness**:
60
60
  - Look for `docs/00-meta/environment.json`
61
61
  - If exists → Session harness is active ✅
62
- - If missing → Suggest `/AgileFlow:session-init` to user
62
+ - If missing → Suggest `/AgileFlow:session:init` to user
63
63
 
64
64
  2. **Test Baseline Check**:
65
65
  - Read `test_status` from story in `docs/09-agents/status.json`
@@ -69,7 +69,7 @@ Before starting work on ANY story:
69
69
  - If `"skipped"` → Check why tests are skipped, document override decision
70
70
 
71
71
  3. **Environment Verification** (if session harness active):
72
- - Run `/AgileFlow:resume` to verify environment and load context
72
+ - Run `/AgileFlow:session:resume` to verify environment and load context
73
73
  - Check for regressions (tests were passing, now failing)
74
74
  - If regression detected → Fix before proceeding with new story
75
75
 
@@ -154,14 +154,14 @@ If `/AgileFlow:verify` fails:
154
154
  - Read error output carefully
155
155
  - Check if test command is configured in `docs/00-meta/environment.json`
156
156
  - Verify test dependencies are installed
157
- - If project has no tests → Suggest `/AgileFlow:session-init` to set up testing
157
+ - If project has no tests → Suggest `/AgileFlow:session:init` to set up testing
158
158
  - If tests are misconfigured → Coordinate with AG-CI
159
159
 
160
160
  **SESSION RESUME PROTOCOL**
161
161
 
162
162
  When resuming work after context loss:
163
163
 
164
- 1. **Run Resume Command**: `/AgileFlow:resume` loads context automatically
164
+ 1. **Run Resume Command**: `/AgileFlow:session:resume` loads context automatically
165
165
  2. **Check Session State**: Review `docs/09-agents/session-state.json`
166
166
  3. **Verify Test Status**: Ensure no regressions occurred
167
167
  4. **Load Previous Insights**: Check Dev Agent Record from previous stories
@@ -429,12 +429,28 @@ Before approval:
429
429
 
430
430
  FIRST ACTION
431
431
 
432
+ **CRITICAL: Load Expertise First (Agent Expert Protocol)**
433
+
434
+ Before ANY work, read your expertise file:
435
+ ```
436
+ packages/cli/src/core/experts/accessibility/expertise.yaml
437
+ ```
438
+
439
+ This contains your mental model of:
440
+ - Component accessibility requirements
441
+ - WCAG compliance checklist
442
+ - ARIA patterns
443
+ - Recent learnings from past work
444
+
445
+ **Validate expertise against actual code** - expertise is your memory, code is the source of truth.
446
+
432
447
  **Proactive Knowledge Loading**:
433
- 1. Read docs/09-agents/status.json for a11y stories
434
- 2. Check CLAUDE.md for accessibility requirements
435
- 3. Check docs/10-research/ for a11y patterns
436
- 4. Run automated a11y audit tools
437
- 5. Identify critical accessibility gaps
448
+ 1. **READ EXPERTISE FILE FIRST** (packages/cli/src/core/experts/accessibility/expertise.yaml)
449
+ 2. Read docs/09-agents/status.json for a11y stories
450
+ 3. Check CLAUDE.md for accessibility requirements
451
+ 4. Check docs/10-research/ for a11y patterns
452
+ 5. Run automated a11y audit tools
453
+ 6. Identify critical accessibility gaps
438
454
 
439
455
  **Then Output**:
440
456
  1. Accessibility summary: "WCAG AA compliance: [X]%"
@@ -443,3 +459,17 @@ FIRST ACTION
443
459
  4. Suggest stories: "Ready for a11y work: [list]"
444
460
  5. Ask: "Which accessibility issue needs fixing?"
445
461
  6. Explain autonomy: "I'll audit for WCAG compliance, test with assistive tech, remediate issues, ensure inclusive design"
462
+
463
+ **For Complete Features - Use Workflow**:
464
+ For implementing complete accessibility improvements, use the three-step workflow:
465
+ ```
466
+ packages/cli/src/core/experts/accessibility/workflow.md
467
+ ```
468
+ This chains Plan → Build → Self-Improve automatically.
469
+
470
+ **After Completing Work - Self-Improve**:
471
+ After ANY accessibility changes, run self-improve:
472
+ ```
473
+ packages/cli/src/core/experts/accessibility/self-improve.md
474
+ ```
475
+ This updates your expertise with what you learned, so you're faster next time.