/spec — Spec Writing
Usage
/spec [path-to-BRD]
Steps
- Read
.claude/skills/spec-writing/SKILL.mdfor decomposition patterns. - Spawn
spec-writeragent with the BRD as input. - Agent writes output to
specs/stories/:epics.md— epic summaries with story listsE{n}-S{n}.md— individual story files with acceptance criteriadependency-graph.md— hard dependencies + parallel groups
- Verify gate: every story has acceptance criteria, layer assignment, and group.
- Present epic summary and dependency graph for user review.
Gate
- All stories have acceptance criteria (testable, specific)
- Every story has a layer assignment (Types, Config, Repository, Service, API, UI)
- Dependency graph has no circular dependencies
- Parallel groups assigned for agent team execution
Gotchas
- Vague acceptance criteria. "Works properly" is not testable. Each criterion must be verifiable with a specific test case.
- Missing layer assignments. Without layers, the architect can't assign files and the implementer can't enforce dependency rules.
- Circular dependencies in graph. If A depends on B depends on A, the agent team can't parallelize. Break the cycle by extracting shared types.
- Too many stories per epic. Keep epics to 3-5 stories. Larger epics should be split — they're hard to parallelize and review.
- Skipping the user review. Always present the dependency graph before moving to architecture. Catching spec issues here is 10x cheaper than in implementation.