/t-stack:tstack-implement-cardfrom t-stack
Use when you build a card, or a lead's slice of one, as the implementer: read the card and its design in full, write the test that fails on master first, make it pass, run your own mutants in a git-archive scratch copy (never by editing and restoring the worktree), and report the evidence to your lead. Decisions go through the lead. Skip for leading a card with teammates (use tstack-lead-card), for planning a mission (use tstack-plan-mission) and for test-first craft on its own (use tstack-tdd).
Ships in t-stack. 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.
The implementer turns a card into code that provably does what the card says. Proof here has a strict meaning: a test that fails on master for the reason the card names, passes at your head, and fails again when you break the guard it protects.
Read the card at the path your lead's brief gives, in full, then the design it points to, then any DECISIONS sections. You don't need plan.md or the board: the card and the brief are your job. The brief also says which files are yours. Write only those.
sfora cat /projects/hq/board/03-in-progress/<card-file>.md --bot claude-code
Show that you're on it: sfora status --card 854 --project hq "Writing the failing test" --bot claude-code. Change the line when your slice moves on (the test, the fix, the mutants), and clear it (sfora status --clear) when you've reported to your lead.
If the card is wrong (a bad premise, a base that moved, a number that doesn't add up), tell your lead before you build. Don't silently widen or narrow the scope.
Write the test first. Name the defect it catches ("a member of another org can read the card"), and assert the result the card requires, through the public interface. tstack-tdd covers the craft.
Run it on master's code and watch it fail: a clean git archive of the current origin/master, with node_modules linked at the root and in every workspace package, and only your new test files laid over it, never your source. The recipe is The run on master. Quote each test's failure. It must fail for the defect you named: an import error or a crash doesn't count. If some tests in the file are meant to pass on master, name them and say why.
Make the smallest change that passes it. Run the nearby tests and the type check (vitest doesn't type-check: on #851 a new convex test passed vitest and failed tsc).
Commit your slice locally, on the branch your lead names. Never push: the lead owns what is pushed. Mutants need a committed head.
Run your own mutants in a scratch copy (references/mutants.md). Catalogue each guard your change adds or relies on in one pass, per Catalogue a guard in one pass, and run every mutant. A survivor means a missing test: write it, then mutate again.
Report to your lead: the files, each test's quoted failure on master, the passing run, the sweep table with what caught each mutant, any screenshots (the image files, each with what it shows), anything not done, and any decision you made with why. The lead puts the mutant lines and the screenshots on the card.
git archive scratch copy. Never edit a file in the worktree and restore it afterwards: an interrupted run leaves the worktree mutated under the dev server someone is previewing.init.headers to a plain record; the implementer kept a plain record and put the alternative to the lead.grep -c counted lines, not matches, and reported 11 instead of 188.tstack-verify-production).To your lead: the files, each test's quoted failure on master, the passing run and the type check, the sweep table (survivors and equivalents too, each with its proof), what's left, and your decisions. The lead copies the mutant lines to the card.
Detail: references/mutants.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wavyrai/sfora-skills --plugin t-stack28 skills in this plugin
/tstack-architectUse when a change is big enough that writing code first would fix the wrong shape: a new module, a new data model, a change to who owns some state, or a card whose design the owner must see. Sketch the caller's usage, the types and the signatures first, compare at least two shapes, put the chosen sketch on the card or a doc, then build against it and scrap it when it keeps fighting you. Skip for a one-file fix with an obvious shape (just build it, with tstack-tdd), and for comparing finished candidates (use tstack-arena)./tstack-arenaUse when one attempt at a non-trivial piece of work would fix the wrong shape: a contested design, an API, a tricky algorithm, a page of copy. Run two to four independent candidates on the same brief, have a separate judge score them against a written rubric, pick one as the base, graft the best parts of the others into it by hand, and verify the result. Covers the brief, the rubric, the judge and the synthesis note on the card. Skip for work with one obvious answer, and for splitting work into slices (use tstack-swarm)./tstack-benchmark-checklistUse before you report or act on a performance number you measured: a speedup or regression in a PR, a CI step's time, a job's duration, a choice between two libraries or settings. Seven questions to answer with evidence from runs: what limits it, was each side tuned, does it break physical limits, did it error, does it repeat, does it matter end to end, and did the work happen at all. Covers how to state the number on a card. Skip for numbers you didn't measure, and for finding the slow code in the first place (use tstack-how, then measure).