sdd init
Initializes a project with SDD Tool.
Usage
bash
sdd init [options]Options
| Option | Description |
|---|---|
-f, --force | Overwrite existing configuration |
--skip-git-setup | Skip Git/CI-CD setup |
--auto-approve | Auto-approve all settings |
Generated Files
your-project/
├── .sdd/
│ ├── constitution.md # Project constitution template
│ ├── AGENTS.md # AI workflow guide
│ ├── specs/ # Feature specs directory
│ ├── changes/ # Change proposals directory
│ ├── archive/ # Completed changes archive
│ └── templates/ # Spec templates
│
└── .claude/
└── commands/ # Slash commands (20 total)
├── sdd.start.md
├── sdd.spec.md
├── sdd.plan.md
└── ...Git Workflow Setup
After initialization, the tool analyzes your project structure and suggests Git workflow settings:
- Git Hooks Installation: Automatic spec validation on commit/push
- Commit Template Installation: Consistent commit message format
- GitHub Actions Setup: Automatic validation and labeling on PRs
Each setting is executed after user approval.
Examples
Basic Initialization (Interactive)
bash
sdd initExample output:
Initializing SDD project...
✓ SDD project initialized.
🔍 Analyzing project structure...
=== Project Analysis Results ===
📁 Project Type:
TypeScript (Node.js)
🔧 Git Status:
Repository: ✅ Initialized
Hooks: ❌ Not installed
Commit Template: ❌ None
🚀 CI/CD Status:
GitHub Actions: ❌ Not configured
📋 Recommended Settings:
• Git Hooks: Automatic spec validation on commit/push
• Commit Template: Consistent commit message format
• GitHub Actions: Automatic validation and labeling on PRs
Install Git workflow (Hooks + Template)? (y/n): y
✓ Git workflow installation complete!
Set up GitHub Actions CI/CD? (y/n): y
✓ sdd-validate.yml created
✓ sdd-labeler.yml createdAuto-Approve (for CI/Scripts)
bash
sdd init --auto-approveAll settings are applied automatically without prompts.
Skip Git Setup
bash
sdd init --skip-git-setupInitializes only the SDD structure, skipping Git/CI-CD setup.
Overwrite Existing Configuration
bash
sdd init --forceAfter Initialization
- Run Claude Code:
claude - Start the workflow:
/sdd.start
Related Documentation
- sdd git - Git workflow setup
- sdd cicd - CI/CD pipeline setup
- Commit Convention
- CI/CD Setup Guide