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.
- claude_code_kit-0.7.0.dist-info/METADATA +384 -0
- claude_code_kit-0.7.0.dist-info/RECORD +209 -0
- claude_code_kit-0.7.0.dist-info/WHEEL +4 -0
- claude_code_kit-0.7.0.dist-info/entry_points.txt +4 -0
- claude_code_kit-0.7.0.dist-info/licenses/LICENSE +21 -0
- claude_kit/__init__.py +10 -0
- claude_kit/__main__.py +8 -0
- claude_kit/_payload/agents/acceptance-reviewer.md +60 -0
- claude_kit/_payload/agents/auditor.md +76 -0
- claude_kit/_payload/agents/dependency-scanner.md +84 -0
- claude_kit/_payload/agents/developer.md +187 -0
- claude_kit/_payload/agents/devils-advocate.md +62 -0
- claude_kit/_payload/agents/devops-engineer.md +134 -0
- claude_kit/_payload/agents/e2e-tester.md +152 -0
- claude_kit/_payload/agents/em-reviewer.md +105 -0
- claude_kit/_payload/agents/incident-responder.md +64 -0
- claude_kit/_payload/agents/merge-reviewer.md +194 -0
- claude_kit/_payload/agents/observability-engineer.md +94 -0
- claude_kit/_payload/agents/orchestrator.md +551 -0
- claude_kit/_payload/agents/owasp-reviewer.md +76 -0
- claude_kit/_payload/agents/policy-validator.md +63 -0
- claude_kit/_payload/agents/pr-raiser.md +138 -0
- claude_kit/_payload/agents/risk-classifier.md +50 -0
- claude_kit/_payload/agents/sdlc-code-reviewer.md +196 -0
- claude_kit/_payload/agents/secret-scanner.md +70 -0
- claude_kit/_payload/agents/security-reviewer.md +80 -0
- claude_kit/_payload/agents/senior-backend-dev.md +199 -0
- claude_kit/_payload/agents/senior-frontend-dev.md +181 -0
- claude_kit/_payload/agents/senior-tester.md +206 -0
- claude_kit/_payload/agents/spec-doc-writer.md +331 -0
- claude_kit/_payload/agents/story-planner.md +56 -0
- claude_kit/_payload/agents/technical-architect.md +139 -0
- claude_kit/_payload/agents/tester.md +193 -0
- claude_kit/_payload/agents/ui-designer.md +73 -0
- claude_kit/_payload/agents/unit-tester.md +119 -0
- claude_kit/_payload/catalog/mcp.yaml +54 -0
- claude_kit/_payload/catalog/org.yaml +145 -0
- claude_kit/_payload/catalog/profiles.yaml +96 -0
- claude_kit/_payload/catalog/stacks.yaml +96 -0
- claude_kit/_payload/commands/init.md +36 -0
- claude_kit/_payload/commands/sdlc.md +18 -0
- claude_kit/_payload/commands/status.md +20 -0
- claude_kit/_payload/hooks/hooks.json +58 -0
- claude_kit/_payload/hooks/scripts/audit-log.sh +18 -0
- claude_kit/_payload/hooks/scripts/guard-secrets.sh +26 -0
- claude_kit/_payload/hooks/scripts/lint-fix.sh +38 -0
- claude_kit/_payload/hooks/scripts/load-continuity.sh +32 -0
- claude_kit/_payload/hooks/scripts/load-learnings.sh +40 -0
- claude_kit/_payload/hooks/scripts/type-check.sh +23 -0
- claude_kit/_payload/hooks/scripts/validate-frontmatter.sh +34 -0
- claude_kit/_payload/hooks/scripts/validate-settings.sh +21 -0
- claude_kit/_payload/hooks/scripts/warn-large-edits.sh +24 -0
- claude_kit/_payload/hooks/scripts/warn-missing-tests.sh +24 -0
- claude_kit/_payload/hooks/scripts/warn-sensitive-files.sh +30 -0
- claude_kit/_payload/hooks/scripts/warn-shared-modules.sh +33 -0
- claude_kit/_payload/rules/agent-guardrails.md +83 -0
- claude_kit/_payload/rules/agent-memory.md +106 -0
- claude_kit/_payload/rules/agent-resilience.md +61 -0
- claude_kit/_payload/rules/autonomy-levels.md +30 -0
- claude_kit/_payload/rules/code-organization.md +312 -0
- claude_kit/_payload/rules/continuity.md +84 -0
- claude_kit/_payload/rules/design-patterns.md +422 -0
- claude_kit/_payload/rules/devops-observability.md +57 -0
- claude_kit/_payload/rules/documentation.md +326 -0
- claude_kit/_payload/rules/evals.md +62 -0
- claude_kit/_payload/rules/frontend-best-practices.md +157 -0
- claude_kit/_payload/rules/goal-setting-and-monitoring.md +72 -0
- claude_kit/_payload/rules/human-in-the-loop.md +64 -0
- claude_kit/_payload/rules/linting-and-formatting.md +220 -0
- claude_kit/_payload/rules/mandatory-workflow.md +309 -0
- claude_kit/_payload/rules/model-tiers.md +34 -0
- claude_kit/_payload/rules/quality-gates.md +107 -0
- claude_kit/_payload/rules/rarv-cycle.md +31 -0
- claude_kit/_payload/rules/reasoning-techniques.md +62 -0
- claude_kit/_payload/rules/responsive-and-accessibility.md +353 -0
- claude_kit/_payload/rules/risk-classification.md +36 -0
- claude_kit/_payload/rules/testing.md +417 -0
- claude_kit/_payload/rules/tool-design.md +66 -0
- claude_kit/_payload/skills/_references/accessibility-checklist.md +160 -0
- claude_kit/_payload/skills/_references/orchestration-patterns.md +405 -0
- claude_kit/_payload/skills/_references/performance-checklist.md +153 -0
- claude_kit/_payload/skills/_references/security-checklist.md +134 -0
- claude_kit/_payload/skills/_references/testing-patterns.md +236 -0
- claude_kit/_payload/skills/accessibility-review/SKILL.md +56 -0
- claude_kit/_payload/skills/api-and-interface-design/SKILL.md +294 -0
- claude_kit/_payload/skills/api-integration/SKILL.md +348 -0
- claude_kit/_payload/skills/archive-sprint/SKILL.md +31 -0
- claude_kit/_payload/skills/backlog/SKILL.md +41 -0
- claude_kit/_payload/skills/backlog/item-template.md +20 -0
- claude_kit/_payload/skills/browser-testing-with-devtools/SKILL.md +302 -0
- claude_kit/_payload/skills/ci-cd-and-automation/SKILL.md +402 -0
- claude_kit/_payload/skills/code-review-and-quality/SKILL.md +347 -0
- claude_kit/_payload/skills/code-simplification/SKILL.md +331 -0
- claude_kit/_payload/skills/component-design/SKILL.md +171 -0
- claude_kit/_payload/skills/consolidate-learnings/SKILL.md +55 -0
- claude_kit/_payload/skills/context-engineering/SKILL.md +321 -0
- claude_kit/_payload/skills/debugging-and-error-recovery/SKILL.md +300 -0
- claude_kit/_payload/skills/decision/SKILL.md +46 -0
- claude_kit/_payload/skills/decision/adr-template.md +36 -0
- claude_kit/_payload/skills/deprecation-and-migration/SKILL.md +207 -0
- claude_kit/_payload/skills/documentation-and-adrs/SKILL.md +299 -0
- claude_kit/_payload/skills/doubt-driven-development/SKILL.md +243 -0
- claude_kit/_payload/skills/execute/SKILL.md +27 -0
- claude_kit/_payload/skills/frontend-ui-engineering/SKILL.md +328 -0
- claude_kit/_payload/skills/git-workflow-and-versioning/SKILL.md +300 -0
- claude_kit/_payload/skills/idea-refine/SKILL.md +178 -0
- claude_kit/_payload/skills/idea-refine/examples.md +238 -0
- claude_kit/_payload/skills/idea-refine/frameworks.md +99 -0
- claude_kit/_payload/skills/idea-refine/refinement-criteria.md +113 -0
- claude_kit/_payload/skills/idea-refine/scripts/idea-refine.sh +15 -0
- claude_kit/_payload/skills/incident-postmortem/SKILL.md +74 -0
- claude_kit/_payload/skills/incremental-implementation/SKILL.md +245 -0
- claude_kit/_payload/skills/interview-me/SKILL.md +221 -0
- claude_kit/_payload/skills/load-testing/SKILL.md +83 -0
- claude_kit/_payload/skills/manual-test/SKILL.md +516 -0
- claude_kit/_payload/skills/performance-optimization/SKILL.md +277 -0
- claude_kit/_payload/skills/planning-and-task-breakdown/SKILL.md +223 -0
- claude_kit/_payload/skills/playwright-verification/SKILL.md +205 -0
- claude_kit/_payload/skills/refresh-docs/SKILL.md +63 -0
- claude_kit/_payload/skills/remember/SKILL.md +96 -0
- claude_kit/_payload/skills/scope/SKILL.md +52 -0
- claude_kit/_payload/skills/scope/scope-template.md +82 -0
- claude_kit/_payload/skills/sdlc/SKILL.md +83 -0
- claude_kit/_payload/skills/security-and-hardening/SKILL.md +368 -0
- claude_kit/_payload/skills/security-verification/SKILL.md +209 -0
- claude_kit/_payload/skills/shipping-and-launch/SKILL.md +309 -0
- claude_kit/_payload/skills/smoke-test/SKILL.md +78 -0
- claude_kit/_payload/skills/source-driven-development/SKILL.md +195 -0
- claude_kit/_payload/skills/spec-driven-development/SKILL.md +200 -0
- claude_kit/_payload/skills/sprint/SKILL.md +67 -0
- claude_kit/_payload/skills/sprint/sprint-template.md +90 -0
- claude_kit/_payload/skills/test-driven-development/SKILL.md +383 -0
- claude_kit/_payload/skills/threat-model/SKILL.md +60 -0
- claude_kit/_payload/skills/triage/SKILL.md +87 -0
- claude_kit/_payload/skills/ui-ux-design/SKILL.md +71 -0
- claude_kit/_payload/skills/unit-test/SKILL.md +237 -0
- claude_kit/_payload/skills/using-agent-skills/SKILL.md +180 -0
- claude_kit/_payload/templates/CLAUDE.md +238 -0
- claude_kit/_payload/templates/CLAUDE.stack.md.tmpl +53 -0
- claude_kit/_payload/templates/CONTINUITY.template.md +35 -0
- claude_kit/_payload/templates/README.claude-sdlc.md.tmpl +219 -0
- claude_kit/_payload/templates/agent-memory/MEMORY.md +30 -0
- claude_kit/_payload/templates/agent-memory/api/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/architecture/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/debugging/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/gotchas/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/patterns/.gitkeep +0 -0
- claude_kit/_payload/templates/agent-memory/performance/.gitkeep +0 -0
- claude_kit/_payload/templates/artifacts/adr.md +18 -0
- claude_kit/_payload/templates/artifacts/feature-spec.md +29 -0
- claude_kit/_payload/templates/artifacts/release-plan.md +23 -0
- claude_kit/_payload/templates/artifacts/runbook.md +24 -0
- claude_kit/_payload/templates/artifacts/security-review.md +23 -0
- claude_kit/_payload/templates/artifacts/test-plan.md +22 -0
- claude_kit/_payload/templates/org/README.md +53 -0
- claude_kit/_payload/templates/org/agents/data-workflow-agent.md +59 -0
- claude_kit/_payload/templates/org/agents/founder-prototype-agent.md +61 -0
- claude_kit/_payload/templates/org/agents/internal-tools-builder.md +63 -0
- claude_kit/_payload/templates/org/agents/pm-copilot.md +60 -0
- claude_kit/_payload/templates/org/agents/support-ticket-engineer.md +63 -0
- claude_kit/_payload/templates/org/packs/devops-and-release/README.md +46 -0
- claude_kit/_payload/templates/org/packs/devops-and-release/pack.yaml +32 -0
- claude_kit/_payload/templates/org/packs/engineering-core/README.md +46 -0
- claude_kit/_payload/templates/org/packs/engineering-core/pack.yaml +44 -0
- claude_kit/_payload/templates/org/packs/non-engineer-builder/README.md +53 -0
- claude_kit/_payload/templates/org/packs/non-engineer-builder/pack.yaml +39 -0
- claude_kit/_payload/templates/org/packs/onboarding-and-docs/README.md +49 -0
- claude_kit/_payload/templates/org/packs/onboarding-and-docs/pack.yaml +26 -0
- claude_kit/_payload/templates/org/packs/product-to-code/README.md +50 -0
- claude_kit/_payload/templates/org/packs/product-to-code/pack.yaml +34 -0
- claude_kit/_payload/templates/org/packs/quality-and-review/README.md +53 -0
- claude_kit/_payload/templates/org/packs/quality-and-review/pack.yaml +40 -0
- claude_kit/_payload/templates/org/packs/security-and-compliance/README.md +50 -0
- claude_kit/_payload/templates/org/packs/security-and-compliance/pack.yaml +36 -0
- claude_kit/_payload/templates/org/rules/ai-working-agreement.md +45 -0
- claude_kit/_payload/templates/org/rules/ambiguity-resolution.md +36 -0
- claude_kit/_payload/templates/org/rules/branch-and-pr-policy.md +41 -0
- claude_kit/_payload/templates/org/rules/compliance-policy.md +50 -0
- claude_kit/_payload/templates/org/rules/non-engineer-safe-coding.md +37 -0
- claude_kit/_payload/templates/org/rules/pii-policy.md +46 -0
- claude_kit/_payload/templates/org/rules/production-data-policy.md +35 -0
- claude_kit/_payload/templates/org/rules/prompt-to-task-conversion.md +30 -0
- claude_kit/_payload/templates/org/rules/prototype-boundaries.md +40 -0
- claude_kit/_payload/templates/org/rules/secrets-policy.md +34 -0
- claude_kit/_payload/templates/org/skills/customer-issue-to-fix/SKILL.md +61 -0
- claude_kit/_payload/templates/org/skills/feature-from-idea/SKILL.md +56 -0
- claude_kit/_payload/templates/org/skills/prompt-to-safe-task/SKILL.md +59 -0
- claude_kit/_payload/templates/org/skills/prototype-to-production/SKILL.md +61 -0
- claude_kit/_payload/templates/org/skills/repo-onboarding/SKILL.md +60 -0
- claude_kit/_payload/templates/settings.json +53 -0
- claude_kit/_payload/templates/stacks/backend/python/fastapi/rules/fastapi-patterns.md +64 -0
- claude_kit/_payload/templates/stacks/db/mongodb/agents/migration-specialist.md +61 -0
- claude_kit/_payload/templates/stacks/db/mongodb/agents/mongodb-specialist.md +59 -0
- claude_kit/_payload/templates/stacks/db/mongodb/rules/mongodb-patterns.md +39 -0
- claude_kit/_payload/templates/stacks/db/postgres/agents/db-performance-reviewer.md +66 -0
- claude_kit/_payload/templates/stacks/db/postgres/agents/migration-specialist.md +56 -0
- claude_kit/_payload/templates/stacks/db/postgres/agents/postgres-specialist.md +58 -0
- claude_kit/_payload/templates/stacks/db/postgres/rules/database-performance.md +64 -0
- claude_kit/_payload/templates/stacks/db/postgres/rules/postgres-patterns.md +43 -0
- claude_kit/_payload/templates/stacks/frontend/react/rules/react-patterns.md +63 -0
- claude_kit/catalog.py +476 -0
- claude_kit/cli.py +327 -0
- claude_kit/hooks.py +246 -0
- claude_kit/models.py +205 -0
- claude_kit/prompts.py +209 -0
- claude_kit/render.py +146 -0
- claude_kit/scaffold.py +492 -0
- claude_kit/upgrader.py +294 -0
- 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 | | |
|