A complete SDD (Specification-Driven Development) toolkit for AI-powered product development with Claude Code and Cursor.
This is a bootstrap/template project, not a product. It provides a standardized SDD workflow, agent swarm, commands, skills, and guardrails that you copy into your real product repositories.
Key Pattern: claude/ → .claude/
claude/— Source templates in this repo (what you copy from).claude/— Destination in your product repo (where you copy to)
Get started in 3 steps:
-
Install Clavix:
npm install -g clavix
-
Copy to your product repo:
# In your product repo root: cp -r /path/to/claude-sdd-bootstrap/claude/ ./.claude/ cp /path/to/claude-sdd-bootstrap/CLAUDE.md ./ cp /path/to/claude-sdd-bootstrap/AGENTS.md ./ cp /path/to/claude-sdd-bootstrap/.mcp.json ./ -
Start building:
# In Claude Code or Cursor: /clavix:product # Create product vision /clavix:prd # Create version PRD /vision:distill # Split vision into agent-consumable domain files /orchestrate .ops/build/v0/ # Planning + specs for entire build /orchestrate .ops/build/v0/<feature-name>/ # Implement a specific feature
Configure MCP: Add env vars to .env (never commit). See MCP Setup.
Pre-configured for:
| Category | Tools |
|---|---|
| Framework | Next.js (App Router) |
| Styling | Tailwind, shadcn/ui, Headless UI |
| Backend | Supabase (auth + database) |
| Payments | Stripe |
| Auth | Google OAuth |
| Testing | Vitest + Playwright |
| Package Manager | npm |
| Workflow | SDD (Clavix + Agent Swarm) |
Adapt these defaults in CLAUDE.md for your stack.
CLAUDE.md— Auto-loaded every session. Defines stack, security rules, coding standards, architecture boundaries, and SDD artifact flow.AGENTS.md— Agent coordination reference. Defines artifact priority table, agent roles, and orchestration rules.
| Category | Agents |
|---|---|
| Planning & Architecture | architect, spec-writer, project-task-planner |
| Development | fullstack-developer, ui-designer, database-administrator |
| Quality | code-reviewer, qa, test-automator, debugger |
| Security & Compliance | security-engineer, security-auditor, compliance-engineer, compliance-auditor |
| Meta/Orchestration | workflow-orchestrator, context-manager, claude-code-specialist, sdd-specialist |
All agents live in claude/agents/. Orchestration rules defined in swarm-config.md and instructions.md.
Loaded on-demand from claude/skills/:
interface-design— Complex design system workfrontend-design— Simple/one-off page componentsux-states— User experience state modelingsecurity-patterns— Security implementation patternscompliance-patterns— Compliance implementation patternsdb-migration— Database migration workflowsdebugging— Debugging protocols and investigationsdd-protocols— SDD process enforcement
Custom Clavix Command Overrides (claude/commands/clavix/):
product.md—/clavix:productgenerates.ops/product-vision-strategy.mdprd.md—/clavix:prdgenerates.ops/build/v{x}/prd.md
Project-Specific Commands:
| Group | Commands | Purpose |
|---|---|---|
| Interface Design | init, status, extract, audit | UI design system management |
| Quality Gates | check, report | Quality assurance automation |
| Database | plan | Database migration planning |
| Debugging | investigate | Issue investigation |
| Security | review | Security review |
| Spec Management | validate | Spec completeness validation |
| Vision Management | distill | Split product vision into domain files |
| Orchestration | orchestrate | Main swarm entrypoint |
.mcp.json — Pre-configured for standard MCPs: GitHub, Supabase, Sentry, Stripe, Context7, Playwright
All SDD artifacts live in .ops/:
.ops/
├── product-vision-strategy.md # Product vision (canonical)
├── quick-product-vision-strategy.md # Distilled: product context
├── security-compliance-baseline.md # Distilled: security/compliance
├── tech-architecture-baseline.md # Distilled: architecture
├── ui-design-system.md # UI design system (optional)
└── build/
├── system-design.yaml # Architecture reference
└── v{x}/ # Version-scoped builds
├── prd.md # Mini-PRD for version
├── implementation-status.md # Progress tracker
├── db-migration-plan.yaml # DB plan (build-level, if needed)
├── build-order.yaml # Cross-feature build order (if needed)
└── <feature-name>/
├── specs.md # Feature requirements
└── tasks.yaml # Implementation tasks
Clavix is used for the planning phase only — defining vision, writing PRDs, and improving prompts. Implementation is handled by /orchestrate, which triggers the agent swarm.
| Command | Purpose | Output |
|---|---|---|
/clavix:product |
Create product vision | .ops/product-vision-strategy.md |
/clavix:prd |
Create version-scoped PRD | .ops/build/v{x}/prd.md |
/clavix:improve |
Analyze and optimize prompts | .clavix/outputs/prompts/ |
After planning with Clavix, implementation is driven by the /orchestrate command.
Two modes:
Planning mode (creates specs, system-design, tasks):
/orchestrate .ops/build/v{x}/
Runs Tier 1–2 agents (spec-writer, architect, project-task-planner) for the entire build version.
Implementation mode (builds a specific feature):
/orchestrate .ops/build/v{x}/<feature-name>/
Runs Tier 3–6 agents for a single feature that already has specs.md and tasks.yaml.
| Step | Agent/Tool | Output |
|---|---|---|
| 1. Product Vision | You (with Clavix) | .ops/product-vision-strategy.md |
| 2. Version PRD | You (with Clavix) | .ops/build/v{x}/prd.md |
| 3. Feature Specs | spec-writer | .ops/build/v{x}/<feature>/specs.md |
| 4. System Design | architect | .ops/build/system-design.yaml |
| 5. DB Migration Plan | database-administrator | .ops/build/v{x}/db-migration-plan.yaml (if needed) |
| 6. Implementation Tasks | project-task-planner | .ops/build/v{x}/<feature>/tasks.yaml |
| 7. Build Order | workflow-orchestrator | .ops/build/v{x}/build-order.yaml (if needed) |
| 8. Implementation | Development agents | Code changes |
Add environment variables to .env (never commit this file):
# Supabase
SUPABASE_URL=your-supabase-url
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
# GitHub
GITHUB_TOKEN=your-github-token
# Sentry
SENTRY_DSN=your-sentry-dsn
# Stripe
STRIPE_SECRET_KEY=your-stripe-secret-keyVerify .gitignore excludes .env:
echo ".env" >> .gitignoreFor Cursor users:
cp .mcp.json ~/.cursor/mcp.jsonValidate MCP setup (Claude Code):
claude mcp list
claude mcp get supabaseEdit CLAUDE.md to reflect your stack:
## Stack
Your-Framework, Your-Styling, Your-Backend, Your-Auth
Testing: Your-Test-Framework | Package manager: npm | Workflow: SDD (Clavix + Agent Swarm)Add/remove skills, update agent prompts, and customize MCP servers in .mcp.json as needed.
/clavix:product— Create Product Vision/clavix:prd— Create Version PRD/clavix:improve— Analyze and Optimize Prompts
/orchestrate .ops/build/v{x}/— Planning mode (specs, system-design, tasks)/orchestrate .ops/build/v{x}/<feature-name>/— Implementation mode (build specific feature)
Interface Design:
/interface-design:init— Initialize UI design system/interface-design:status— Report UI system state/interface-design:extract— Extract design system from existing UI/interface-design:audit <path>— Audit UI code against design system
Quality Gates:
/gate:check— Run quality checks/gate:report— Generate quality report
Database:
/db:plan— Create database migration plan
Debugging:
/debug:investigate— Investigate issues
Security:
/security:review— Security review
Spec Management:
/spec:validate— Validate spec completeness
Vision Management:
/vision:distill— Split product vision into domain-specific files
This is a bootstrap template. Adapt it to your needs.
For questions or improvements:
- Open an issue in this repository
- Submit a pull request with enhancements
- Share your customizations with the community
- Copy the bootstrap to your product repo
- Run
/clavix:productto create your product vision - Run
/clavix:prdto define your first version - Run
/vision:distillto split vision into agent-consumable domain files - Run
/orchestrate .ops/build/v0/to kick off planning - Run
/orchestrate .ops/build/v0/<feature-name>/to implement features - Iterate and refine your SDD workflow
Happy building with SDD and agent swarms.