Getting Started
OpenSpec aligns humans and AI coding assistants with spec-driven development so you agree on what to build before any code is written.
Prerequisites
Section titled “Prerequisites”- Bun runtime installed
Installation
Section titled “Installation”Run OpenSpec with bunx (recommended):
bunx @clanker-guru/openspecOr install globally:
bun install -g @clanker-guru/openspecVerify installation:
openspec --versionInitialize Your Project
Section titled “Initialize Your Project”Navigate to your project directory and run:
cd my-projectopenspec initThis will:
- Create the
openspec/directory structure - Generate
openspec/AGENTS.mdwith AI instructions - Create
project.mdfor project context - Configure slash commands for your selected AI tools
Your First Change
Section titled “Your First Change”Ask your AI assistant to create a change proposal:
Create an OpenSpec change proposal for adding user profile searchOr use the slash command (if supported by your tool):
/openspec:proposal Add user profile searchThe AI will scaffold:
proposal.md- Why and what changestasks.md- Implementation checklistspecs/- Requirement deltas
Verify the Change
Section titled “Verify the Change”openspec list # See active changesopenspec validate my-change # Check spec formattingopenspec show my-change # Review detailsImplement and Archive
Section titled “Implement and Archive”Once specs are approved, implement the tasks:
/openspec:apply my-changeAfter deployment, archive:
openspec archive my-change --yesNext Steps
Section titled “Next Steps”- Read about the workflow to understand the three-stage process
- Learn about specs and changes
- Explore the CLI reference