cadasto/sdd-plugin/sdd-scaffold
Claude Code and agent skill by cadasto/sdd-plugin
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "set up SDD", "initialize spec-driven development", "scaffold the docs tree", "add SDD structure to this repo", "upgrade the SDD scaffold", or "re-vendor sdd-check". Creates the docs/ tree, the .sdd.yaml descriptor, AGENTS.md, the process docs and the vendored gate, idempotently, on the formal or informative profile; --upgrade tops up an older scaffold. Not for authoring documents (sdd-specify) or a drift scan (sdd-trace).
Install
npx vskill@latest install cadasto/sdd-plugin/sdd-scaffoldSKILL.md
The same SKILL.md was published earlier as cadasto/sdd-plugin/sdd-scaffold.
Scaffold an SDD repository
The plugin root is the folder that holds this skill'sskills/folder (${CLAUDE_PLUGIN_ROOT}on Claude Code): take it from this file's own path,\turned into/, and never search the disk for it;tools/…resolves from it.
Lay down the docs/ tree, the descriptor, the governed AGENTS.md, the process docs and the gate. Idempotent: fill gaps; never overwrite a file that has content.
Steps
- Detect, then route — the first match wins. Glob for
docs/.sdd.yaml,docs/requirements/,docs/specifications/,AGENTS.md, and Grep the descriptor for^\s*check:.
- No descriptor → a fresh run of steps 2–6, even with
--upgrade(say so: there is nothing to top up). - `--upgrade` given, or a descriptor with no `check:` block (it predates the gate) → `--upgrade` below instead of steps 2–6; without the flag, open the report with
no check: block in docs/.sdd.yaml — ran --upgrade. - A descriptor with a `check:` block → a top-up of steps 2–6: create only what is missing and report what was skipped.
- Establish conventions in
docs/.sdd.yaml:
profile— ask unless given (AskUserQuestionwhere available), with one sentence on each from methodology §1a. On informative, ask onlybuild_entrypoint,ci_target,spec_check_targetandground_truthbelow.forge— leaveauto(from the remote URL) unless the maintainer namesgithub,azure-devopsornone.req_style—area-prefixed(REQ-AUTH-001, a capability map; recommend for products) orflat-numeric(REQ-050; recommend for libraries). Ask if unspecified.- Ask for
req_areasandexcluded_areas(area-prefixed only),build_entrypoint,ci_target,spec_check_target,use_probes,use_strands,upstream, andground_truth(the source for domain facts). doc_kinds,default_modeand thecheck:/hooks:blocks are copied from the template as they are.
A descriptor with no agents: block gains that block from the template, and no other key changes.
- Create the missing tree:
`` CHANGELOG.md docs/ .sdd.yaml development-process.md ai-workflow.md ci.md requirements/ (README.md) specifications/ (README.md, traceability.yaml) adr/ (README.md) ` From [templates/](../../references/templates/): sdd.yaml → docs/.sdd.yaml; requirement.md, specification.md and adr.md → a _template.md in each kind's folder; the starter traceability.yaml; the three index READMEs (requirements-README.md, specifications-README.md, adr-README.md); development-process.md, ai-workflow.md, ci.md. Fill their <build_entrypoint>, <ci_target> and <spec_check_target> from the descriptor. Write the block of development-process.md § The PR body to .github/PULL_REQUEST_TEMPLATE.md when no pull-request template exists in any case under .github/, docs/, the root, .azuredevops/ or .vsts/`.
Informative: write docs/architecture.md from constitution.md when absent; no requirements/ directory and no traceability map; the descriptor carries profile: informative, paths.constitution and forge: auto. On both profiles emit no plan template, no docs/plans/, no docs/.sdd/.
3b. Vendor the gate. Copy the plugin's tools/sdd-check.py to check.script (default scripts/sdd-check.py), creating parents, and chmod +x it. Write its version — python3 <check.script> --version on Python 3.11+, else the __version__ = "…" line — into check.version (sdd-check.md § Vendoring).
3c. Starter changelog. If check.changelog.path (default CHANGELOG.md) does not exist, write exactly a # Changelog heading and an empty ## [Unreleased] section.
3d. Ignore the scratch folder. If .gitignore has neither a /.sdd/ nor a .sdd/ line, append /.sdd/ (creating the file) and report it.
- Write the governed entry point. With no
AGENTS.md, copy the template, drop its leading<!-- Template: … -->comment, and fill the identity and tooling placeholders from the descriptor; with one, report the SDD sections to merge and offer to add them. Fill the descriptor'sagents:block. Suggestreviewersandworker_skillsfrom the build manifests:go.modsuggests the block map"**/*.go","**/go.mod"→go-coding:go-reviewerand[go-coding:go-coding], written once the maintainer confirms that plugin is installed; for other manifests, ask for the repository's own reviewer, or leave the list empty (the per-task gate then reports itself unconfigured). Nothing dispatches an agent the descriptor does not name. Fill the code-index line indocs/ai-workflow.md§ Orchestration (nonewhen there is no index tool). - Wire the build gate. Unless
<spec_check_target>already runs<check.script>and<ci_target>runs it, wire them:<spec_check_target>runningpython3 <check.script> selftest && python3 <check.script> check, wired into<ci_target>— make: aspec-checkrule amongci's prerequisites; task: a task whosecmds:run both, inci'sdeps:; just: a recipe thecirecipe depends on; npm: a"spec-check"script the"ci"script runs withnpm run spec-check. Propose the diff; never silently rewrite an existing build file.
5b. Generate, then check. Run python3 <check.script> generate --root . and then check --root ., and read the output. Informative: both pass with the map families skipped. Formal: the starter map has no records, so both exit 1 on map-schema by design, and generate still writes the specifications and ADR indexes (sdd-check.md). Without Python 3.11+, skip both and say so.
- Report created and skipped paths, the vendored version, and step 5b's output. When
checkfailed only on the empty starter map, say that is the expected first state and name/sdd-specifynext. On a top-up, when the plugin's tool is newer thancheck.versionor the descriptor lacks a template key, name/sdd-scaffold --upgradenext.
--upgrade — top up an existing repository
Follow scaffold-upgrade.md in order. Touch no existing key or document body except what it proposes and the maintainer confirms; report what changed.
Guardrails
- Adopt incrementally: step 3's tree is enough to start; don't force
analysis/oroperations/. A committed plan carrieskind: plan. - A repository that ships its own gate keeps it until `sdd-check` covers what it checks; run both meanwhile.
Reference
- templates/ — every file this skill emits.
- traceability-schema.md — the
.sdd.yamlandtraceability.yamlschemas, thecheck:block included.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sdd-scaffold/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cadasto/sdd-plugin/sdd-scaffold)