/sdd:scaffoldfrom sdd
Materializes the greenfield project skeleton from survey's foundation plan. Reads architecture-map.md and scaffold tasks.json to build folders, entry point, test harness, smoke test, migration tooling, CI, and conventions doc. Runs sequentially anchored on skeleton smoke test (build, boot, test, migrate). Hard-refuses without prior survey.
Ships in sdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The materialization step between survey's greenfield foundation and the first feature. survey
fixes the foundation (stack / structure / conventions in docs/architecture-map.md, marked
mode: greenfield-bootstrap) and emits the scaffold plan (docs/features/_scaffold/tasks.json,
tasks S1–S5 per ../survey/references/foundation.md);
scaffold turns that plan into a repo that builds, boots, tests and migrates — then the normal
per-feature flow (specify → … → implement) builds into it. This skill exists so the greenfield
handoff is a real gate, not a wave of the hand: _scaffold is not a feature (no .size, no
.route, no ACs), so it never enters implement's engine or its team/workflow decision tree.
The skeleton smoke test is the TDD anchor (canonical here). Scaffold tasks have no feature ACs, so red→green anchors on the structural smoke test: RED = the project does not build / boot / the tooling doesn't run; GREEN = build + boot + the empty test suite + the migration tool all succeed. That keeps the discipline meaningful for structural work — no per-folder TDD theatre.
Architect / Tech Lead — the same person who fixed the foundation in survey.
docs/architecture-map.md with mode: greenfield-bootstrap — the decided stack, module
structure, conventions, and the machine keys (build_cmd, test_cmd, lint_cmd,
migration_tool, frontend).docs/features/_scaffold/tasks.json — the S1–S5 scaffold plan (layer: scaffold, slug: "_scaffold").docs/architecture-map.md whose frontmatter says
mode: greenfield-bootstrap, AND docs/features/_scaffold/tasks.json parsing as the scaffold
contract (slug: "_scaffold", layer: scaffold tasks with id/title/deps/dod/files_hint).
Either missing → refuse: «run survey first — its greenfield session fixes the foundation and
emits the scaffold plan». A map without the greenfield marker means the repo is already real —
refuse too and point at /sdd:specify <slug>. If the skeleton already exists (every S-task's
output present and the smoke test green), say so and STOP — nothing to materialize..claude/sdd.local.md is
absent, create it now from the canonical template — documented defaults + the self-documenting
body — and patch .gitignore; if it exists, read it and never overwrite. The one procedure
lives in ../_shared/settings-file.md. Creating is
unconditional; changing values is only ever offered by config. Say
one line: «.claude/sdd.local.md created with documented defaults — /sdd:config to tune it».
Then read the foundation. From the map: stack, folder/module structure, conventions catalog, the
machine keys. From tasks.json: the S-tasks in dependency order. The map is the only source
of decisions — scaffold never re-litigates stack/style choices (that was survey's session).implement decision tree: _scaffold
has no .size/.route, and five structural tasks need no orchestration. Per task: create the
files its files_hint names, to the map's conventions; verify its dod; record it done. A task
that genuinely doesn't apply (e.g. no datastore → the migration task) is explicitly dropped
with a stated reason — never silently skipped.build_cmd / test_cmd / lint_cmd / migration_tool), update the map —
implement's command-detection cascade reads these keys; stale keys poison every later feature.../_shared/self-check.md, before
any commit: verify 4 items: (1) the smoke test was actually executed and is green (build +
boot + empty suite + migration tool — command output in hand, not assumed); (2) every S-task is
done or explicitly dropped with a reason; (3) the map's machine keys match the commands that just
ran (updated if they diverged); (4) every file the S-tasks' files_hint names exists on disk and
is not gitignored. Fix + re-check ≤2 cycles; surface anything unresolved — an unresolved item
means no commits.../_shared/write-and-commit.md — the skeleton
is one indivisible commit (scaffold: materialize skeleton, paths = the materialized files +
the settings .gitignore patch); the map, if step 5 changed it, is a separate commit
(scaffold: architecture-map.md machine keys).../_shared/handoff.md —
What I did (tasks materialized, smoke-test result, «self-check: 4/4 pass», the commits with short SHAs) + Review before
continuing (the committed skeleton diff + docs/architecture-map.md) + Run next: /clear,
then /sdd:specify <slug> — the first real feature, with a real repo to build into.docs/features/_scaffold/tasks.json is materialized (or explicitly dropped
with a reason), to the conventions the map fixes._scaffold
is repo-level bootstrap, not a feature; sequential inline is the design, not a fallback.survey's session); scaffold materializes, it never re-litigates. A gap in the map goes back to
survey, not into an improvised decision here._scaffold as a feature. No .size/.route, no spec, no ACs — it never enters the
per-feature pipeline or its size/route machinery.What SKILL.md sets; muted values are Claude Code's defaults
inheritmediumnpx claudepluginhub genkovich/sdd --plugin sdd23 skills in this plugin
/apiUse to derive the API contract for a feature — an OpenAPI 3.1 document at docs/features/{slug}/contracts/openapi.yaml plus a drift/sync report (and an events doc when the feature has async flows). Triggers on "api for {slug}", "openapi for {slug}", "API contract for {slug}", "lock the interface for {slug}", "events for {slug}", "/sdd:api {slug}", "контракт API для {slug}", "OpenAPI для {slug}", "опиши ендпоінти". The contract is never hand-written: it is a derived function of data-model.md (typed fields + constraints), the sad.md §6 sequence diagrams (error branches, async actors), and spec.md acceptance criteria. Runs an inline drift check (does the contract match the model and the sequences?) and a reconcile mode. Hard-refuse if data-model.md is missing AND the feature changes the schema → run `data-model {slug}` first; on a legal no-schema-change skip it derives from the existing schema instead.
/clarifyUse to run an ambiguity sweep over a written spec.md and close every under-specified point before planning or design proceeds — so two engineers can't reasonably build different things from the same spec. Triggers on "clarify {slug}", "find ambiguities in {slug}", "is the spec ready", "sharpen the spec", "/sdd:clarify {slug}", "прояснити специфікацію", "знайди неоднозначності {slug}", "чи готова специфікація". Re-reads the spec, dispatches a clean-context devil's-advocate subagent to list where the spec forks, then for each ambiguity runs AskUserQuestion to RESOLVE it (tighten §1/§5/§6 in place) or DEFER it (→ §8 Open questions with owner+due). Output: an updated docs/features/{slug}/spec.md with every ambiguity resolved or deferred — none dangling. Hard-refuse if spec.md is missing.
/classify-sizeUse to classify a feature into XS/S/M/L/XL and write docs/features/{slug}/.size plus the pipeline route docs/features/{slug}/.route (quick|standard|full) so later skills know how much of each artifact to produce and how handoffs resolve skips. Triggers on "classify size", "feature size", "is this XS or M for {slug}", "size {slug}", "change route", "/sdd:classify-size {slug}", "класифікуй розмір {slug}", "який розмір фічі", "XS чи M". Asks four AskUserQuestion (PR count / time / new module-API-migration / breaking changes), maps to a size class via the shared size matrix, derives the default route (XS/S→quick, M→standard, L/XL→full), confirms size + route in ONE question, and writes the one-line .size and .route files — the source of truth; the feature_size: frontmatter mirrors in spec.md and sad.md are re-synced to it on every (re)classification.
/configUse to create and tune the per-project settings file `.claude/sdd.local.md` — the one place that decides how deeply the pipeline interviews you, which model tier its judgment agents run at, how strict the TDD gates are, how tasks execute and commit, and what language your documents are written in. Triggers on "config", "settings", "configure sdd", "tune the pipeline", "change the judgment model", "set the interview depth", "write documents in Ukrainian", "/sdd:config", "налаштування", "налаштуй sdd", "зміни модель", "глибина опитування", "мова документів". Creates the file with documented defaults FIRST (so you have a working config before answering anything), reads what already differs from the defaults, then asks six grouped questions and patches only the keys you confirm — preserving your comments, key order and unknown keys. Never touches the pipeline's artifacts; the settings file is gitignored, only the .gitignore patch is committed.
/data-modelUse to design the data model AND generate the actual forward + rollback migrations in one pass — shippable SQL, not a plan. Triggers on "data model for {slug}", "schema for {slug}", "generate migrations for {slug}", "DB design + migration", "/sdd:data-model {slug}", "модель даних для {slug}", "схема для {slug}", "згенеруй міграції". Reads spec.md §5 + sad.md §5 building blocks + the §6 sequence diagrams, then writes docs/features/{slug}/data-model.md plus paired *.up.sql / *.down.sql migrations STAGED under docs/features/{slug}/migrations/ (NOT the live migrations/ tree — implement promotes them when the feature is actually built) and an audit report. Greenfield-first; brownfield delta via --mode brownfield; drift-only via --drift-only. Hard-refuses if spec.md or sad.md is missing. Stack-agnostic: detects and FOLLOWS the repo's DB + migration conventions and domain layer — it imposes no DB philosophy and writes no rules file.
/decide-adrUse to record a post-hoc or asynchronous architecture decision as a MADR ADR when it was NOT captured during the synchronous design pass — a choice made in code, in a chat, on a whiteboard, or one a tasks/review gate flagged as missing. Triggers on "ADR for {decision}", "adr for {slug}", "document the decision on {topic}", "lock in the decision about {X}", "MADR for {topic}", "/sdd:decide-adr {slug} {title}", "створи ADR для рішення", "задокументуй рішення", "ADR на {тему}". Confirms the decision is ADR-worthy via the blast-radius gate, picks the next 4-digit number, copies design's MADR template, and fills context / drivers / considered options / outcome / honest consequences. Supports a Proposed → Accepted review flow. Output: docs/features/{slug}/adr/NNNN-{title}.md. For decisions made live with the user, use `design` — it spawns ADRs inline (Accepted).
2 plugins ship this exact skill · first indexed Oct 14, 2026
Other plugins' skills for the same job