openspec-sdd
Use OpenSpec for formal spec-driven development. Use when a feature, refactor, or product change should be proposed, designed, task-planned, validated, synced, or archived through openspec/ artifacts
SKILL.mdskills/openspec-sdd/SKILL.md
GitHubOpenSpec SDD
Purpose
Run a formal OpenSpec workflow so feature work has proposal, requirements, design, tasks, validation, and archive history instead of living only in chat or ad hoc docs.
Inspect First
openspec/, existing specs, active changes, archived changes, and OpenSpec config- product docs, architecture docs, tests, routes, schemas, and previous feature specs
- package manager, Node version, and whether
openspecis installed
Procedure
Detect OpenSpec state.
- If
openspec/is missing, recommendnpm install -g @fission-ai/openspec@latestor project-native equivalent, thenopenspec init. - If OpenSpec exists, preserve active changes and current specs.
- Set
OPENSPEC_TELEMETRY=0when CI or privacy-sensitive automation needs telemetry disabled.
- If
Start or continue the change.
- Use
/opsx:propose "<idea>"for the default workflow. - Use expanded commands such as
/opsx:new,/opsx:continue,/opsx:ff, and/opsx:verifyonly when the repo has that profile enabled. - Each change should have
proposal.md,design.md,tasks.md, and delta specs underopenspec/changes/<change-name>/.
- Use
Keep artifacts executable.
- Requirements use ADDED, MODIFIED, or REMOVED sections and scenario examples.
- Tasks are checkboxes tied to validation evidence.
- Design names affected modules, APIs, schemas, tests, rollout risk, and docs.
- Use
assets/templates/openspec-change-notes.md.tmplfor local notes when needed. - Use
$research-first-changewhen the change depends on current external APIs, framework behavior, security guidance, or dependency choices.
Validate and sync.
- Add or update target repo
scripts/check-openspecwhen OpenSpec is part of the workflow. - Use
scripts/check_openspec.pyfor lightweight local inventory, including active changes and per-change delta spec files. - Run
openspec validate <change-name>when the CLI is available. - After implementation, use
/opsx:syncor/opsx:archiveaccording to the active workflow.
- Add or update target repo
Route follow-on skills.
- Use
task-planning-and-pr-protocolfor implementation planning. - Use
feature-state-machineto map OpenSpec tasks to feature IDs, WIP state, verification commands, and passing evidence. - Use
tdd-playwright-workflowfor red-green-refactor tasks. - Use
agent-reviewerto confirm implementation matches OpenSpec tasks and requirements.
- Use
Validation
- Run
./scripts/check-openspecwhen present. - Run
openspec list,openspec show <change-name>, andopenspec validate <change-name>when the CLI is available. - Confirm proposal, design, tasks, and delta specs agree with the implemented behavior.
Completion Criteria
- The feature has an OpenSpec change or a documented reason OpenSpec is unnecessary.
- Requirements are scenario-based and implementation tasks are checkable.
- Active changes are validated before implementation and archived or synced after completion.