
Agent refusal with evidence beats literal compliance
Teaches agents to refuse a flawed instruction only with measured evidence attached
Agent refusal with evidence beats literal compliance is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Agent refusal with evidence beats literal compliance
This skill is a prompt pattern for briefing and reviewing autonomous coding agents. It gives a ready-to-paste permission paragraph that lets an agent satisfy the intent of a brief when following its literal wording would defeat the goal, while requiring the agent to report what it built or measured, what that showed, and what it did instead.
The guidance also covers how to write briefs around outcomes instead of prescribed methods, and how to read an agent's refusal or claim that something is unnecessary by checking whether any experiment backs it up. A verification checklist covers both the brief before dispatch and the report after, including checking that rejected experiments were removed from the branch.
No scripts are included. It is a single Markdown instruction file with cross-references to related skills on verifying agent claims and detecting silent phase skipping. It can be used with any agent that loads SKILL.md files.
When your agent uses it
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 instr
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (11 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the agent-traffic-control plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-controlOr copy only this skill to ~/.claude/skills/agent-refusal-with-evidence-beats-literal-compliance:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-refusal-with-evidence-beats-literal-compliance &&
cp -R "$tmp/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance" ~/.claude/skills/agent-refusal-with-evidence-beats-literal-compliance &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/agent-refusal-with-evidence-beats-literal-compliance inside it instead.
Copy the skill folder to ~/.agents/skills/agent-refusal-with-evidence-beats-literal-compliance to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-refusal-with-evidence-beats-literal-compliance &&
cp -R "$tmp/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance" ~/.agents/skills/agent-refusal-with-evidence-beats-literal-compliance &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/agent-refusal-with-evidence-beats-literal-compliance inside it instead.
Copy the skill folder to ~/.cursor/skills/agent-refusal-with-evidence-beats-literal-compliance to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-refusal-with-evidence-beats-literal-compliance &&
cp -R "$tmp/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance" ~/.cursor/skills/agent-refusal-with-evidence-beats-literal-compliance &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/agent-refusal-with-evidence-beats-literal-compliance inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-complianceOr copy the folder to ~/.gemini/skills/agent-refusal-with-evidence-beats-literal-compliance yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agent-refusal-with-evidence-beats-literal-compliance:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-refusal-with-evidence-beats-literal-compliance &&
cp -R "$tmp/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance" ~/.copilot/skills/agent-refusal-with-evidence-beats-literal-compliance &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/agent-refusal-with-evidence-beats-literal-compliance inside it instead.
Get the folder:
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.gitThen copy agent-traffic-control/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance into your agent's skills folder as agent-refusal-with-evidence-beats-literal-compliance. Agents that support SKILL.md read one folder per skill.
What it does
- Permission paragraph template
- A ready-to-paste brief paragraph that authorises deviation from a literal instruction when it defeats the intended outcome.
- Evidence requirement
- Requires any refusal to include what was built or measured, what it showed, and the counterfactual.
- Outcome-shaped briefing
- Shows how to rewrite method-specific instructions as the property the result must hold.
- Refusal assessment steps
- Three ordered questions for judging whether a refusal is backed by measurement and a clean artefact.
- Brief and report checklists
- Verification steps to run before dispatch and after an agent returns its report.
Good for
- Write a brief for an overnight agent that avoids prescribing a specific fix
- Decide whether an agent's refusal to follow an instruction was justified
- Review overnight agent output to see which decisions were verified
- Check an agent's claim that a change is not needed
Agent refusal with evidence beats literal compliance FAQ
When should I use Agent refusal with evidence beats literal compliance?
When writing a brief that prescribes a specific fix, threshold or value, when an agent reports it did not follow an instruction, when an agent asserts something is fine without measurement, or when reviewing unattended output.
Does Agent refusal with evidence beats literal compliance run any scripts?
No. It contains a single SKILL.md instruction file and no scripts or reference files.
Does Agent refusal with evidence beats literal compliance let agents ignore the brief?
No. The listing's notes say the permission is narrow: deviation is allowed only when the literal instruction defeats its intent, and the deviation must be backed by evidence.
How do I install Agent refusal with evidence beats literal compliance in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/agent-refusal-with-evidence-beats-literal-compliance to use it in all your projects, or to .claude/skills/agent-refusal-with-evidence-beats-literal-compliance in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.
Does Agent refusal with evidence beats literal compliance run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Agent refusal with evidence beats literal compliance?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Agent refusal with evidence beats literal compliance?
The closest alternatives to Agent refusal with evidence beats literal compliance are Lesson that recurs after being written becomes a check, Agent first app, Patterns, Agentsmd optimize and Principle prove it works.
Where this comes from
- Description: from the skill's own SKILL.md.
More from wan-huiyan/agent-traffic-control

Catches silent deletions when a subagent edits large files with repeated blocks
- Open source
- 5 GitHub stars
- Developer tools

Holds a pull request from merging by stopping its agent, disarming auto-merge, then
- Open source
- 5 GitHub stars
- Developer tools

Checks that a batch of pull requests does not cite file paths that will never exist
- Open source
- 5 GitHub stars
- Developer tools

Checks whether a pull request truly landed by comparing file content, not commit subjects
- Open source
- 5 GitHub stars
- Developer tools

Checks a branch for stale-base changes that would silently undo newer main work
- Open source
- 5 GitHub stars
- Developer tools

Checks whether a CI skip rule actually saves money or only moves job minutes
- Open source
- 5 GitHub stars
- Developer tools




