/t-stack:tstack-code-tidyfrom t-stack
Use before you commit or hand over a change: read your own diff and remove what it added that the change doesn't need (debug output, dead code, commented-out code, defensive checks the types already rule out, one-caller wrappers, stray files, names that break the file's own style) without changing behaviour, then prove behaviour held by running the project's tests. Skip for redesigning code (use tstack-architect), for comments that explain code (use tstack-no-comments), and for code the diff didn't touch.
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.
Writing code leaves residue: a log line from debugging, a helper you stopped calling, a check you added while unsure, a variable named in a different style from the rest of the file. None of it changes what the code does, and all of it makes the diff longer and the reviewer slower. This pass reads the diff as the reviewer will and removes what the change doesn't need. It never changes behaviour; if a removal would, it stays.
See the whole diff, committed and uncommitted, against the branch's base:
git status
git diff <base>
Go through it hunk by hunk and mark what the change doesn't need (the full list is in references/checklist.md):
console.log, prints, temporary timers, dumped objects;Prove each mark before you remove it. Search for callers of anything you delete, including dynamic uses (string keys, routes, re-exports, tests). Check that a "needless" check really is: the type rules it out, or the only caller already guarantees it. If you can't prove it, leave it and note it.
Remove, one kind at a time, so each edit is easy to check. Inline a one-caller wrapper into its caller; don't move its body somewhere new.
Prove behaviour held. Run the type check, the linter on the changed files and the project's tests. Compare the result with the run before the tidy: the same tests pass. A test that changed outcome means a removal changed behaviour. Put it back.
Read the diff once more against the base. It should be smaller, and every line left should belong to the change.
sfora-board).snake_case keys, the new key does too.tstack-handoff, and before the reviewer sees the diff, not after.What you removed, by kind, with a count. What you kept that looked removable, and why. The test and type-check results before and after.
Detail: references/checklist.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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)./tstack-briefUse when the owner asks for a briefing or a mission reaches a milestone, and you, the PM, write where things stand: one plain paragraph first, then Live, In progress and Waiting on you (each ask linked, with your recommendation), and "Nothing needs you" when that is true. Covers sfora post --draft, reading it back, publishing once, correcting with a follow-up post, and a running dashboard kept as one doc updated with sfora put. Skip for card-level evidence (use tstack-handoff or the card round-trip) and for answering the owner's "what needs me?" in chat (use tstack-owner-desk)./tstack-create-verification-skillUse when nothing in a project lets an agent start the real app, operate it, and show a change working as a person would see it (a web page, a CLI, an API, a desktop app), or when a reviewer keeps asking for proof you can't produce. Generates a project-local verify skill: launch, a health check, how to drive it, what evidence to capture, cleanup, and a feature map, then proves the skill by running it once. Skip when the project already has one (use tstack-maintain-verification-skill), and for unit tests (use tstack-tdd)./tstack-decideUse when you're about to ask the PM or the owner something, or you're unsure whether a choice is yours: first decide whether it's truly the human's call (product, legal, money, brand, or an irreversible production step). If it is, ask once with a question block in a post (one person, two to four options under 80 characters, your pick marked with recommend:, the why under the options), wait with sfora answers, and record the answer on the card as OWNER DECISIONS or PM DECISIONS (date). If it isn't, decide, act, and say what you decided. Skip for the mechanics of question blocks (use sfora-asks) and for a stuck card with no decision to make (use tstack-handoff, BLOCKED).