openspec-guide
Use when the user asks about OpenSpec itself — available commands, workflows, spec structure, domain organization, or workflow reference. Examples: "What OpenSpec commands are available?", "How do I use OpenSpec?", "How do specs work?"
- License 许可
- MIT
- 最近更新
- 2026-07-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- openspec-guide
- description
- Use when the user asks about OpenSpec itself — available commands, workflows, spec structure, domain organization, or workflow reference. Examples: "What OpenSpec commands are available?", "How do I use OpenSpec?", "How do specs work?"
03 SKILL.md 正文
OpenSpec Guide
Quick reference for all OpenSpec commands, workflows, spec domains, and the artifact-driven development flow in this project.
Always Start Here
For any task involving spec-driven development, behavioral changes, or feature work:
- Check active changes:
openspec list - Check spec domains:
openspec list --specs - Match your task to a skill below and follow that workflow
- Validate before completion:
openspec validate --all
Skills
| Task | Skill to read |
|---|---|
| Quick end-to-end change (all artifacts at once) | openspec-propose |
| Think through ideas before committing | openspec-explore |
| Start a new change (step-by-step) | openspec-new-change |
| Create next artifact in sequence | openspec-continue-change |
| Fast-forward all planning artifacts | openspec-ff-change |
| Implement tasks from a change | openspec-apply-change |
| Merge delta specs into main specs | openspec-sync-specs |
| Validate implementation matches specs | openspec-verify-change |
| Archive a completed change | openspec-archive-change |
| Archive multiple changes at once | openspec-bulk-archive-change |
| Guided onboarding tutorial | openspec-onboard |
| OpenSpec reference (this file) | openspec-guide |
Slash Commands (GitHub Copilot)
| Command | Purpose |
|---|---|
/openspec/propose |
Create change + all artifacts in one step |
/openspec/explore |
Investigate ideas before committing |
/openspec/new |
Start a new change scaffold |
/openspec/continue |
Create next artifact in sequence |
/openspec/ff |
Fast-forward all planning artifacts |
/openspec/apply |
Implement tasks from the change |
/openspec/sync |
Merge delta specs into main specs |
/openspec/verify |
Validate implementation matches specs |
/openspec/archive |
Archive a completed change |
/openspec/bulk-archive |
Archive multiple changes |
/openspec/onboard |
Guided onboarding tutorial |
Slash Commands (Claude Code)
Same commands using colon syntax: /openspec:propose, /openspec:apply, etc.
Spec Domains (Source of Truth)
openspec/specs/
├── case-intake/spec.md → Customer, Case, InsuranceCondition
├── document-processing/spec.md → Document retrieval, OCR, PDF extraction
├── case-assessment/spec.md → AI pipeline orchestration, handlers
├── fraud-detection/spec.md → Temporal rules, prior illness, recurrence
├── api/spec.md → REST endpoints, rate limiting, errors
└── persistence/spec.md → Audit trail, data integrity
Artifact Flow
proposal ──► specs ──► design ──► tasks ──► implement ──► verify ──► archive
│ │ │ │ │
why what how steps check
Delta Spec Format (for changes)
# Delta for <domain>
## ADDED Requirements
### Requirement: New Behavior
The system SHALL ...
#### Scenario: ...
- GIVEN ...
- WHEN ...
- THEN ...
## MODIFIED Requirements
### Requirement: Changed Behavior
(Previously: old description)
## REMOVED Requirements
### Requirement: Deprecated Behavior
(Reason)
CLI Reference
| Command | Purpose |
|---|---|
openspec list |
List active changes |
openspec list --specs |
List all spec domains |
openspec show <name> |
View change or spec details |
openspec validate --all |
Validate all specs and changes |
openspec status --change <name> |
Artifact progress for a change |
openspec instructions <id> --change <name> --json |
Get artifact template |
openspec schemas |
List available workflow schemas |
Integration with GitNexus
When making changes that affect code structure:
- Before proposing: Use
gitnexus_queryto understand affected flows - During design: Use
gitnexus_impactto assess blast radius - After implementation: Use
gitnexus_detect_changesto verify scope - Before archiving: Run
openspec validate --all+ quality gate
Integration with Context7
When specs reference library/framework behavior:
- Use
mcp_context7_resolve-library-idto find the library - Use
mcp_context7_query-docsfor current API documentation - Reference authoritative docs in design.md for implementation guidance
Clean Architecture Enforcement
Specs are organized by bounded context, not by layer. However, tasks in
tasks.md MUST be ordered by Clean Architecture layer:
- Core — Domain entities, value objects, protocols
- Application — Use cases, orchestrators, DTOs
- Infrastructure — Adapters, repositories, clients
- Presentation — Routes, controllers, serialization
- Tests — Unit → Integration → Property (TDD: test first)
04 同仓库更多 Skills
ui-ux-frontend
Frontend UX, accessibility, responsive layout, and Storybook interaction quality standards.
testing-conventions
暂无简介
tdd
暂无简介
shadcn-ui
shadcn/ui component conventions and composition patterns
sdd
暂无简介
quality-gate
暂无简介