# Guard refuses a step hand it to the person

> Guard refuses a step hand it to the person is an open-source agent skill for security. Stops at a refused step, hands it back to you, and avoids routing around the guard. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/guard-refuses-a-step-hand-it-to-the-person
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** guard-refuses-a-step-hand-it-to-the-person
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

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.

## 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/guard-refuses-a-step-hand-it-to-the-person)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/guard-refuses-a-step-hand-it-to-the-person)

## Features

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

## 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/guard-refuses-a-step-hand-it-to-the-person`:

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

### Codex

Copy the skill folder to `~/.agents/skills/guard-refuses-a-step-hand-it-to-the-person` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/guard-refuses-a-step-hand-it-to-the-person` 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/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.

### 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/guard-refuses-a-step-hand-it-to-the-person
```

Or copy the folder to `~/.gemini/skills/guard-refuses-a-step-hand-it-to-the-person` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/guard-refuses-a-step-hand-it-to-the-person`:

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

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

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

## Alternatives

- [Guardrail tester](https://ai-powered.com/skills/guardrail-tester): Guardrail tester is an open-source agent skill for security.
- [Tool call permission gate](https://ai-powered.com/skills/tool-call-permission-gate): Tool call permission gate is an open-source agent skill for security.
- [Prompt injection guard](https://ai-powered.com/skills/prompt-injection-guard): Prompt injection guard is an open-source agent skill for security.
- [Speclock guardrails](https://ai-powered.com/skills/speclock-guardrails-sgroy10): Speclock guardrails is an open-source agent skill for security.
- [Agent action safety](https://ai-powered.com/skills/agent-action-safety): Agent action safety is an open-source agent skill for security.
- [Security reasoning](https://ai-powered.com/skills/security-reasoning): Security reasoning is an open-source agent skill for security.
- [Secure workflow guide](https://ai-powered.com/skills/secure-workflow-guide): Secure workflow guide is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/guard-refuses-a-step-hand-it-to-the-person
