# Agent refusal with evidence beats literal compliance

> Agent refusal with evidence beats literal compliance is an open-source agent skill for developer tools. Teaches agents to refuse a flawed instruction only with measured evidence attached. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** agent-refusal-with-evidence-beats-literal-compliance
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance)

## Features

- **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

## Install

### Claude Code

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):

```sh
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control
```

Or copy only this skill to `~/.claude/skills/agent-refusal-with-evidence-beats-literal-compliance`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/agent-refusal-with-evidence-beats-literal-compliance` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/agent-refusal-with-evidence-beats-literal-compliance` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/agent-refusal-with-evidence-beats-literal-compliance
```

Or copy the folder to `~/.gemini/skills/agent-refusal-with-evidence-beats-literal-compliance` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agent-refusal-with-evidence-beats-literal-compliance`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git
```

Then 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.

## 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.

## Alternatives

- [Lesson that recurs after being written becomes a check](https://ai-powered.com/skills/lesson-that-recurs-after-being-written-becomes-a-check): Lesson that recurs after being written becomes a check is an open-source agent skill for developer tools.
- [Agent first app](https://ai-powered.com/skills/agent-first-app): Agent first app is an open-source agent skill for developer tools.
- [Patterns](https://ai-powered.com/skills/patterns-xiaolai): Patterns is an open-source agent skill for developer tools.
- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [Principle prove it works](https://ai-powered.com/skills/principle-prove-it-works): Principle prove it works is an open-source agent skill for developer tools.
- [Writing agents](https://ai-powered.com/skills/writing-agents-xiaolai): Writing agents is an open-source agent skill for developer tools.
- [Verification](https://ai-powered.com/skills/verification-aws-solutions): Verification is an open-source agent skill for developer tools.
- [Skill authoring](https://ai-powered.com/skills/skill-authoring): Skill authoring is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/agent-refusal-with-evidence-beats-literal-compliance
