/dominicode-sdd-creator:dominicode-sdd-creatorfrom dominicode-sdd-creator
Runs a Spec-Driven Development lifecycle for non-trivial features: creates spec.md, plan.md, and tasks.md before implementation, then guides verification, code review, and PR handoff.
Ships in dominicode-sdd-creator. 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.
Read when SKILL.md points to them.
This skill turns a vague product idea or issue into a complete, evidence-driven SDD lifecycle. Code starts only after Spec → Plan → Tasks, and completion requires verification, review and a final regression gate.
SDD adaptation by Bezael Pérez · Dominicode.
Understand (→ Intent) → Spec → Plan → Tasks → Implement → Verify (Fix → Verify on failure) → Code Review → Final Verify → PR / Handoff.
spec.md, plan.md and tasks.md are the durable sources of truth. Evidence, review and final verification prove those decisions were satisfied; .work/implementation.md is disposable execution scratch.
This lifecycle is how the Contract Based Review Method (CBRM) takes an Issue to a verified PR. You don't trust the agent's code because it looks right; you review it against a contract.
spec.md §3/§4/§6 turned into tasks.md Criterion + Verify + Done when.AGENTS.md (harness, conventions, boundaries), plan.md and each task's Files. If the repo has no lane, recommend dominicode-harness-init before implementation.Full method, mapping and the light-contract rule for small Issues: references/cbrm.md.
Trigger this skill at the start of any non-trivial coding work, even if the user did not say the word "spec". Signals:
Do not trigger for:
specs/<name>/spec.md already exists (read it instead)Look at the conversation so far and classify what the user has given you:
| Level | Signal | Action |
|---|---|---|
| HIGH | Detailed PRD, ticket, doc, or 3+ paragraphs of context | Produce a full draft of the 6 sections + list "Open questions" at the end |
| MEDIUM | 1–2 sentences with clear goal but missing detail | Produce a draft, mark unknowns with [NEEDS CONFIRMATION: ...] inline |
| LOW | Vague request ("quiero hacer una app de X") | Interview the user about the idea first (problem, outcome, constraints), one question at a time, and capture it as intent.md (Step 1.5). Draft the spec only from the accepted intent |
Tell the user which mode you detected and why, in one sentence, before proceeding.
A spec written in a vacuum proposes a stack the project doesn't use and re-decides things already decided. Before choosing a slug, look at what exists — so the spec fits the project it will live in. If you have filesystem access, inspect; if not, ask the user the same questions.
package.json, pyproject.toml, Cargo.toml, go.mod, Gemfile, pom.xml/build.gradle, composer.json, pubspec.yaml, *.csproj) and its dependencies: framework/runtime, DB/ORM, auth, lint/format, and the test runner. These are commitments to respect, not re-open.src/, app/, feature- vs layer-folders), file naming, and whether identifiers/comments are English or Spanish.specs/INDEX.md exists, read its Shared decisions (reuse them) and scan the Specs table for a feature related to this request. If you find one, surface it: "this looks related to <slug> — extend that spec, or start a new one?". If there's no index but specs/<slug>/ folders exist, grep/Glob across specs/**/spec.md as fallback recall.plan.md".This snapshot anchors Section 5 (Architecture) and plan.md §1 on what already exists, and pre-collects the facts that Step 3.5 will confirm rather than re-scan. See references/codebase-inspection.md for what to read per ecosystem and the no-conflicting-stack rule.
Ask for or infer a short kebab-case name (e.g. invoice-generator, user-auth). All artifacts go under specs/<feature-slug>/.
intent.md (LOW context, follow-ups, or when asked)A vague request interviewed straight into six spec sections mixes two jobs: understanding what the person wants and deciding what to build. intent.md keeps the first one on its own, in the originator's words, as a versioned artifact the spec is derived from.
| Context | intent.md |
|---|---|
| LOW | Required. Interview for the idea, write specs/<feature-slug>/intent.md from templates/intent.md, and ask the user to accept it before Step 2 |
| MEDIUM | Optional. Write it only when the problem or the outcome is missing from the request, or when the user asks |
| HIGH | Skip it. The PRD, ticket or Issue already is the intent: add it as an entry in the spec's source list (github_issue, or doc for a PRD or ticket elsewhere or pasted into the chat) |
| Follow-up | Any out-of-scope idea surfaced during implementation or review (see Code Review) becomes a new specs/<new-slug>/intent.md with origin: follow-up |
Rules:
spec.md or carried to its Open questions.status: accepted in the YAML header (the only status field) only after the user says so, and record who and when under Decision. A rejected intent gets status: rejected and keeps its file and its reason, so the idea isn't proposed again from scratch.specs/INDEX.md with status intent until spec.md exists, or rejected if it is turned down.spec.md (the 6 sections)Use the template at templates/spec.md. When an accepted intent.md exists, derive the spec from it: Vision from Problem + Proposed outcome, Users from Affected users, NFRs from Constraints, and its Open questions answered or carried forward. Reference it as a type: intent entry in the source list. When the request comes from a GitHub Issue, preserve its repository, number and URL as a type: github_issue entry in the optional source list (alongside the intent entry when both exist), then copy the accepted requirements into the six sections. A source link never replaces the spec. Fill all 6 sections in order. Strict rules:
User [role]: action 1, action 2, action 3.The user can ... or The system allows .... Organize by module. This is non-negotiable — it forces thinking from behavior, not from code.To be decided with the agent and propose 2–3 reasonable stacks with trade-offs. Don't invent a stack silently.After writing, stop and ask the user to confirm. Do not move to Step 3 without explicit go-ahead.
plan.md (technical decisions)Use the template at templates/plan.md. Translate the spec into technical decisions:
Again, stop and confirm before Step 3.5.
Without a working test runner there is no TDD. Before writing tasks.md, confirm the runner — or that installing one is the first task.
Use the test-runner facts already gathered in the Step 0.5 snapshot (re-inspect only if the snapshot is missing, or ask the user if you have no filesystem access):
package.json → Node, pyproject.toml/requirements.txt → Python, Cargo.toml → Rust, go.mod → Go, Gemfile → Ruby, pom.xml/build.gradle → Java/Kotlin, composer.json → PHP, pubspec.yaml → Dart, *.csproj → .NET.tests/, __tests__/, *.test.*, *_test.go, spec/, etc).cargo test and go test are built-in). Confirm with the user. Setup tasks go in Phase 0 of tasks.md.plan.md § "Final stack → CI / Tests". If it's not, go back and close it before continuing.State the result of the detection to the user in one sentence before proceeding to Step 4 ("Detected pytest in pyproject.toml, using it" / "No runner found — proposing Vitest, please confirm").
See references/test-runner-detection.md for the full matrix per ecosystem, defaults with rationale, and the smoke-test pattern.
No-TDD mode is opt-in by the user and by nobody else. Three conditions, all required:
hazlo rápido, es un prototipo, no hay tiempo, es solo una demo, not from silence, and not from the absence of a runner in the repo. Speed pressure is not a request to drop tests.When all three hold:
plan.md § "Final stack → CI / Tests" — that section gets closed with "no tests, requested by the user on [date]", never left blank.tasks.md (TDD-ordered task list)Branch: in no-TDD mode (case E confirmed), use
templates/tasks-no-tdd.mdand follow Step 4-bis instead. In every other case, continue here — this is the default and the only mode you may choose by yourself.
Use the template at templates/tasks.md. This is where SDD meets TDD. For every feature in Section 3 of the spec, generate tasks in this order:
Each task is a checkbox. Each task has:
TASK-XX ID and short titleVerify instruction and Done when resultNever mark a task done because an agent reports completion. Any task that changes observable behavior, code, configuration or data needs objective evidence. TDD is the default where it adds value; use the most relevant test, lint, typecheck, build, command, query, HTTP, observable or precisely defined manual verification for other work.
Initialize the tasks.md header as Status: Not Started. It becomes In Progress when the first implementation task is actually attempted. Completed is reserved for the final completion gate: all required tasks have PASS evidence, the Coverage Matrix has no orphans, Code Review has no blockers and Final Verification is PASS.
See references/tdd-workflow.md for the full chaining detail and naming conventions.
Before hand-off — fill the coverage matrix. At the end of tasks.md, build the ## Coverage matrix: one row per Section 3 feature → its plan.md contract/entity → the task IDs that build and test it. If any feature has no task, it is an orphan — the task list is not done; close the gap before Step 5. See references/traceability.md for the method and the two-way gap check.
tasks.md in no-TDD mode (only after the Case E gate)Use templates/tasks-no-tdd.md. Same spec, same plan, same build order, same coverage matrix: each criterion from spec.md §3 and each error path from §4 becomes a 🔨 Build task paired with a ✅ Verify task written as Given / When / Then. Never use 🔴 or 🟢, and keep the banner with the date and who asked for it. Phase 0 runs lint + typecheck + boot smoke instead of a runner.
Before writing it, read references/test-runner-detection.md § "Case E — no-TDD mode": the TDD vs no-TDD table, the non-negotiables and the hand-off for this mode.
Gate before hand-off: the coverage matrix is filled and has no orphan features (every Section 3 bullet traces to a task), and Section 4 flows + measurable Section 6 NFRs have their tasks. If not, don't hand off — close the gap first.
Update project memory. Create or update specs/INDEX.md (from templates/specs-index.md if it doesn't exist yet): add or refresh this spec's row (slug, one-line vision, status, key stack, related specs) and promote any genuinely cross-cutting decision — from plan.md, or surfaced as a durable learning by Code Review or Final Verify (decision confirmed/overturned, alternative rejected, risk materialized) — into the Shared decisions table, citing this slug. Once tasks.md exists, its status is canonical and the index mirrors not started, in progress or completed. In no-TDD mode, append · no-TDD to that row's status.
Then tell the user:
specs/<feature-slug>/, and specs/INDEX.md is updatedtasks.md and execute it (e.g. "Implementa la tarea T1").spec.md first, don't paper over it in codeIn no-TDD mode, add the three hand-off points from references/test-runner-detection.md § "Hand-off in this mode": 🔨 and ✅ are one unit, an autonomous loop cannot close a human-only ✅, and the upgrade path to a runner.
.work/)At the start of each implementation session, before touching code, create specs/<feature-slug>/.work/implementation.md from templates/implementation.md (one per session or module/phase, never per micro-task; skip it for trivial tasks). Ensure specs/**/.work/ is in the project's .gitignore: this file is agent scratch and is never committed. If planning execution surfaces a durable decision, update spec.md → plan.md → tasks.md first, then regenerate it. It survives context compaction and is cheap to regenerate because it derives from tasks.md.
For each pending task, read its Criterion, Files, Verify and Done when contract; set the task-list status to In Progress when implementation actually starts; implement only that scope; execute Verify; and record evidence before checking it off. On failure, keep it unchecked and keep status In Progress, diagnose, apply the smallest valid fix and run the same verification again. Stop and reflow spec.md → plan.md → tasks.md whenever the failure exposes a durable requirements or architecture gap. Full stopping rules are in references/verification-loop.md.
After implementation/module verification, review the source Issue (when present), spec.md, plan.md, tasks.md, the real diff, tests and verification results. Review requirements compliance first, then correctness, security, performance, tests and maintainability. Requirements compliance closes with an explicit alignment verdict — Exact, Tangling, Missing or Missing and Tangling — and only Exact (or a deviation the user accepted and reflowed into the spec) can be part of a PASS. The reviewer must be conceptually independent from the implementer. Close the review by listing its durable learnings (decision confirmed or overturned, alternative rejected, risk materialized) for the hand-off's specs/INDEX.md update. Tangling code the user doesn't accept into this change is removed; if the idea behind it is worth keeping, capture it as a follow-up intent.md (Step 1.5) instead of losing it. Follow references/code-review.md and resolve blockers before the final gate. Read the lane (the repository's AGENTS.md boundaries and harness, when present) as scope input, and deliver the result as a CBRM Verdict: status, alignment and a criterion → status → evidence table.
Before PR/handoff, run references/final-verification.md: recheck previously passed evidence where later tasks could have caused regressions; run all applicable tests, integration/E2E, lint, typecheck, build and NFR checks; confirm complete acceptance-criteria coverage, no coverage-matrix orphans and zero Critical review blockers. Only then set tasks.md to Completed and mirror that status in specs/INDEX.md.
Only after Final Verification is PASS, create or hand off the Pull Request with links to the source Issue, spec artifacts, concise verification evidence and review result. The PR description carries the verdict, so the reviewer reads contract and verdict first and opens the diff only where the verdict is red. GitHub automation is optional; the lifecycle is tool-agnostic and works with any agent or forge that can read and write the Markdown artifacts.
Always produce exactly this layout under the project root:
specs/
├── INDEX.md ← project memory — committed, updated at hand-off
└── <feature-slug>/
├── intent.md ← optional — the idea before the spec (Step 1.5)
├── spec.md
├── plan.md
├── tasks.md
└── .work/
└── implementation.md ← gitignored — ephemeral, regenerated each session
If specs/<feature-slug>/ already exists, read it first and propose updates rather than overwriting. If specs/INDEX.md exists, read it at Step 0.5 and reconcile it at hand-off.
spec.md from a LOW-context request without an accepted intent.md — understand the idea before deciding what to buildtasks.mdtasks.md without 🔴/🟢 must carry the no-TDD banner saying who asked for it and when.work/ — the ephemeral implementation plan is agent scratch, not documentationCompleted from checkbox count or implementer assertion aloneintent.md (Step 1.5, when written), after spec.md (Step 2), after plan.md (Step 3), and before setting up a proposed test runner (Step 3.5, case C)specs/INDEX.md at hand-off and reuse its Shared decisions instead of re-deciding themspec.md first when implementation reveals a gap, then update plan.md and tasks.md, then code — a durable decision must never live only in .work/implementation.mdspecs/INDEX.md at hand-offtasks.md status and the corresponding specs/INDEX.md row synchronizedPaths are relative to this skill's folder, not to the project root. Load each file only when its step needs it.
templates/intent.md — the idea before the spec: problem, outcome, constraints, open questions and the accept/reject decision (Step 1.5)templates/spec.md — the 6-section spec template (fill in directly)templates/plan.md — technical plan templatetemplates/tasks.md — TDD task list template (includes the coverage matrix) — the defaulttemplates/tasks-no-tdd.md — degraded task list: manual Given/When/Then verifications instead of tests. Only after the Case E gatetemplates/implementation.md — ephemeral implementation plan template (gitignored, per session)templates/specs-index.md — project memory index template (specs/INDEX.md: shared decisions + specs table)references/examples.md — a compact end-to-end lifecycle example (feature: vote / unvote a feedback item)references/codebase-inspection.md — how to ground the spec in the existing project (Step 0.5): what to read per ecosystem, the snapshot, the no-conflicting-stack rulereferences/tdd-workflow.md — TDD chaining details, naming conventions, common pitfallsreferences/test-runner-detection.md — how to verify if the project has a test runner, defaults per ecosystem, smoke-test pattern, and the full Case E protocolreferences/traceability.md — the coverage matrix method (spec §3 → plan → tasks) and the hand-off gatereferences/verification-loop.md — evidence-based task completion, Fix/retry and reflow stopping rulesreferences/cbrm.md — Contract Based Review Method: contract, lane and verdict mapped onto this lifecycle, Issue → PR sequence, full vs light contractreferences/code-review.md — requirements-first review using the Issue, artifacts, real diff and verification resultsreferences/final-verification.md — final regression gate before PR/handoffSkill by Bezael Pérez · Dominicode — Build with AI: From Idea to Product with Claude and Specs.
AGENTS.md (opens in a new tab)references/cbrm.md (opens in a new tab)references/code-review.md (opens in a new tab)references/codebase-inspection.md (opens in a new tab)references/examples.md (opens in a new tab)references/final-verification.md (opens in a new tab)references/tdd-workflow.md (opens in a new tab)references/test-runner-detection.md (opens in a new tab)references/traceability.md (opens in a new tab)references/verification-loop.md (opens in a new tab)templates/implementation.md (opens in a new tab)templates/intent.md (opens in a new tab)templates/plan.md (opens in a new tab)templates/spec.md (opens in a new tab)templates/specs-index.md (opens in a new tab)templates/tasks-no-tdd.md (opens in a new tab)templates/tasks.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
spec-driven-development, sdd, planning, feature-workflow, cbrm
2 skills in this plugin
npx claudepluginhub bezael/sdd-creator --plugin dominicode-sdd-creatorOther plugins' skills for the same job