Draft design documents and specs with research-informed questioning
Use this skill when the user explicitly requests a spec, design document, or similar planning artifact. Do not auto-trigger for routine tasks.
When starting a spec:
Conduct open-ended questioning until the designer signals completion:
Research-informed questions: Before asking about an area, do just-in-time codebase research. Find relevant files, understand current patterns, identify constraints. Reference specific files and functions in questions when it adds clarity.
Adaptive scope: When the designer marks something as out of scope, update your mental model and don't revisit. However, flag when you believe there are gaps that could cause problems:
src/foo.ts:42 handles Z differently. Should we align or diverge?"Question style:
When the designer indicates readiness, produce the spec document.
Save to: /specs/YYYY-MM-DD-short-name.md
Title and status (draft | approved | implemented)
Goal: What this achieves and why. 1-3 sentences.
Design: The substance of what will be built/changed. For each significant component or concern:
Implementation: Ordered steps that an agent or developer can execute. Each step should:
Add other sections if the problem demands it.
file/path.ts:lineNumber or functionName in backticksUpdate status in the document as it progresses. Specs are point-in-time snapshots—do not update content after implementation begins except to change status.