/agent-traffic-control:prove-test-failures-pre-existing-via-clean-worktreefrom agent-traffic-control
After making a change you run the test suite and it shows failures — especially in files/areas your diff never touched, or a count that "feels unrelated." Before you either panic-debug them OR wave them off as "probably pre-existing," PROVE it: run the exact failing tests against a clean checkout of origin/main (a throwaway `git worktree`). Identical failures = pre-existing (ship + note them); different = your change caused it. Use when: (1) a broad/full test run after your edit reports failures and you must decide "mine or pre-existing?"; (2) you're tempted to attribute failures to your change without evidence, or to dismiss them without evidence; (3) you can't `git checkout main` because you're in a worktree where main is checked out elsewhere, or you have uncommitted work.
Ships in agent-traffic-control. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You finish a change, run the test suite (or a broad blast-radius set), and it reports failures. Two failure modes follow, both costly:
The honest move is neither — it's a 30-second proof.
main is checked out in another worktree (so git checkout main
fails with fatal: 'main' is already used by worktree at ...), and/or you have uncommitted changes,
so the usual "switch to main and run" is awkward.origin/main):
git fetch origin --quiet
git worktree add /tmp/clean origin/main # isolated; zero-touch to your working tree
A worktree beats git stash: it doesn't disturb your edits, survives untracked files + new test
assertions, and works when your own cwd is a worktree that can't switch to main.( cd /tmp/clean/<test-root> && <runner> <exact::failing::test::ids> )
git worktree remove /tmp/clean --force.origin/main match your post-change run for
the flagged set, AND the tests covering the area you actually changed pass.A small client-facing UI change (added a nav pill to 3 templates + a CSS class) was followed by a broad
suite run showing 16 failed, 367 passed — all 16 in test_phase5_sidebar.py (sidebar IA tooltips)
test_actions_phase3.py::test_methodology_card_removed, none of which the diff touched. Rather than
debug them or assume they were fine: git worktree add /tmp/clean origin/main, ran those exact files
there → identical 16 failed, 30 passed → proven pre-existing. Shipped with a note; the PR's own
reviewer later independently confirmed the failing files were byte-identical on main. Zero time wasted,
zero regression risk.--ignore a test dir (so the "real gate" is the local
targeted blast-radius suite), and that full local suites can HANG on real-DB/network tests — run
the suite with --ignore=<documented-staller> or just the targeted node ids; don't let a stalling
unrelated test block the proof.roundtable:agent-review-panel's "Codebase State Check" (a review panel must not flag code
as "missing" when it exists on main but not the reviewed branch). This skill is the author-side twin:
don't attribute a failure to your change without checking the baseline.worktree-does-not-isolate-shared-installed-artefacts.leg-guard prevents the collision that causes it
by refusing to start a leg while a peer's is running.superpowers:using-git-worktrees (worktree mechanics), concurrent-session-checkout-clobbers-shared-worktree.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wan-huiyan/agent-traffic-control --plugin agent-traffic-control118 skills in this plugin
/agent-refusal-with-evidence-beats-literal-complianceA dispatched agent that does exactly what you asked can ship a defect you would
have stopped yourself, because it can see something at the worksite that you
could not see when you wrote the brief. Use when: (1) you are writing a brief
that prescribes a specific fix, threshold, wording or value rather than the
outcome you want; (2) an agent reports that it did not do what you asked and
you are deciding whether that is insubordination or judgement; (3) an agent
asserts "this is fine" or "not needed" with no measurement behind it; (4) you
are reviewing overnight output and want to know which decisions were checked
and which were assumed. Two halves, and both are needed: give the agent
explicit permission to satisfy the INTENT of an instruction while refusing its
letter, and REQUIRE the evidence with the refusal — what it built or measured,
what that showed, what it did instead. Evidence is the whole difference between
a refusal you can bank and one you have to re-litigate. Four agents correctly
declined an instruction in a single run; one built the suggested fix, measured
that it turned a silent safe refusal into a permanently red pipeline, and
reverted it unpushed.
/auto-merge-rearms-while-agent-live-kill-then-disarm-verify