/sdd-explore¶
Read-only codebase exploration to understand context before making changes.
Usage¶
/sdd-explore "how does authentication work"
/sdd-explore
Prerequisites¶
openspec/initialized (/sdd-init)
What it does¶
- Recalls past decisions — searches archived specs, canonical specs, and
openspec/INDEX.mdfor previous decisions, discarded alternatives, and business rules related to the change. Skips silently if no history exists. - Finds similar patterns — existing implementations of the same type
- Identifies affected files — what will need to change and why
- Reviews domain models — data structures, interfaces, contracts
- Checks tests — how existing tests are structured for similar code
- Reads canonical specs — relevant domains from
openspec/specs/ - Compiles constraints — key constraints affecting the design
Artifacts produced¶
openspec/changes/{change-name}/notes.md— structured exploration findings (prior decisions, relevant files, existing patterns, specs, constraints)
Next step¶
/sdd-propose— create a proposal based on the exploration