From sdd-engineering
Use to EXECUTE an Implementation Plan (`docs/plans/<feature>.md`) end-to-end in the main session: feature branch → implementer waves per the task DAG (or sequential steps in single-agent mode) → plan-verifier coverage gate (run inside a subagent) → capped gap-fix loop → architecture review gate with a capped fix loop (≤3, until PASS) → spec status flip → confirm and `gh pr create`. Trigger phrases: '/run-plan', '/impl', 'імплементуй план', 'implement the plan', 'run the plan', 'execute the plan', 'виконай план', 'запусти план'. NOT for writing plans (sdd-engineering:implementation-planner) or specs (sdd-engineering:spec-creator) — those are invoked manually, upstream of this skill.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdd-engineering:run-planThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execution orchestrator for the SDD pipeline. Upstream steps are manual by
Execution orchestrator for the SDD pipeline. Upstream steps are manual by
design — the user runs sdd-engineering:spec-creator and
sdd-engineering:implementation-planner themselves; this skill picks up from
a finished plan:
spec-creator (manual) → SPEC-NN → implementation-planner (manual)
→ docs/plans/<feature>.md
→ /run-plan (THIS SKILL, main session):
0. preflight: plan + spec + feature branch
1. implementer waves per DAG (cap 3) | sequential steps
2. plan-verifier agent — coverage gate, FIRST (subagent)
3. gap-fix loop (max 2 iterations)
4. architecture review gate → arch-fix loop (≤3, until PASS)
5. test intents + DEFERRED rows → manual checklist (this workflow
does not author tests)
6. aggregate insight candidates → engineering-insights (once, serial)
7. spec Status → implemented (+ specs/ README index line)
8. confirm with the user → gh pr create (host-repo hooks, if any,
fire here)
This skill runs in the main session deliberately: only the main session
has AskUserQuestion (failure decisions, gap acceptance, arch-loop cap) and
only it runs the final PR step predictably. Do not wrap this pipeline in a
subagent.
docs/plans/<feature>.md (named by the user, or inferred — see
Preflight). Without a locatable plan, ask — never improvise one.docs/plans/<feature>.md to run.Do not fire:
sdd-engineering:implementation-planner,
run manually).sdd-engineering:plan-verifier directly).docs/plans/; if still ambiguous, ask once.## Execution mode, the Requirements
table (R-IDs, Covers AC when present), the Spec: header (if the plan
traces to a SPEC-NN, read that spec's ACs and verification hints too),
tasks/steps with Owned paths + Skills (mandatory) + DAG edges,
## Test intents, and ## Verification per task/step.git branch --show-current. On the default branch,
create a feature branch (feat/<plan-slug>) before anything else —
implementers run in the launch branch, and PRs must never originate from
the default branch.Skills (mandatory) entry resolvable
(a plugin-namespaced skill such as engineering-paved-path:zod, or a
skill available in the host project — agents are not skills). A violation
here is a plan defect — stop and send the user back to
sdd-engineering:implementation-planner rather than improvising ownership.Multi-agent mode — topologically sort the task DAG into waves:
Depends-on are already completed.sdd-engineering:implementer instances in parallel in
a single message, but cap at 3 concurrent instances; a larger wave
runs in batches of 3.Single-agent mode — run one sdd-engineering:implementer per step S1..Sn
sequentially, same prompt contract; the verify/review tail below is identical.
AskUserQuestion:
retry with an amended task prompt / re-plan (back to
sdd-engineering:implementation-planner with the failure as input) /
abort the run.Immediately after the last wave, spawn the sdd-engineering:plan-verifier
agent (a smaller model such as sonnet is sufficient — its methodology is
self-contained): pass it the plan path and the pre-tests flag, and have it
return the coverage matrix as its final message. This keeps the grep-heavy
verification off the expensive model and out of the main context; if the
matrix comes back malformed, re-spawn the agent once with a corrected prompt
before falling back to verifying inline.
Run it before the architecture review: a coverage gap means a follow-up implementer will change the diff, and anything reviewed before that gets reviewed twice; architecture review of an incomplete diff produces false findings.
DEFERRED (test evidence pending) — this workflow does not author tests;
route them to the manual checklist (§4). Do not treat DEFERRED as a gap.Launch the architecture-review:architecture-reviewer agent, scope: the
branch diff vs the default branch.
Possible verdicts:
sdd-engineering:implementer whose task is exactly
the review's CRITICAL + HIGH findings — quote each finding (rule id,
path:line, evidence, fix direction) verbatim in its prompt. Its owned
paths MUST include any test files whose imports break when files move,
and its done-condition is the touched package's existing tests +
typecheck re-run to green (or the typecheck-only fallback).architecture-review:architecture-reviewer on the updated diff.AskUserQuestion): accept the remaining findings (record them
verbatim in the final report), keep fixing manually, or abort the run.Loop discipline: never send the same findings to two parallel fixers; never let a fix iteration touch paths outside the findings' files + their broken test imports; count an iteration even when the reviewer surfaces new findings caused by a fix.
DEFERRED test-evidence rows + the plan's ## Test intents
(this workflow does not author tests — these are the user's to cover),deferred — manual; or run the project's
existing e2e flows when the plan names them).
Never silently drop any of these.Implementers do not write INSIGHTS.md themselves (parallel instances in
one tree would collide on a file no task owns). They report Insight
candidates; this skill deduplicates them and invokes
sdd-engineering:engineering-insights once, serially, routing each entry
per that skill's nearest-INSIGHTS.md rule.
Edit the spec header Status: approved → Status: implemented and
update the trailing status in the same specs/ folder's README index
line (it says (draft) or (approved) — leaving it stale is the known
failure mode).gh pr create. If the host
repository has its own pre-PR hooks or review gates, they fire here —
never bypass or pre-empt them.Skills (mandatory)) go back to the planner.Progress narration, questions, and the final report to the user are in the user's language; artifacts (PR body, plan annotations) in English.
npx claudepluginhub yamchinsky/dev-digest-ai-marketplace --plugin sdd-engineeringCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.