Install
openclaw skills install spec-kitUse GitHub Spec Kit for Spec-Driven Development. Initialize projects, create specifications, and build software using the /speckit.* slash commands. Supports Claude Code, GitHub Copilot, Gemini CLI, and Codebuddy.
openclaw skills install spec-kitBuild high-quality software faster using Spec-Driven Development (SDD). Specifications become executable artifacts that generate working implementations, not just documentation.
Homepage: https://github.github.com/spec-kit/
GitHub: https://github.com/github/spec-kit
SDD flips traditional software development:
| Traditional | Spec-Driven |
|---|---|
| Specs are scaffolding → discarded | Specs are executable → generate code |
| Code is king | Intent is king |
| One-shot prompts | Multi-step refinement |
| Focus on "how" | Focus on "what" and "why" |
Core Philosophy:
# Create new project directory
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>
# Initialize in current directory
uvx --from git+https://github.com/github/spec-kit.git specify init .
uvx --from git+https://github.com/github/spec-kit.git specify init --here
# Proactively set AI agent during init
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai claude
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai gemini
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai copilot
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai codebuddy
Auto-selected by OS, or force explicitly:
# Force PowerShell (Windows)
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --script ps
# Force POSIX shell (Linux/macOS)
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --script sh
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai claude --ignore-agent-tools
Run specify init to create project structure with templates.
uvx --from git+https://github.com/github/spec-kit.git specify init my-app --ai claude
Creates:
.speckit/ directory with configurationEstablish core rules and principles for your project.
Slash Command:
/speckit.constitution This project follows a "Library-First" approach.
All features must be implemented as standalone libraries first.
We use TDD strictly. We prefer functional programming patterns.
Purpose: Sets guardrails and organizational principles that all specs must follow.
Describe what you want to build, not how.
Slash Command:
/speckit.specify Build an application that can help me organize my photos
in separate photo albums. Albums are grouped by date and can be re-organized
by dragging and dropping on the main page. Albums are never in other nested
albums. Within each album, photos are previewed in a tile-like interface.
Best Practices:
Identify and resolve ambiguities in your specification.
Slash Command:
/speckit.clarify Focus on security implications and edge cases
What it does:
Generate detailed implementation plan from specification.
Slash Command:
/speckit.plan
Output:
Execute the implementation plan.
Slash Command:
/speckit.build
Features:
Spec Kit automatically detects the active feature based on your current Git branch.
Naming Convention:
001-feature-name
002-user-authentication
003-photo-album-grid
To switch between specifications:
git checkout 001-feature-name # Work on feature 1
git checkout 002-user-auth # Work on feature 2
Context is automatically loaded when you run Spec Kit commands.
Focus: Generate from scratch
Focus: Parallel implementations
Focus: Modernization
| Command | Purpose | When to Use |
|---|---|---|
/speckit.constitution | Define project principles | At project start |
/speckit.specify | Create specification | For each new feature |
/speckit.clarify | Resolve ambiguities | When spec is vague |
/speckit.plan | Generate implementation plan | Before coding |
/speckit.build | Execute implementation | After planning |
Spec Kit works with:
git clone https://github.com/github/spec-kit.git
cd spec-kit
# Fastest feedback - no install needed
python -m src.specify_cli --help
python -m src.specify_cli init demo-project --ai claude --script sh
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1
uv pip install -e .
specify --help
# Push branch first
git push origin your-feature-branch
# Test via uvx
uvx --from git+https://github.com/github/spec-kit.git@your-feature-branch \
specify init demo-branch-test --script ps
✅ DO:
❌ DON'T:
/speckit.specify Build a task management app where:
- Users can create projects with color-coded labels
- Tasks have priorities (High/Medium/Low) with visual indicators
- Drag-and-drop to reorder tasks within a project
- Tasks can be assigned to multiple users
- Due dates trigger notifications 24h before
- Completed tasks archive automatically after 7 days
- Mobile-responsive with touch-friendly interactions
/speckit.specify Build a React app with Redux for state management.
Use Material-UI for components. Store data in PostgreSQL.
Problem: AI agent doesn't recognize /speckit.* commands
Solution: Re-run specify init in the project directory
Problem: Working on wrong specification
Solution: Check current branch with git branch and switch: git checkout <branch>
Problem: PowerShell scripts on macOS or vice versa
Solution: Force script type: --script sh or --script ps
Problem: Spec Kit complains about missing AI agent tools
Solution: Use --ignore-agent-tools flag during init
# 1. Create feature branch
git checkout -b 004-dark-mode
# 2. In AI agent chat:
/speckit.specify Add dark mode toggle to the application.
System should detect OS preference but allow manual override.
Store preference in localStorage.
# 3. Clarify ambiguities:
/speckit.clarify Focus on accessibility (WCAG contrast)
# 4. Generate plan:
/speckit.plan
# 5. Build:
/speckit.build
# 6. Commit and PR
git add .
git commit -m "feat: add dark mode toggle"
# 1. Switch to existing feature
git checkout 002-user-auth
# 2. Enhance spec:
/speckit.specify Add OAuth2 login with Google and GitHub providers
# 3. Plan the enhancement:
/speckit.plan
# 4. Build iteratively:
/speckit.build
Last updated: 2026-02-28