claude-code-kit 0.7.0__py3-none-any.whl

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 (209) hide show
  1. claude_code_kit-0.7.0.dist-info/METADATA +384 -0
  2. claude_code_kit-0.7.0.dist-info/RECORD +209 -0
  3. claude_code_kit-0.7.0.dist-info/WHEEL +4 -0
  4. claude_code_kit-0.7.0.dist-info/entry_points.txt +4 -0
  5. claude_code_kit-0.7.0.dist-info/licenses/LICENSE +21 -0
  6. claude_kit/__init__.py +10 -0
  7. claude_kit/__main__.py +8 -0
  8. claude_kit/_payload/agents/acceptance-reviewer.md +60 -0
  9. claude_kit/_payload/agents/auditor.md +76 -0
  10. claude_kit/_payload/agents/dependency-scanner.md +84 -0
  11. claude_kit/_payload/agents/developer.md +187 -0
  12. claude_kit/_payload/agents/devils-advocate.md +62 -0
  13. claude_kit/_payload/agents/devops-engineer.md +134 -0
  14. claude_kit/_payload/agents/e2e-tester.md +152 -0
  15. claude_kit/_payload/agents/em-reviewer.md +105 -0
  16. claude_kit/_payload/agents/incident-responder.md +64 -0
  17. claude_kit/_payload/agents/merge-reviewer.md +194 -0
  18. claude_kit/_payload/agents/observability-engineer.md +94 -0
  19. claude_kit/_payload/agents/orchestrator.md +551 -0
  20. claude_kit/_payload/agents/owasp-reviewer.md +76 -0
  21. claude_kit/_payload/agents/policy-validator.md +63 -0
  22. claude_kit/_payload/agents/pr-raiser.md +138 -0
  23. claude_kit/_payload/agents/risk-classifier.md +50 -0
  24. claude_kit/_payload/agents/sdlc-code-reviewer.md +196 -0
  25. claude_kit/_payload/agents/secret-scanner.md +70 -0
  26. claude_kit/_payload/agents/security-reviewer.md +80 -0
  27. claude_kit/_payload/agents/senior-backend-dev.md +199 -0
  28. claude_kit/_payload/agents/senior-frontend-dev.md +181 -0
  29. claude_kit/_payload/agents/senior-tester.md +206 -0
  30. claude_kit/_payload/agents/spec-doc-writer.md +331 -0
  31. claude_kit/_payload/agents/story-planner.md +56 -0
  32. claude_kit/_payload/agents/technical-architect.md +139 -0
  33. claude_kit/_payload/agents/tester.md +193 -0
  34. claude_kit/_payload/agents/ui-designer.md +73 -0
  35. claude_kit/_payload/agents/unit-tester.md +119 -0
  36. claude_kit/_payload/catalog/mcp.yaml +54 -0
  37. claude_kit/_payload/catalog/org.yaml +145 -0
  38. claude_kit/_payload/catalog/profiles.yaml +96 -0
  39. claude_kit/_payload/catalog/stacks.yaml +96 -0
  40. claude_kit/_payload/commands/init.md +36 -0
  41. claude_kit/_payload/commands/sdlc.md +18 -0
  42. claude_kit/_payload/commands/status.md +20 -0
  43. claude_kit/_payload/hooks/hooks.json +58 -0
  44. claude_kit/_payload/hooks/scripts/audit-log.sh +18 -0
  45. claude_kit/_payload/hooks/scripts/guard-secrets.sh +26 -0
  46. claude_kit/_payload/hooks/scripts/lint-fix.sh +38 -0
  47. claude_kit/_payload/hooks/scripts/load-continuity.sh +32 -0
  48. claude_kit/_payload/hooks/scripts/load-learnings.sh +40 -0
  49. claude_kit/_payload/hooks/scripts/type-check.sh +23 -0
  50. claude_kit/_payload/hooks/scripts/validate-frontmatter.sh +34 -0
  51. claude_kit/_payload/hooks/scripts/validate-settings.sh +21 -0
  52. claude_kit/_payload/hooks/scripts/warn-large-edits.sh +24 -0
  53. claude_kit/_payload/hooks/scripts/warn-missing-tests.sh +24 -0
  54. claude_kit/_payload/hooks/scripts/warn-sensitive-files.sh +30 -0
  55. claude_kit/_payload/hooks/scripts/warn-shared-modules.sh +33 -0
  56. claude_kit/_payload/rules/agent-guardrails.md +83 -0
  57. claude_kit/_payload/rules/agent-memory.md +106 -0
  58. claude_kit/_payload/rules/agent-resilience.md +61 -0
  59. claude_kit/_payload/rules/autonomy-levels.md +30 -0
  60. claude_kit/_payload/rules/code-organization.md +312 -0
  61. claude_kit/_payload/rules/continuity.md +84 -0
  62. claude_kit/_payload/rules/design-patterns.md +422 -0
  63. claude_kit/_payload/rules/devops-observability.md +57 -0
  64. claude_kit/_payload/rules/documentation.md +326 -0
  65. claude_kit/_payload/rules/evals.md +62 -0
  66. claude_kit/_payload/rules/frontend-best-practices.md +157 -0
  67. claude_kit/_payload/rules/goal-setting-and-monitoring.md +72 -0
  68. claude_kit/_payload/rules/human-in-the-loop.md +64 -0
  69. claude_kit/_payload/rules/linting-and-formatting.md +220 -0
  70. claude_kit/_payload/rules/mandatory-workflow.md +309 -0
  71. claude_kit/_payload/rules/model-tiers.md +34 -0
  72. claude_kit/_payload/rules/quality-gates.md +107 -0
  73. claude_kit/_payload/rules/rarv-cycle.md +31 -0
  74. claude_kit/_payload/rules/reasoning-techniques.md +62 -0
  75. claude_kit/_payload/rules/responsive-and-accessibility.md +353 -0
  76. claude_kit/_payload/rules/risk-classification.md +36 -0
  77. claude_kit/_payload/rules/testing.md +417 -0
  78. claude_kit/_payload/rules/tool-design.md +66 -0
  79. claude_kit/_payload/skills/_references/accessibility-checklist.md +160 -0
  80. claude_kit/_payload/skills/_references/orchestration-patterns.md +405 -0
  81. claude_kit/_payload/skills/_references/performance-checklist.md +153 -0
  82. claude_kit/_payload/skills/_references/security-checklist.md +134 -0
  83. claude_kit/_payload/skills/_references/testing-patterns.md +236 -0
  84. claude_kit/_payload/skills/accessibility-review/SKILL.md +56 -0
  85. claude_kit/_payload/skills/api-and-interface-design/SKILL.md +294 -0
  86. claude_kit/_payload/skills/api-integration/SKILL.md +348 -0
  87. claude_kit/_payload/skills/archive-sprint/SKILL.md +31 -0
  88. claude_kit/_payload/skills/backlog/SKILL.md +41 -0
  89. claude_kit/_payload/skills/backlog/item-template.md +20 -0
  90. claude_kit/_payload/skills/browser-testing-with-devtools/SKILL.md +302 -0
  91. claude_kit/_payload/skills/ci-cd-and-automation/SKILL.md +402 -0
  92. claude_kit/_payload/skills/code-review-and-quality/SKILL.md +347 -0
  93. claude_kit/_payload/skills/code-simplification/SKILL.md +331 -0
  94. claude_kit/_payload/skills/component-design/SKILL.md +171 -0
  95. claude_kit/_payload/skills/consolidate-learnings/SKILL.md +55 -0
  96. claude_kit/_payload/skills/context-engineering/SKILL.md +321 -0
  97. claude_kit/_payload/skills/debugging-and-error-recovery/SKILL.md +300 -0
  98. claude_kit/_payload/skills/decision/SKILL.md +46 -0
  99. claude_kit/_payload/skills/decision/adr-template.md +36 -0
  100. claude_kit/_payload/skills/deprecation-and-migration/SKILL.md +207 -0
  101. claude_kit/_payload/skills/documentation-and-adrs/SKILL.md +299 -0
  102. claude_kit/_payload/skills/doubt-driven-development/SKILL.md +243 -0
  103. claude_kit/_payload/skills/execute/SKILL.md +27 -0
  104. claude_kit/_payload/skills/frontend-ui-engineering/SKILL.md +328 -0
  105. claude_kit/_payload/skills/git-workflow-and-versioning/SKILL.md +300 -0
  106. claude_kit/_payload/skills/idea-refine/SKILL.md +178 -0
  107. claude_kit/_payload/skills/idea-refine/examples.md +238 -0
  108. claude_kit/_payload/skills/idea-refine/frameworks.md +99 -0
  109. claude_kit/_payload/skills/idea-refine/refinement-criteria.md +113 -0
  110. claude_kit/_payload/skills/idea-refine/scripts/idea-refine.sh +15 -0
  111. claude_kit/_payload/skills/incident-postmortem/SKILL.md +74 -0
  112. claude_kit/_payload/skills/incremental-implementation/SKILL.md +245 -0
  113. claude_kit/_payload/skills/interview-me/SKILL.md +221 -0
  114. claude_kit/_payload/skills/load-testing/SKILL.md +83 -0
  115. claude_kit/_payload/skills/manual-test/SKILL.md +516 -0
  116. claude_kit/_payload/skills/performance-optimization/SKILL.md +277 -0
  117. claude_kit/_payload/skills/planning-and-task-breakdown/SKILL.md +223 -0
  118. claude_kit/_payload/skills/playwright-verification/SKILL.md +205 -0
  119. claude_kit/_payload/skills/refresh-docs/SKILL.md +63 -0
  120. claude_kit/_payload/skills/remember/SKILL.md +96 -0
  121. claude_kit/_payload/skills/scope/SKILL.md +52 -0
  122. claude_kit/_payload/skills/scope/scope-template.md +82 -0
  123. claude_kit/_payload/skills/sdlc/SKILL.md +83 -0
  124. claude_kit/_payload/skills/security-and-hardening/SKILL.md +368 -0
  125. claude_kit/_payload/skills/security-verification/SKILL.md +209 -0
  126. claude_kit/_payload/skills/shipping-and-launch/SKILL.md +309 -0
  127. claude_kit/_payload/skills/smoke-test/SKILL.md +78 -0
  128. claude_kit/_payload/skills/source-driven-development/SKILL.md +195 -0
  129. claude_kit/_payload/skills/spec-driven-development/SKILL.md +200 -0
  130. claude_kit/_payload/skills/sprint/SKILL.md +67 -0
  131. claude_kit/_payload/skills/sprint/sprint-template.md +90 -0
  132. claude_kit/_payload/skills/test-driven-development/SKILL.md +383 -0
  133. claude_kit/_payload/skills/threat-model/SKILL.md +60 -0
  134. claude_kit/_payload/skills/triage/SKILL.md +87 -0
  135. claude_kit/_payload/skills/ui-ux-design/SKILL.md +71 -0
  136. claude_kit/_payload/skills/unit-test/SKILL.md +237 -0
  137. claude_kit/_payload/skills/using-agent-skills/SKILL.md +180 -0
  138. claude_kit/_payload/templates/CLAUDE.md +238 -0
  139. claude_kit/_payload/templates/CLAUDE.stack.md.tmpl +53 -0
  140. claude_kit/_payload/templates/CONTINUITY.template.md +35 -0
  141. claude_kit/_payload/templates/README.claude-sdlc.md.tmpl +219 -0
  142. claude_kit/_payload/templates/agent-memory/MEMORY.md +30 -0
  143. claude_kit/_payload/templates/agent-memory/api/.gitkeep +0 -0
  144. claude_kit/_payload/templates/agent-memory/architecture/.gitkeep +0 -0
  145. claude_kit/_payload/templates/agent-memory/debugging/.gitkeep +0 -0
  146. claude_kit/_payload/templates/agent-memory/gotchas/.gitkeep +0 -0
  147. claude_kit/_payload/templates/agent-memory/patterns/.gitkeep +0 -0
  148. claude_kit/_payload/templates/agent-memory/performance/.gitkeep +0 -0
  149. claude_kit/_payload/templates/artifacts/adr.md +18 -0
  150. claude_kit/_payload/templates/artifacts/feature-spec.md +29 -0
  151. claude_kit/_payload/templates/artifacts/release-plan.md +23 -0
  152. claude_kit/_payload/templates/artifacts/runbook.md +24 -0
  153. claude_kit/_payload/templates/artifacts/security-review.md +23 -0
  154. claude_kit/_payload/templates/artifacts/test-plan.md +22 -0
  155. claude_kit/_payload/templates/org/README.md +53 -0
  156. claude_kit/_payload/templates/org/agents/data-workflow-agent.md +59 -0
  157. claude_kit/_payload/templates/org/agents/founder-prototype-agent.md +61 -0
  158. claude_kit/_payload/templates/org/agents/internal-tools-builder.md +63 -0
  159. claude_kit/_payload/templates/org/agents/pm-copilot.md +60 -0
  160. claude_kit/_payload/templates/org/agents/support-ticket-engineer.md +63 -0
  161. claude_kit/_payload/templates/org/packs/devops-and-release/README.md +46 -0
  162. claude_kit/_payload/templates/org/packs/devops-and-release/pack.yaml +32 -0
  163. claude_kit/_payload/templates/org/packs/engineering-core/README.md +46 -0
  164. claude_kit/_payload/templates/org/packs/engineering-core/pack.yaml +44 -0
  165. claude_kit/_payload/templates/org/packs/non-engineer-builder/README.md +53 -0
  166. claude_kit/_payload/templates/org/packs/non-engineer-builder/pack.yaml +39 -0
  167. claude_kit/_payload/templates/org/packs/onboarding-and-docs/README.md +49 -0
  168. claude_kit/_payload/templates/org/packs/onboarding-and-docs/pack.yaml +26 -0
  169. claude_kit/_payload/templates/org/packs/product-to-code/README.md +50 -0
  170. claude_kit/_payload/templates/org/packs/product-to-code/pack.yaml +34 -0
  171. claude_kit/_payload/templates/org/packs/quality-and-review/README.md +53 -0
  172. claude_kit/_payload/templates/org/packs/quality-and-review/pack.yaml +40 -0
  173. claude_kit/_payload/templates/org/packs/security-and-compliance/README.md +50 -0
  174. claude_kit/_payload/templates/org/packs/security-and-compliance/pack.yaml +36 -0
  175. claude_kit/_payload/templates/org/rules/ai-working-agreement.md +45 -0
  176. claude_kit/_payload/templates/org/rules/ambiguity-resolution.md +36 -0
  177. claude_kit/_payload/templates/org/rules/branch-and-pr-policy.md +41 -0
  178. claude_kit/_payload/templates/org/rules/compliance-policy.md +50 -0
  179. claude_kit/_payload/templates/org/rules/non-engineer-safe-coding.md +37 -0
  180. claude_kit/_payload/templates/org/rules/pii-policy.md +46 -0
  181. claude_kit/_payload/templates/org/rules/production-data-policy.md +35 -0
  182. claude_kit/_payload/templates/org/rules/prompt-to-task-conversion.md +30 -0
  183. claude_kit/_payload/templates/org/rules/prototype-boundaries.md +40 -0
  184. claude_kit/_payload/templates/org/rules/secrets-policy.md +34 -0
  185. claude_kit/_payload/templates/org/skills/customer-issue-to-fix/SKILL.md +61 -0
  186. claude_kit/_payload/templates/org/skills/feature-from-idea/SKILL.md +56 -0
  187. claude_kit/_payload/templates/org/skills/prompt-to-safe-task/SKILL.md +59 -0
  188. claude_kit/_payload/templates/org/skills/prototype-to-production/SKILL.md +61 -0
  189. claude_kit/_payload/templates/org/skills/repo-onboarding/SKILL.md +60 -0
  190. claude_kit/_payload/templates/settings.json +53 -0
  191. claude_kit/_payload/templates/stacks/backend/python/fastapi/rules/fastapi-patterns.md +64 -0
  192. claude_kit/_payload/templates/stacks/db/mongodb/agents/migration-specialist.md +61 -0
  193. claude_kit/_payload/templates/stacks/db/mongodb/agents/mongodb-specialist.md +59 -0
  194. claude_kit/_payload/templates/stacks/db/mongodb/rules/mongodb-patterns.md +39 -0
  195. claude_kit/_payload/templates/stacks/db/postgres/agents/db-performance-reviewer.md +66 -0
  196. claude_kit/_payload/templates/stacks/db/postgres/agents/migration-specialist.md +56 -0
  197. claude_kit/_payload/templates/stacks/db/postgres/agents/postgres-specialist.md +58 -0
  198. claude_kit/_payload/templates/stacks/db/postgres/rules/database-performance.md +64 -0
  199. claude_kit/_payload/templates/stacks/db/postgres/rules/postgres-patterns.md +43 -0
  200. claude_kit/_payload/templates/stacks/frontend/react/rules/react-patterns.md +63 -0
  201. claude_kit/catalog.py +476 -0
  202. claude_kit/cli.py +327 -0
  203. claude_kit/hooks.py +246 -0
  204. claude_kit/models.py +205 -0
  205. claude_kit/prompts.py +209 -0
  206. claude_kit/render.py +146 -0
  207. claude_kit/scaffold.py +492 -0
  208. claude_kit/upgrader.py +294 -0
  209. claude_kit/validator.py +197 -0
