Quick Start
This guide walks through a complete OpenSpec workflow from proposal to archive.
-
Initialize OpenSpec
Terminal window cd your-projectopenspec initSelect your AI tools when prompted. This creates the
openspec/directory. -
Create a Change Proposal
Ask your AI assistant:
Create an OpenSpec change proposal for adding two-factor authenticationThe AI creates:
openspec/changes/add-two-factor-auth/├── proposal.md # Why and what├── tasks.md # Implementation checklist└── specs/└── auth/└── spec.md # Requirement deltas -
Review the Proposal
Terminal window openspec show add-two-factor-authRefine with your AI until specs match your needs.
-
Validate the Change
Terminal window openspec validate add-two-factor-auth --strictFix any formatting issues before proceeding.
-
Implement the Tasks
/openspec:apply add-two-factor-authThe AI works through
tasks.md, marking items complete. -
Archive After Deployment
Terminal window openspec archive add-two-factor-auth --yesThis:
- Moves the change to
archive/ - Updates main specs with the deltas
- Records the completion date
- Moves the change to
Example: The Complete Flow
Section titled “Example: The Complete Flow”# 1. Start freshopenspec init
# 2. Check what existsopenspec list # Active changesopenspec list --specs # Existing specs
# 3. After AI creates proposalopenspec validate add-2fa --strict
# 4. Review everythingopenspec show add-2fa
# 5. After implementationopenspec archive add-2fa --yesWhat’s Next?
Section titled “What’s Next?”- Understand the three-stage workflow
- Learn spec format for writing requirements
- Explore all CLI commands