From Spec-Driven Development (SDD)
Bug → spec protocol: trace cause, decide if a new §V invariant catches the recurrence class, append §B. Not user-invoked — engaged from /sdd:spec BACKPROP mode (bug → spec user route = `/sdd:spec <intent>`). Not for mechanical typo or one-off fix w/ no recurrence class — pure code fix only.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdd:backpropThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Plan-then-execute fixes code, forgets. SDD fixes code AND edits spec so recurrence impossible. That edit = backprop.
Plan-then-execute fixes code, forgets. SDD fixes code AND edits spec so recurrence impossible. That edit = backprop.
Analysis protocol — writes nothing itself (read-only grants). Consumers: spec skill BACKPROP mode (records §B/§V, commits SPEC.md) + /sdd:build resume (test + fix, commits code). See HANDOFF.
/sdd:build verification./sdd:check flags VIOLATE w/ root cause found.§B row: B<next>|<date>|<root cause>|V<N>
§V line: V<N>: <testable rule that would have caught it>
Protocol output = drafted delta. Writes split per write-ownership (spec = sole SPEC.md mutator; build = code writer):
backprop §B.<n>(+) + §V.<N>(+): <one-line cause>. SPEC.md only. Record lands even when fix deferred.TestV<N>_RefundIdempotent), watch fail. Fix code. New test ! pass; full suite ! no regression. Commit T<n>: <goal> citing new §B/§V.Input: refund job double-charged customer on retry
refund(ctx, amount) not check prior charge state.§B row: B<n>|2026-04-20|refund retry double-charged, no idempotency check|V<N>
§V line: V<N>: every refund ! idempotency key check before charge reversal
backprop §B.<n>(+) + §V.<N>(+): refund retry double-charge (SPEC.md only).TestV<N>_RefundIdempotent — refund twice w/ same key → ≤ 1 reversal posted; watch fail. Add idempotency-key column; check before charge.reverse(). Test pass, suite no regression → commit T<n>: refund idempotency citing §B. + §V..! hold over not forbid).Bad: V<N>: code should be correct.
Good: V<N>: every pg_query ! params via driver, not string concat.
i++ vs i-- in throwaway).Still append §B — records failure mode considered. Future same-class bug → §B grep shows precedent.
§B entry (always) + §V (usually) drafted for spec skill; test + code fix land via /sdd:build. Two commits, cross-cited: spec commit names §B/§V, code commit cites them. No dashboards, no log files — SPEC.md + git = full history.
npx claudepluginhub kborovik/spec-driven-dev --plugin sddProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.