@@ -0,0 +1,200 @@
1
+ ---
2
+ name: spec-driven-development
3
+ description: Creates specs before coding. Use when starting a new project, feature, or significant change and no specification exists yet. Use when requirements are unclear, ambiguous, or only exist as a vague idea.
4
+ ---
5
+
6
+ # Spec-Driven Development
7
+
8
+ ## Overview
9
+
10
+ Write a structured specification before writing any code. The spec is the shared source of truth between you and the human engineer — it defines what we're building, why, and how we'll know it's done. Code without a spec is guessing.
11
+
12
+ ## When to Use
13
+
14
+ - Starting a new project or feature
15
+ - Requirements are ambiguous or incomplete
16
+ - The change touches multiple files or modules
17
+ - You're about to make an architectural decision
18
+ - The task would take more than 30 minutes to implement
19
+
20
+ **When NOT to use:** Single-line fixes, typo corrections, or changes where requirements are unambiguous and self-contained.
21
+
22
+ ## The Gated Workflow
23
+
24
+ Spec-driven development has four phases. Do not advance to the next phase until the current one is validated.
25
+
26
+ ```
27
+ SPECIFY ──→ PLAN ──→ TASKS ──→ IMPLEMENT
28
+ │ │ │ │
29
+ ▼ ▼ ▼ ▼
30
+ Human Human Human Human
31
+ reviews reviews reviews reviews
32
+ ```
33
+
34
+ ### Phase 1: Specify
35
+
36
+ Start with a high-level vision. Ask the human clarifying questions until requirements are concrete.
37
+
38
+ **Surface assumptions immediately.** Before writing any spec content, list what you're assuming:
39
+
40
+ ```
41
+ ASSUMPTIONS I'M MAKING:
42
+ 1. This is a web application (not native mobile)
43
+ 2. Authentication uses session-based cookies (not token-based)
44
+ 3. The database is relational (based on existing schema)
45
+ 4. We're targeting modern clients only
46
+ → Correct me now or I'll proceed with these.
47
+ ```
48
+
49
+ Don't silently fill in ambiguous requirements. The spec's entire purpose is to surface misunderstandings *before* code gets written — assumptions are the most dangerous form of misunderstanding.
50
+
51
+ **Write a spec document covering these six core areas:**
52
+
53
+ 1. **Objective** — What are we building and why? Who is the user? What does success look like?
54
+
55
+ 2. **Commands** — Full executable commands with flags, not just tool names.
56
+ ```
57
+ Build: <project's build command>
58
+ Test: <project's test runner command with flags>
59
+ Lint: <project's linter command with auto-fix>
60
+ Dev: <project's dev server command>
61
+ ```
62
+
63
+ 3. **Project Structure** — Where source code lives, where tests go, where docs belong.
64
+ ```
65
+ src/ → Application source code
66
+ src/components → UI components
67
+ src/lib → Shared utilities
68
+ tests/ → Unit and integration tests
69
+ e2e/ → End-to-end tests
70
+ docs/ → Documentation
71
+ ```
72
+
73
+ 4. **Code Style** — One real code snippet showing your style beats three paragraphs describing it. Include naming conventions, formatting rules, and examples of good output.
74
+
75
+ 5. **Testing Strategy** — What framework, where tests live, coverage expectations, which test levels for which concerns.
76
+
77
+ 6. **Boundaries** — Three-tier system:
78
+ - **Always do:** Run tests before commits, follow naming conventions, validate inputs
79
+ - **Ask first:** Database schema changes, adding dependencies, changing CI config
80
+ - **Never do:** Commit secrets, edit vendor directories, remove failing tests without approval
81
+
82
+ **Spec template:**
83
+
84
+ ```markdown
85
+ # Spec: [Project/Feature Name]
86
+
87
+ ## Objective
88
+ [What we're building and why. User stories or acceptance criteria.]
89
+
90
+ ## Tech Stack
91
+ [Framework, language, key dependencies with versions]
92
+
93
+ ## Commands
94
+ [Build, test, lint, dev — full commands]
95
+
96
+ ## Project Structure
97
+ [Directory layout with descriptions]
98
+
99
+ ## Code Style
100
+ [Example snippet + key conventions]
101
+
102
+ ## Testing Strategy
103
+ [Framework, test locations, coverage requirements, test levels]
104
+
105
+ ## Boundaries
106
+ - Always: [...]
107
+ - Ask first: [...]
108
+ - Never: [...]
109
+
110
+ ## Success Criteria
111
+ [How we'll know this is done — specific, testable conditions]
112
+
113
+ ## Open Questions
114
+ [Anything unresolved that needs human input]
115
+ ```
116
+
117
+ **Reframe instructions as success criteria.** When receiving vague requirements, translate them into concrete conditions:
118
+
119
+ ```
120
+ REQUIREMENT: "Make the dashboard faster"
121
+
122
+ REFRAMED SUCCESS CRITERIA:
123
+ - Dashboard LCP < 2.5s on 4G connection
124
+ - Initial data load completes in < 500ms
125
+ - No layout shift during load (CLS < 0.1)
126
+ → Are these the right targets?
127
+ ```
128
+
129
+ This lets you loop, retry, and problem-solve toward a clear goal rather than guessing what "faster" means.
130
+
131
+ ### Phase 2: Plan
132
+
133
+ With the validated spec, generate a technical implementation plan:
134
+
135
+ 1. Identify the major components and their dependencies
136
+ 2. Determine the implementation order (what must be built first)
137
+ 3. Note risks and mitigation strategies
138
+ 4. Identify what can be built in parallel vs. what must be sequential
139
+ 5. Define verification checkpoints between phases
140
+
141
+ The plan should be reviewable: the human should be able to read it and say "yes, that's the right approach" or "no, change X."
142
+
143
+ ### Phase 3: Tasks
144
+
145
+ Break the plan into discrete, implementable tasks:
146
+
147
+ - Each task should be completable in a single focused session
148
+ - Each task has explicit acceptance criteria
149
+ - Each task includes a verification step (test, build, manual check)
150
+ - Tasks are ordered by dependency, not by perceived importance
151
+ - No task should require changing more than ~5 files
152
+
153
+ **Task template:**
154
+ ```markdown
155
+ - [ ] Task: [Description]
156
+ - Acceptance: [What must be true when done]
157
+ - Verify: [How to confirm — test command, build, manual check]
158
+ - Files: [Which files will be touched]
159
+ ```
160
+
161
+ ### Phase 4: Implement
162
+
163
+ Execute tasks one at a time following `skills/incremental-implementation/SKILL.md` (`incremental-implementation`) and `skills/test-driven-development/SKILL.md` (`test-driven-development`). Use `skills/context-engineering/SKILL.md` (`context-engineering`) to load the right spec sections and source files at each step rather than flooding the agent with the entire spec.
164
+
165
+ ## Keeping the Spec Alive
166
+
167
+ The spec is a living document, not a one-time artifact:
168
+
169
+ - **Update when decisions change** — If you discover the data model needs to change, update the spec first, then implement.
170
+ - **Update when scope changes** — Features added or cut should be reflected in the spec.
171
+ - **Commit the spec** — The spec belongs in version control alongside the code.
172
+ - **Reference the spec in PRs** — Link back to the spec section that each PR implements.
173
+
174
+ ## Common Rationalizations
175
+
176
+ | Rationalization | Reality |
177
+ |---|---|
178
+ | "This is simple, I don't need a spec" | Simple tasks don't need *long* specs, but they still need acceptance criteria. A two-line spec is fine. |
179
+ | "I'll write the spec after I code it" | That's documentation, not specification. The spec's value is in forcing clarity *before* code. |
180
+ | "The spec will slow us down" | A 15-minute spec prevents hours of rework. Waterfall in 15 minutes beats debugging in 15 hours. |
181
+ | "Requirements will change anyway" | That's why the spec is a living document. An outdated spec is still better than no spec. |
182
+ | "The user knows what they want" | Even clear requests have implicit assumptions. The spec surfaces those assumptions. |
183
+
184
+ ## Red Flags
185
+
186
+ - Starting to write code without any written requirements
187
+ - Asking "should I just start building?" before clarifying what "done" means
188
+ - Implementing features not mentioned in any spec or task list
189
+ - Making architectural decisions without documenting them
190
+ - Skipping the spec because "it's obvious what to build"
191
+
192
+ ## Verification
193
+
194
+ Before proceeding to implementation, confirm:
195
+
196
+ - [ ] The spec covers all six core areas
197
+ - [ ] The human has reviewed and approved the spec
198
+ - [ ] Success criteria are specific and testable
199
+ - [ ] Boundaries (Always/Ask First/Never) are defined
200
+ - [ ] The spec is saved to a file in the repository
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: sprint
3
+ description: Generate a sprint plan from a scoped backlog item, breaking it into parallelizable tasks for agent teams.
4
+ argument-hint: [backlog item number]
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ Generate a sprint plan for backlog item #$ARGUMENTS.
9
+
10
+ ## Steps
11
+
12
+ 1. **Find the scope doc**: Look for the scope document in `docs/planning/*/scope.md` that corresponds to backlog item #$ARGUMENTS. If no scope doc exists, tell the user to run `/scope $ARGUMENTS` first.
13
+
14
+ 2. **Read the scope doc**: Understand all the component changes, data changes, route changes, and state changes.
15
+
16
+ 3. **Read the sprint template**: Read the [sprint template](sprint-template.md) for the output structure.
17
+
18
+ 4. **Break into tasks**: Create a detailed task breakdown:
19
+ - Each task should be small enough for one agent to complete in a focused session
20
+ - Tasks should have clear inputs and outputs
21
+ - Include the specific files to modify/create
22
+ - Order tasks by dependency (data models before business logic, business logic before interfaces, etc.)
23
+
24
+ 5. **Read post-sprint learnings**: Read `docs/reference/post-sprint-learnings.md` for execution heuristics from previous sprints. Apply relevant learnings to the plan.
25
+
26
+ 6. **Design parallelization**: Identify which tasks can run concurrently:
27
+ - Data/schema changes and scaffolding can usually run in parallel
28
+ - Module implementation can overlap if they don't share state
29
+ - Tasks modifying shared files (routing configuration, shared state stores, dependency injection configuration) should be sequential on one agent
30
+ - For multi-module features: build one module first to establish patterns, then parallelize the rest
31
+
32
+ 7. **Write the sprint plan**: Save to `docs/planning/{slug}/sprint.md` next to the scope doc. Include:
33
+ - Numbered deliverables with acceptance criteria
34
+ - Task tables organized by work stream (e.g., backend, frontend, integration, infrastructure)
35
+ - Parallelization diagram showing agent assignments
36
+ - Verification checklist
37
+
38
+ 8. **Suggest team composition**: Based on the tasks, recommend:
39
+ - How many agents to spawn and what type (e.g., backend-dev, frontend-dev, full-stack-dev)
40
+ - Task assignment per agent
41
+ - Plan extra tasks for faster-finishing agents (investigation, docs, design validation)
42
+
43
+ 9. **Output the plan**: Show the user the sprint plan summary and ask for approval before they kick off execution.
44
+
45
+ ## Guidelines
46
+
47
+ - Tasks should be atomic — one clear objective per task
48
+ - Always include a "verify integration" task at the end
49
+ - Don't create tasks for things that are already done
50
+ - Identify which work streams are independent (backend API, frontend UI, data migrations, infrastructure) and can run in parallel
51
+ - Agent type for implementation: match to the stack (backend-dev for API work, frontend-dev for UI work, full-stack-dev for cross-cutting features)
52
+ - For design-sensitive changes, suggest running a design-review agent after implementation
53
+ - For coordinated changes (e.g., new data model + new API endpoint + new UI component + new route), ensure all changes are in the same sprint
54
+
55
+ ## Post-Sprint Report
56
+
57
+ **When to write**: After the verification checklist passes and all tasks are complete (or explicitly descoped), the team lead must fill in the Sprint Report section of the sprint plan before archiving.
58
+
59
+ **What to capture**:
60
+ 1. **Results table** — each deliverable with target vs actual vs status
61
+ 2. **Metrics** — tasks planned/completed, regressions found
62
+ 3. **What went well** — patterns that worked, velocity wins, risk catches
63
+ 4. **What went wrong** — regressions, scope errors, agent issues, blockers
64
+ 5. **Learnings** — actionable lessons for future sprints (check existing learnings in `docs/reference/post-sprint-learnings.md` to avoid duplicates)
65
+ 6. **Unresolved / carry-over** — issues discovered but not fixed, with enough detail to act on immediately in the next sprint
66
+
67
+ **After writing the report**: Add any new learnings to `docs/reference/post-sprint-learnings.md`. Then run `/archive-sprint` to move docs to archive and update the backlog.
@@ -0,0 +1,90 @@
1
+ # Sprint Plan: {Item Title} (Backlog #{N})
2
+
3
+ > **Scope Doc**: [{Item Title}](./{slug}/scope.md)
4
+ > **Assignee**: {agent team or person}
5
+ > **Date**: {YYYY-MM-DD}
6
+
7
+ ---
8
+
9
+ ## Deliverables
10
+
11
+ 1. {deliverable with acceptance criteria}
12
+ 2. {deliverable with acceptance criteria}
13
+
14
+ ## Task Breakdown
15
+
16
+ ### Components
17
+
18
+ | # | Task | Files | Depends On |
19
+ |---|------|-------|------------|
20
+ | C1 | | | — |
21
+
22
+ ### Data / Mock Data
23
+
24
+ | # | Task | Files | Depends On |
25
+ |---|------|-------|------------|
26
+ | D1 | | | — |
27
+
28
+ ### Integration / Wiring
29
+
30
+ | # | Task | Files | Depends On |
31
+ |---|------|-------|------------|
32
+ | I1 | | | — |
33
+
34
+ ## Parallelization
35
+
36
+ Which tasks can run concurrently across agents?
37
+
38
+ ```
39
+ Agent 1 (frontend-dev): Task D1 → C1 → C2
40
+ Agent 2 (frontend-dev): Task D2 → C3 → C4
41
+ Integration: ----waits---- → I1 (verify all)
42
+ ```
43
+
44
+ ## Verification Checklist
45
+
46
+ - [ ] TypeScript compiles (`npm run build`)
47
+ - [ ] No lint errors (`npm run lint`)
48
+ - [ ] No regressions in existing pages
49
+ - [ ] New components follow design system rules
50
+ - [ ] All interactive elements have appropriate `aria-label`
51
+ - [ ] Dev server renders correctly (`npm run dev`)
52
+
53
+ ---
54
+
55
+ ## Sprint Report
56
+
57
+ > **Completed**: {YYYY-MM-DD}
58
+ > **Team**: {agent count and types}
59
+
60
+ ### Results
61
+
62
+ | Deliverable | Target | Actual | Status |
63
+ |-------------|--------|--------|--------|
64
+ | | | | |
65
+
66
+ ### Metrics
67
+
68
+ | Metric | Value |
69
+ |--------|-------|
70
+ | Tasks planned | |
71
+ | Tasks completed | |
72
+ | Regressions found | |
73
+
74
+ ### What Went Well
75
+
76
+ - {positive outcome}
77
+
78
+ ### What Went Wrong
79
+
80
+ - {issue encountered}
81
+
82
+ ### Learnings
83
+
84
+ 1. {actionable lesson for future sprints — reference docs/reference/post-sprint-learnings.md for existing learnings}
85
+
86
+ ### Unresolved / Carry-Over
87
+
88
+ | # | Issue | Details |
89
+ |---|-------|---------|
90
+ | K1 | | |