Create a specification-driven development model to achieve semi-automated coding with LLMs while preserving quality and security.
SDD is a methodology for AI-assisted software development that uses formal specifications to orchestrate human architects and AI agents in an "Assembly Line" model:
- Human Architect - Defines strategic vision and requirements
- AI Agents - Handle research, security, implementation, and validation
- Claude Code Integration - Native slash commands and sub-agents
- Quality Gates - Only validated work proceeds to the next stage
- Claude Code - Install from claude.ai/code
- Bash 4.0+ and curl for installation
Choose one method:
Method 1: One-line install (Recommended)
curl -sSL https://raw.githubusercontent.com/kpiteira/spec-driven-development/main/remote-install.sh | bashMethod 2: Secure install (Review scripts before execution)
curl -sSL https://raw.githubusercontent.com/kpiteira/spec-driven-development/main/remote-install.sh -o install-sdd.sh
# Review the script contents for security
cat install-sdd.sh
# Run installation after review
bash install-sdd.shMethod 3: Git clone
git clone https://github.com/kpiteira/spec-driven-development.git
cd spec-driven-development
./install.sh# Check templates
ls ~/.sdd/templates/
# Should show: 6 template files
# Check Claude Code commands
ls ~/.claude/commands/init_*
# Should show: init_greenfield.md
# Test in Claude Code
claude
/help # Should show SDD commands-
Create project directory
mkdir my-awesome-project cd my-awesome-project claude -
Initialize with SDD
/init_greenfield "My Awesome Project" -
Follow the guided workflow - Claude will help you create:
- Project Vision (
specs/0_Project_Vision.md) - Requirements (
specs/1_Product_Requirements.md) - Architecture (
specs/2_Architecture.md) - Roadmap (
specs/3_Roadmap.md)
- Project Vision (
-
Plan your first milestone
/plan_milestone M1
Project/
├── specs/
│ ├── 0_Project_Vision.md # Strategic goals and purpose
│ ├── 1_Product_Requirements.md # What needs to be built
│ ├── 2_Architecture.md # How it will be built
│ ├── 3_Roadmap.md # When it will be built
│ ├── milestones/ # Detailed milestone plans
│ └── tasks/ # Atomic work units
└── .task_bundles/ # Agent workspaces
Each task follows this workflow:
- Bundler Agent - Researches context and prevents hallucination
- Security Consultant - Provides proactive security guidance
- Coder Agent - Implements using TDD principles
- Validator Agent - Ensures quality and completeness
| Command | Purpose | Example |
|---|---|---|
/init_greenfield |
Start new project | /init_greenfield "E-commerce Site" |
/plan_milestone |
Plan milestone execution | /plan_milestone M1-Foundation |
Web Application:
mkdir portfolio-site && cd portfolio-site && claude
/init_greenfield "Professional Portfolio Website"
# Follow guided setup for responsive portfolio with project showcaseAPI Project:
mkdir user-api && cd user-api && claude
/init_greenfield "User Management API"
# Create RESTful API with authentication and documentationMobile App:
mkdir fitness-tracker && cd fitness-tracker && claude
/init_greenfield "Personal Fitness Tracker"
# Build cross-platform mobile app with offline sync- 🚀 Faster Development - AI handles research and boilerplate
- 🛡️ Built-in Security - Security consultant reviews every task
- 📋 Complete Documentation - Specifications stay current with code
- ✅ Quality Assured - TDD and validation gates ensure reliability
- 🔄 Consistent Process - Standardized workflow for all projects
SDD leverages Claude Code's native features:
- Templates (
~/.sdd/templates/) - Global specification templates - Commands (
~/.claude/commands/) - SDD slash commands - Agents (
~/.claude/agents/) - Specialized sub-agents - File-based State - No external dependencies or APIs
Common Issues:
- "Command not found" - Restart Claude Code after installation
- "Permission denied" - Check file permissions, never use
sudo - "Templates missing" - Run installation verification above
For detailed troubleshooting, see TROUBLESHOOTING.md.
Project Structure:
spec-driven-development/
├── install.sh # Local installation script
├── remote-install.sh # Curl-based installation
├── specs/templates/ # Global SDD templates
├── .claude/ # Claude Code integration
│ ├── commands/ # SDD slash commands
│ └── agents/ # SDD sub-agents
├── tests/ # Installation and workflow tests
├── reports/ # Generated test reports (auto-created, not in git)
└── project_sdd_on_claude/ # SDD applied to itself
Running Tests:
# Test installation method comparison (git clone vs curl)
./tests/test-installation.sh
# Test complete user journey from install to first project
./tests/test-end-to-end.sh
# Verify installation security practices and compliance
./tests/verify-installation-security.shNote: Tests generate reports in the
reports/directory. These are transient artifacts and are not committed to git.
- Fork the repository
- Create a feature branch
- Follow SDD methodology for your changes:
- Update relevant specifications first
- Use the task blueprint process
- Ensure all tests pass
- Submit a pull request
[Add your license here]
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: This README + TROUBLESHOOTING.md
Ready to build better software with AI? Start with /init_greenfield today! 🚀