一键导入
sdd-init
SDD — Spec-Driven Development: scaffold .sdd/ folder (principles, decisions) for a project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
SDD — Spec-Driven Development: scaffold .sdd/ folder (principles, decisions) for a project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sdd:init |
| description | SDD — Spec-Driven Development: scaffold .sdd/ folder (principles, decisions) for a project. |
Check the project root (cwd) for:
.sdd.json (existing JSON workflow config).sdd/principles.md.sdd/decisions/ directoryBuild a list of artifacts to create (only those that don't exist). If the list is empty, output ✓ .sdd/ already initialized and stop.
Present via AskUserQuestion:
AskUserQuestion.For each confirmed artifact:
.sdd/principles.md: copy lib/templates/principles.md, no variable substitution..sdd/decisions/: create directory + .gitkeep (empty file) so git tracks the empty folder..sdd.json: only create if completely absent. Write a minimal default:
{
"specsDir": "specs",
"commitFormat": "conventional",
"noAttribution": true
}
Never overwrite existing files. If a file exists, skip it (idempotent).
✓ SDD project initialized
Created:
.sdd/principles.md — edit to add your project's MUSTs
.sdd/decisions/.gitkeep — ADR storage (use /sdd:adr <slug> to create)
.sdd.json — workflow config
Next: edit .sdd/principles.md and run /sdd:specify to start your first feature.
SDD — Spec-Driven Development: detect code that drifted from .specs/<domain>/spec.md (changed without spec update).
SDD — Spec-Driven Development: execute tasks, run checkpoints, commit and open PR.
SDD — Spec-Driven Development: write a lean implementation plan.
SDD — Spec-Driven Development: write a lean spec for rapid iteration.
SDD — Spec-Driven Development: scaffold a new Architectural Decision Record.
SDD — Spec-Driven Development: generate a lean phased task list.