skills/sdd-init/SKILL.md
Initialize SDD (Spec-Driven Development) in the current project. Deploys rules, templates, skills, and project configuration from user-level SDD resources.
npx skillsauth add qlawmarq/dotfiles-common sdd-initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<background_information>
docs/settings/, docs/steering/, docs/tasks/)docs/settings/.claude/skills/sdd-*/ and/or .agents/skills/sdd-*/docs/steering/</background_information>
<instructions>This skill expects:
--lang=<code> — ISO 639-1 language code (default: ja)--target=claude|agents|all — Target platform(s) for deployment
claude: Deploy to .claude/skills/ and update CLAUDE.mdagents: Deploy to .agents/skills/ and update AGENTS.mdall: Deploy to both platforms--force — Skip confirmation prompt when SDD is already initialized (defaults to Update mode)If inputs were provided with this skill invocation, use them directly.
Otherwise, use the default language (ja).
SDD resources are stored alongside this skill file. Resolve the skill directory (SKILL_DIR) using the first match:
${CLAUDE_SKILL_DIR} (Claude Code - auto-resolved)~/.claude/skills/sdd-init (Claude Code fallback)~/.agents/skills/sdd-init (Codex CLI / Gemini CLI)Derive from SKILL_DIR:
SRC="${SKILL_DIR}/references" — Rules, templates, and AGENTS.md templateSKILLS_SRC="${SRC}/skills" — Bundled skill directories (spec-init/, spec-design/, etc.)Validate: ${SRC}/rules/ and ${SRC}/templates/ must exist. ${SKILLS_SRC}/spec-init/SKILL.md must exist.
All mechanical file operations are handled by sdd-init.sh located alongside this SKILL.md at ${SKILL_DIR}/sdd-init.sh. This script:
init.json language fieldRun a single Bash command to gather all pre-flight information:
echo "git_root=$([ -d .git ] && echo yes || echo no) sdd_exists=$([ -d docs/settings ] && echo yes || echo no)"
Process results:
git_root=no: Stop with error — "SDD initialization must be run from the git repository root."sdd_exists=yes AND --force not set: Ask the user how to proceed:
docs/steering/ and docs/tasks/.docs/tasks/.sdd_exists=yes AND --force set: Proceed with Update mode silently.sdd_exists=no: Proceed with fresh initialization.If --target was NOT provided as an argument:
claude): .claude/skills/ + CLAUDE.mdagents): .agents/skills/ + AGENTS.md — for Codex CLI / Gemini CLIall): Both platformsTARGETResolve paths and run the helper script in a single Bash call:
SKILL_DIR="<resolved_skill_dir>"
SRC="${SKILL_DIR}/references"
SKILLS_SRC="<resolved_skills_src>"
bash "${SKILL_DIR}/sdd-init.sh" \
--lang=<code> \
--target=<target> \
--mode=<fresh|update|full> \
--src="$SRC" \
--skills-src="$SKILLS_SRC"
The script outputs a structured report between ===SDD_INIT_REPORT=== and ===END_REPORT=== markers.
Parse the structured report and generate a summary. Do NOT use Read or Edit tools — all information is in the script output.
docs/tasks/ (preserves existing specifications)sdd-init.sh in Step 2Provide output in the language derived from --lang:
rules_count files deployedtemplates_count files deployedskills_count skills deployed (to target platform(s))steering_created / steering_skippedclaude_md status (created / updated / appended / skipped)agents_md status (created / updated / appended / skipped)lang_name (lang_code)claude_gitignored: ".claude/ is excluded by .gitignore. Project-level SDD skills will not be version controlled."agents_gitignored: ".agents/ is excluded by .gitignore. Project-level SDD skills will not be version controlled."marker_warning: "Inconsistent SDD markers detected. A new section was appended."errors field/sdd-steering to generate project steering from codebase analysis/sdd-steering-custom to add domain-specific steering (optional)/sdd-plan "product goal" to decompose it into right-sized specs/sdd-spec-init "description" to start your first specificationFormat: Concise Markdown, under 300 words
Not in Git Repository Root:
.git/."Existing SDD Setup Detected (without --force):
fresh: All operations create new (default for new projects)update: Overwrite rules, templates, skills. Create only missing steering stubs.full: All operations overwrite (except docs/tasks/)Helper Script Failure:
errors field in the report for partial failuresCLAUDE.md / AGENTS.md Marker Inconsistency:
marker_warningSource Files Not Found:
development
Interactive requirements quality review and validation. Detects gold-plating (unrequested features), ambiguity, and scope creep before they propagate.
development
Plan and decompose a LARGE-SCALE software effort into multiple right-sized SDD specs. This is the AI-DLC Inception layer that sits ABOVE individual specs: it turns a whole product, a 0->1 greenfield build, or the scale-up of an existing prototype into an ordered roadmap of independently-shippable Units of Work, then scaffolds one SDD spec per unit. Make sure to use this skill whenever the user wants to plan a new app or product from scratch, break a big/ambiguous project into pieces, build an MVP roadmap, figure out "where do I even start", turn a prototype into a real product, or do anything too large to fit comfortably in a single feature spec. Prefer this over /sdd-spec-init when the scope is a whole product or several features rather than one focused feature.
tools
文章を指定した言語に翻訳。 ブログ記事やドキュメントを自然で高品質な翻訳に変換します。 フロントマター処理、専門用語の検証も行います。
tools
ブログコンテンツの品質をレビュー。 SEO最適化、文法・表現、コンテンツ品質、正確性・信頼性を 包括的にチェックし、改善提案を行います。