with one click
init
Initialize SDP in a new or existing project
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Initialize SDP in a new or existing project
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | init |
| description | Initialize SDP in a new or existing project |
| version | 1.0.0 |
| changes | [{"Initial release":"project detection, config scaffolding, harness setup"}] |
Initialize SDP (Spec-Driven Protocol) in the current project directory.
When user invokes @init or sdp init:
Auto-detect project characteristics:
# Detect language
if [ -f "go.mod" ]; then LANG="go"
elif [ -f "pyproject.toml" ] || [ -f "requirements.txt" ]; then LANG="python"
elif [ -f "pom.xml" ] || [ -f "build.gradle" ]; then LANG="java"
elif [ -f "package.json" ]; then LANG="nodejs"
elif [ -f "Cargo.toml" ]; then LANG="rust"
else LANG="unknown"
fi
# Detect framework (language-specific)
# Detect existing SDP artifacts
Create the following (skip existing):
docs/
roadmap/ROADMAP.md # Feature roadmap
workstreams/ # Workstream tracking
drafts/ # Discovery drafts
.sdp/ # SDP internal state
checkpoints/
AGENTS.md # Agent instructions (harness-neutral)
For each selected harness, create appropriate config:
.claude/settings.json (hooks), .claude/commands/ (slash commands).codex/ with symlinks to prompts/skills/.cursor/ with .cursorrules and skill symlinks.opencode/opencode.json with agent cardsAll harness configs point to the same canonical source: prompts/skills/ and prompts/agents/.
Based on detected language, set up appropriate quality gate commands:
| Language | Build | Test | Lint |
|---|---|---|---|
| Go | go build ./... | go test ./... | go vet ./... |
| Python | pip install . | pytest | ruff check . |
| Node.js | npm run build | npm test | npm run lint |
| Rust | cargo build | cargo test | cargo clippy |
| Java | mvn compile | mvn test | mvn checkstyle:check |
Write the detected gates into AGENTS.md.
If beads selected:
bd init
sdp health passes| Flag | Description |
|---|---|
--auto | Skip all questions, accept defaults from detection |
--lang <lang> | Force specific language |
--harness <list> | Comma-separated list of harnesses to configure |
SDP initialized: {project_name}
Language: {detected}
Harnesses: {configured list}
Quality gates: {build}, {test}, {lint}
Issue tracker: {selected}
Next steps:
@vision "your product idea" # Start from scratch
@reality --quick # Analyze existing codebase
@feature "add X" # Plan a feature
| Symptom | Fix |
|---|---|
| Skill produces no output | Re-run @init with --auto flag to skip prompts; verify you have write permissions in current directory |
| Harness config not created | Check harness CLI is installed; re-run @init --harness <name> for missing harness |
| "bd init fails" | Verify beads CLI installed (bd --version); run bd init manually |
| Quality gates not detected | Manually specify: @init --lang <lang> |
Execute ONE executable leaf workstream with TDD, guard enforcement, and ws-verdict output
Multi-agent quality review (QA + Security + DevOps + SRE + TechLead + Documentation + PromptOps)
Execute ONE executable leaf workstream with TDD, guard enforcement, and ws-verdict output
Multi-agent quality review (QA + Security + DevOps + SRE + TechLead + Documentation + PromptOps)
Software architect for system boundaries, design patterns, and integration tradeoffs.
Beads task tracker integration for SDP workflows.