
Guard refuses a step hand it to the person
Stops at a refused step, hands it back to you, and avoids routing around the guard
Guard refuses a step hand it to the person is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Guard refuses a step hand it to the person
This skill tells an agent what to do when a hook or safety guard blocks a step the user explicitly requested. Instead of retrying the same effect through another command, another tool, or a peer agent, the agent stops at the refusal, reports which step was blocked and by which guard, and states that it will not work around it.
The workflow is short. The agent gives the user the quickest manual path to complete the step themselves, including what to tell the agent afterwards so it can finish the remaining work. It also points out that the guard's scope or rule belongs to the user to change, for example narrowing it to the repository it was written for, and leaves editing the guard alone unless asked. Work the guard does not block continues as normal.
The skill is written as Markdown guidance with no scripts. It assumes a guard that emits a refusal message, and it is packaged as part of a Claude Code plugin marketplace.
When your agent uses it
A safety hook or guard refuses a step the user asked for, perhaps in a repository or context it was not written for. Use when a hook blocks a command and tells you not to work around it, or when you are tempted to reach the same result another way.
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 (3 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/guard-refuses-a-step-hand-it-to-the-person:
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/guard-refuses-a-step-hand-it-to-the-person &&
cp -R "$tmp/plugins/agent-traffic-control/skills/guard-refuses-a-step-hand-it-to-the-person" ~/.claude/skills/guard-refuses-a-step-hand-it-to-the-person &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/guard-refuses-a-step-hand-it-to-the-person inside it instead.
Copy the skill folder to ~/.agents/skills/guard-refuses-a-step-hand-it-to-the-person 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/guard-refuses-a-step-hand-it-to-the-person &&
cp -R "$tmp/plugins/agent-traffic-control/skills/guard-refuses-a-step-hand-it-to-the-person" ~/.agents/skills/guard-refuses-a-step-hand-it-to-the-person &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/guard-refuses-a-step-hand-it-to-the-person inside it instead.
Copy the skill folder to ~/.cursor/skills/guard-refuses-a-step-hand-it-to-the-person 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/guard-refuses-a-step-hand-it-to-the-person &&
cp -R "$tmp/plugins/agent-traffic-control/skills/guard-refuses-a-step-hand-it-to-the-person" ~/.cursor/skills/guard-refuses-a-step-hand-it-to-the-person &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/guard-refuses-a-step-hand-it-to-the-person 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/guard-refuses-a-step-hand-it-to-the-personOr copy the folder to ~/.gemini/skills/guard-refuses-a-step-hand-it-to-the-person yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/guard-refuses-a-step-hand-it-to-the-person:
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/guard-refuses-a-step-hand-it-to-the-person &&
cp -R "$tmp/plugins/agent-traffic-control/skills/guard-refuses-a-step-hand-it-to-the-person" ~/.copilot/skills/guard-refuses-a-step-hand-it-to-the-person &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/guard-refuses-a-step-hand-it-to-the-person 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/guard-refuses-a-step-hand-it-to-the-person into your agent's skills folder as guard-refuses-a-step-hand-it-to-the-person. Agents that support SKILL.md read one folder per skill.
What it does
- Stop at refusal
- Halts the blocked step rather than trying alternative commands, tools or agents to reach the same effect.
- Plain user report
- Explains which step was refused, which guard refused it, and that the agent will not route around it.
- Manual handoff steps
- Gives the user a short, ordered set of actions to complete the blocked step themselves.
- Guard scope guidance
- Suggests that the guard's rule or scope is for its owner to change, without editing the guard unprompted.
- Continue unblocked work
- Keeps working on every part of the task that the guard does not block.
Good for
- Finishing a task when a hook blocks marking a pull request ready
- Handing a blocked deployment or merge step back to the user with exact instructions
- Avoiding a workaround through a different CLI after a safety guard refuses a command
- Reporting to the user which guard blocked an action and what to do next
Guard refuses a step hand it to the person FAQ
When does Guard refuses a step hand it to the person trigger?
It is meant for cases where a hook blocks a command and says not to work around it, or when the agent is tempted to reach the same result another way.
Does Guard refuses a step hand it to the person modify the guard or hook?
No. The skill says the guard's rule or scope is for its owner to change and that the agent should not edit the guard unless the user asks.
Does Guard refuses a step hand it to the person require any scripts or tools?
The skill contains only its SKILL.md instructions and no scripts. Its allowed tools are not set.
How do I install Guard refuses a step hand it to the person in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/guard-refuses-a-step-hand-it-to-the-person to use it in all your projects, or to .claude/skills/guard-refuses-a-step-hand-it-to-the-person 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 Guard refuses a step hand it to the person 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 Guard refuses a step hand it to the person?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Guard refuses a step hand it to the person?
The closest alternatives to Guard refuses a step hand it to the person are Guardrail tester, Tool call permission gate, Prompt injection guard, Speclock guardrails and Agent action safety.
Where this comes from
- Description: from the skill's own SKILL.md.
More from wan-huiyan/agent-traffic-control

Teaches agents to refuse a flawed instruction only with measured evidence attached
- Open source
- 5 GitHub stars
- Developer tools

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






