/agent-traffic-control:agent-refusal-with-evidence-beats-literal-compliancefrom agent-traffic-control
A 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.
Trending skills
7-day visitors to each skill page
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 write a brief. Somewhere in it you prescribe not just the outcome but the method: apply this fix, use this threshold, record this value, phrase it this way.
By the time the agent gets to that line it is standing somewhere you were not when you wrote it. It has run the tests, read the surrounding code, seen the data. And sometimes what it can see is that your instruction, carried out exactly, makes things worse.
A compliant agent does it anyway. That is the default, and it is a bad default: the agent's report comes back clean, the instruction was followed, and the defect ships with your name on the decision.
In a single run, four agents correctly declined what they were asked to do. Not one of those was a failure. Every one was a defect caught at the last place it could still be caught for free.
But refusal on its own is not the good outcome either. "I didn't do that, it seemed wrong" is unbankable: you cannot act on it, you cannot review it, and you have to re-derive the whole question yourself. What made these four useful was that each one showed its work — it had built the thing, or measured it, and could say what it found.
So the useful behaviour has two halves, and shipping only the first is worse than shipping neither:
Half one alone produces an agent that argues. Both halves produce an agent whose refusals you can bank without re-checking.
When writing a brief:
When reading a report:
Not for: an agent that invented evidence to justify a conclusion. Confident,
specific-looking numbers behind a strong claim need the 30-second check — that is
code-review-subagent-fabricates-specifics-to-inflate-severity.
This skill raises the value of evidence; that one is why you still verify it.
One paragraph, near the top, phrased so that it authorises a specific deviation rather than general discretion:
If following an instruction in this brief literally would defeat the outcome it is
meant to achieve, do NOT follow it literally. Achieve the outcome instead, and say
what you did.
Your report must then contain, for that instruction:
- what I asked for, quoted;
- what you did instead;
- the EVIDENCE — what you built, ran or measured, and what it showed;
- what would have happened had you complied.
A refusal without evidence is not acceptable output. Neither is silent compliance
with an instruction you can see is wrong.
The last two lines are the working part. They make evidence the price of the permission, so the permission cannot be used as cover for guessing.
Most refusals become unnecessary if the brief states the property rather than the patch:
| Method-shaped (invites a bad literal read) | Outcome-shaped |
|---|---|
"add a continue in that branch so it stops failing" | "the pipeline must not fail on this input; if the input is unusable, the run should end cleanly and say why" |
| "record the facing as north-east" | "record the measured facing; if it cannot be measured from the data, record that it is unknown" |
| "set the timeout to 30s" | "the step must not be killed by its own timeout under the observed load; state what you measured" |
You will still prescribe methods sometimes — you often know something the agent does not. Keep doing it. Just expect the letter to be refused occasionally, and make that cheap.
Three questions, in order:
If all three hold, bank it. If the first is missing, ask for the measurement — do not argue about the conclusion.
For a brief, before dispatch:
For a report, after:
Four agents declined an instruction in one run. All four were right. Two are worth writing out because they are different shapes.
A suggested fix that would have converted a safe failure into a permanent one. An agent was told to apply a specific fix to a pipeline. It built the fix, ran it, and measured what it actually did: the pipeline's existing behaviour was a silent safe refusal — it declined to proceed on bad input and stopped cleanly — and the suggested fix converted that into a permanently red pipeline that would fail on every run thereafter. The agent reverted the change unpushed and reported the measurement. Nothing had to be undone, because nothing had been pushed; the whole experiment cost one agent's time and produced a fact.
A value inferred rather than measured. An agent was asked to record a facing direction that had been arrived at by inference, not measurement. It refused to record it as data. It was right: the value would have entered the record indistinguishable from measured values, and nothing downstream would ever have flagged it.
What both have in common is not the refusal. It is that each one arrived with the thing that made it checkable: a run, a measurement, a counterfactual. An agent that had simply said "I don't think that's a good idea" in either case would have produced a conversation instead of an answer.
multi-agent-skill-silent-phase-compression,
where mandatory phases get rationalised away under context pressure.code-review-subagent-fabricates-specifics-to-inflate-severity
— why evidence still gets verified: a model can invent coherent specifics to justify
a strong calltask-framing-claims-need-subagent-grep-verify
— the dispatcher's own claims are the other thing an agent should check rather than
acceptfactcheck-subagent-needs-complete-sources
— a verifier given a partial source will confidently declare good work unsupported;
check "unsupported" verdicts against what you trimmedorchestrator-rule-too-strict-stalls-agent-silently
— the same permission from the other side: ask whether one of your own rules is what
is blocking an agentmulti-agent-skill-silent-phase-compression
— deviation without evidence, which is the failure mode this skill must not becomeWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
118 skills in this plugin
/auto-merge-rearms-while-agent-live-kill-then-disarm-verifyDisarming auto-merge on a PR whose agent is still running does not hold it —
the agent re-arms within minutes and the PR merges, because arming is a step in
the agent's brief and disarming is not an instruction to the agent at all. Use
when: (1) you want to STOP a pull request from merging that an agent opened and
armed, for review, for a rethink, or because it is landing into a queue you are
trying to drain; (2) a PR you disarmed merged anyway; (3) you are telling agents
which PRs are on hold and want the hold to be enforced rather than announced;
(4) you are about to run `gh pr merge --disable-auto` and have not decided what
to do about the agent. The order is KILL THE AGENT FIRST, THEN DISARM, THEN
VERIFY the disarm by reading `autoMergeRequest` back — a disarm you did not read
back is not a hold. The stronger form needs no ordering at all: convert the PR
to a draft with `gh pr ready --undo`. A draft cannot merge whatever any agent
does to it, so the hold survives an agent you missed, an agent that restarts,
and an agent you did not know about.
/batch-member-cites-a-path-only-a-non-member-addsYou wrote something correct that the default reader cannot reach: a batch member citing a
path only a NON-member adds, or a rule, ruling or ledger sitting on an unlanded branch.
/batch-merge-subject-is-not-evidence-a-member-landedYou are about to close, delete the branch of, or mark as landed a pull
request because a batch, roll-up or merge-train commit on the target branch
names it in the subject line, and because the member's own commits all
predate that merge by wall clock. Neither of those is evidence. A batch
branch is assembled at some moment BEFORE it merges, so anything the member
pushed after assembly is outside it, and the subject records INTENT at
assembly time rather than CONTENT at merge time. Use before closing a
member, when an ancestry check against a squashed batch says no, or when a
member's branch still shows commits ahead of the target. Compare file
content against the target branch instead, expecting exactly one legitimate
difference: the shared aggregate file every member appends to.
/check-a-stale-branch-is-not-undoing-newer-main-workA branch built on an out-of-date main is about to merge, or has merged, and may undo work
that landed since. Use when a green, conflict-free PR deletes files you never touched,
newer values or a whole redesign vanish after a sibling PR merged, rows of a shared ledger
(tracker, registry, CHANGELOG) disappear or revert, or when `git diff main...HEAD` or a
reviewer says your small PR touches dozens of files you did not change.
/ci-leg-skipping-moves-minutes-it-does-not-remove-themYou are about to propose, price or approve a CI cost saving that works by
making a job or matrix leg SKIP on pull requests — a path filter, a safe
list, a changed-files gate, an exemption list. Check first whether the
pipeline runs a complement or backstop on merge, on push, or nightly:
many do, and then the legs a pull request skipped are exactly the legs some
later run executes, so a branch that goes green once and merges bills the
same total either way and the wall clock does not move at all. Use when
pricing a filter change, when a percentage saving is quoted with no basis,
or when choosing between filtering legs and batching pull requests. The
question that separates money from bookkeeping is whether the change
removes RUNS or merely moves LEGS.
/cjk-structured-llm-output-truncates-json-needs-2x-tokensWhen generating LONG Chinese/Japanese/Korean (CJK) STRUCTURED output (a big JSON report, a multi-section
document) from an LLM chat API, the response truncates mid-JSON and your parser throws "no parseable JSON"
/ "Expecting ',' delimiter" / JSONDecodeError — even though the SAME prompt in English worked. Root cause:
CJK is token-heavy (≈1–2 tokens per character vs ≈0.25 for English), so a report that fit your max_tokens in
English overflows it in Chinese. Some models ALSO hard-cap output well below what you request (e.g. qwen-max
caps at 8192) and silently truncate. Use when: a zh/ja/ko structured-generation run fails JSON parsing,
worked in English, or a specific model truncates while others on the same prompt succeed. Covers the ~2×
token budget rule, per-model output caps, and a salvage that recovers the complete sections from a
truncated object.
npx claudepluginhub wan-huiyan/agent-traffic-control --plugin agent-traffic-control