/sdd:solo-building-from-casesfrom sdd
Use when a story's cases are approved and one agent builds them - the user chose solo at the approval, or asks to implement an approved spec. Builds each case test-first with the case ID in the test name, never edits an approved case's test to make it pass, and writes migrations as drafts.
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.
Scripts live in <this skill's directory>/../../scripts/ (<scripts> below).
EnterWorktree, or
git worktree add <path> -b <branch> and work there. The main checkout stays
free for other sessions.python3 <scripts>/build.py start <KEY>, with the
story's key (PIN). It refuses outside a worktree, and red.py refuses a
case whose story was not started on the branch it runs on.def test_PIN_C2,
func TestPin_PIN_C2, test('PIN-C2 …', …)). An ID only in a comment is not a test.python3 <scripts>/red.py PIN-C2 "<command that runs this test>".
The command must name the case ID, and the output must show that case failing:
a passing run, another case failing, or a run where no test ran is refused. A
test never seen failing has not proved it can catch anything; verify blocks
an approved case with no red record. A guard case, whose test passes before
any code exists (something must stay silent or must not happen), is
recorded after its code: break the code it guards for a moment, record the
red run, and put the code back.Never edit an approved case's test to make it pass. If the case is wrong, stop and tell the user: that is a decision change.
// ...,
TODO: implement, panic("not implemented")) is blocked when written; a
deliberate one carries sdd: allow-placeholder on its line.writing-spec would ask (intent or scope, an external contract,
hard to reverse, a weak recommendation); decide the rest and say so.<migrations dir>/draft/<slug>.<ext>, never a
numbered file. Numbers are assigned at release (/sdd:releasing-migrations)./sdd:systematic-debugging rather than guessing.When every case passes, continue with /sdd:verifying-before-done.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mtch3n/trellis --plugin sdd7 skills in this plugin
/releasing-migrationsThe user merges the draft migrations written during development into numbered migrations, once, right before tagging a release, and runs the migration checks./systematic-debuggingUse when a bug is reported or a test fails unexpectedly, before proposing any fix - "debug this", "why is this failing", "it's broken", a regression, a flaky test, or a slow path. Registers a loop that goes red on the bug by script first, ranks falsifiable hypotheses, counts failed fixes by script and stops at three, bisects when a good version exists, and turns the fixed bug into a case./team-workflowUse only when the user chose team at the case approval, or explicitly asks for several agents to build an approved spec. Needs Trellis - cases become cards, workers claim them and run only their own tests, one worker owns the migrations, and the coordinator verifies once at integration.Other plugins' skills for the same job