# Agent Guardrails Kit

> Audit your CLAUDE.md or AGENTS.md, fix vague rules, and turn the rules your agent keeps breaking into tested Claude Code hooks.

Agent Guardrails Kit is a paid AI agent skill on Agensi by Tobi Sanni, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Tobi Sanni](https://www.agensi.io/creators/tobi-sanni)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-guardrails-kit
- Tags: ai-agents, prompt-engineering, claude-code, automation

## About this skill

Written rules work most of the time. When agents run all day, "most of the time" isn't good enough.

This skill comes from running AI coding agents across three real projects, about 3,000 commits since October 2026. Every rule in it exists because something went wrong without it.

### What it does

1. **Audits your rulebook.** It reads your CLAUDE.md, AGENTS.md, Cursor rules or Copilot instructions and grades them on 10 areas: how the agent talks, staying in scope, proof of "done", getting unstuck, when to ask, safety lines, helpers and models, long chats, turning repeated failures into safeguards, and cost and cleanup. You get a scorecard, your top 5 fixes as ready-to-paste rules, and concrete rewrites for vague lines like "be careful."
2. **Rewrites it** (with your OK) into a short numbered rulebook. Your project commands and paths are kept word for word.
3. **Enforces the rules your agent keeps breaking** with four tested Claude Code hooks:
   - **Stops "Want me to...?" endings** about work you already gave it. Real decisions still get through as lettered options.
   - **Stops "I don't have access to X"** when the tool just hadn't loaded yet, and hands the agent your real routes.
   - **Refuses helper agents that don't name a model**, so they can't silently inherit a slower or pricier one.
   - **Tells long chats to write a handoff** and start fresh, before compaction loses detail.

### Built to be safe

- Each hook is a single Python file using only the standard library.
- Each hook stays silent on any error, can't loop, and ignores quoted text and code.
- The skill installs only the hooks you choose, into your project's `.claude/` folder, shows you the settings change before saving, and tests each hook on sample replies.
- No network calls. Nothing leaves your machine.

### Also included

The full 17-part playbook behind the rules: one lead agent per project, verifying real results, a timer on getting stuck, decision cards, handoffs, and more.

### Works with

The audit and rewrite work in any agent that reads SKILL.md files. The hooks need Claude Code and Python 3.9+.

## Requires

- Optional: Claude Code (for the hooks)
- Optional: Python 3.9+ (for the hooks)

## Known limitations

Active enforcement hooks only work with Claude Code. Other agents receive strengthened written instructions instead. Requires Python for hook testing.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Agent Guardrails Kit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill improve my AI agent's reliability?

This skill finds your instruction files (CLAUDE.md, AGENTS.md, Cursor rules, Copilot instructions) and audits them against a playbook built from about 3,000 real agent commits. It shows why your agent may be ignoring rules, asking permission for work it was already given, or claiming a tool is missing.

### What specific files or reports does this skill produce?

You get a 10-area scorecard, your top five behavior-changing fixes as ready-to-paste rules, and concrete rewrites for vague lines. In Claude Code it can also install and test up to four Python hooks that send the agent back when it repeats one of four habits: asking "Want me to...?", claiming a tool is missing, starting helpers without naming a model, and letting chats grow too long.

### Are the automated guardrail hooks compatible with every AI agent?

While the audit and rule rewriting work for various instruction formats, the executable behavior enforcement hooks are designed specifically for Claude Code. These hooks will not function as active blocks in other IDEs or agents.

### How do I start using this skill with my project?

You should point your agent toward your existing instruction files and ask for an audit against the provided playbook. You can also specifically ask it to help you set up project rules or install hooks to stop an agent from repeatedly asking for permission.

### Why is using this skill better than just writing my own prompts?

Written rules are easy for an agent to skip. This skill makes the rules concrete and numbered, and for the four habits agents break most it adds hooks that catch the habit at the moment it happens and send the agent back once with clear instructions, instead of relying on the agent remembering the rule.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
