OpenSpec
Use this skill for OpenSpec-style spec-driven development.
Installed CLI:
openspec --version
Local upstream source:
/Users/hanyueyang/.codex/vendor/OpenSpec
When To Use
Use OpenSpec when the user wants to:
- Start or manage a spec-driven development workflow.
- Convert an idea into proposal, requirements, design, and tasks.
- Initialize OpenSpec in a repo.
- Validate current changes/specs.
- Inspect OpenSpec specs or changes.
- Archive completed changes into the source-of-truth specs.
- Use
/opsx:*commands or asks about OpenSpec/OPSX.
Core Workflow
Default quick path:
- Explore uncertainty with
/opsx:explorestyle dialogue when the request is unclear. - Propose a change with
/opsx:propose <change>or equivalent artifacts. - Implement with
/opsx:applyonly after the plan/spec artifacts are ready. - Validate with
openspec validate --allor targeted validation before claiming completion. - Sync/archive with
/opsx:syncand/opsx:archivewhen work is complete.
Expanded workflow:
/opsx:newcreates a change scaffold./opsx:continuecreates the next ready artifact./opsx:ffcreates all planning artifacts./opsx:verifychecks implementation against artifacts./opsx:bulk-archivearchives multiple completed changes./opsx:onboardruns a guided tutorial.
CLI Use
Initialize a project:
openspec init --tools codex
Update project instructions after CLI upgrade:
openspec update
Inspect state:
openspec list --json
openspec status --json
openspec show <item> --json
openspec instructions --json
Validate:
openspec validate --all --json
Archive:
openspec archive <change-name>
Agent Discipline
- Prefer OpenSpec artifacts over long-lived chat memory for requirements.
- Do not implement substantial feature work before the proposal/spec/design/tasks are clear.
- Use official CLI JSON output when available rather than parsing terminal text.
- For existing repos, inspect whether
openspec/already exists before initializing. - If OpenSpec is not initialized and the user asks for a spec workflow, initialize only after confirming the target repo/path is correct.
- Cross-reference Superpowers-style TDD/review skills when implementation starts.
References
- CLI reference:
/Users/hanyueyang/.codex/vendor/OpenSpec/docs/cli.md - Slash commands:
/Users/hanyueyang/.codex/vendor/OpenSpec/docs/commands.md - Concepts:
/Users/hanyueyang/.codex/vendor/OpenSpec/docs/concepts.md - Workflows:
/Users/hanyueyang/.codex/vendor/OpenSpec/docs/workflows.md - OPSX:
/Users/hanyueyang/.codex/vendor/OpenSpec/docs/opsx.md - Getting started:
/Users/hanyueyang/.codex/vendor/OpenSpec/docs/getting-started.md