Agent Guardrails
Description
Checks AI-generated code changes before merge: scope, validation, risk, review evidence, and optional Verity receipts.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Agent Guardrails
**[Chinese](./docs/zh-CN/README.md)** | **English**

`agent-guardrails` checks code changes made by AI coding tools before you merge them. It records what the task is allowed to change, compares that plan with the diff and test evidence, and gives the reviewer a clear result.
It does not replace Claude Code, Codex, Cursor, Gemini, or OpenCode. It works beside them as a repo-level guardrail.
Why use it
AI coding tools are fast, but the hard part is often the handoff:
- What exactly was the agent supposed to change?
- Did it touch files outside the task?
- Were tests or validation actually run?
- Is there evidence a reviewer can trust later?
- Did a small request turn into a broad rewrite?
`agent-guardrails` makes those questions explicit and repeatable.
What it checks
- Scope: flags changes outside the declared task, allowed paths, or intended files.
- Validation: checks reported commands and required evidence files.
- Consistency: warns when a task spreads across too many files or directories.
- Risk: surfaces protected paths, interface changes, config changes, migration changes, and secret-like patterns.
- Reviewer output: prints a score, verdict, findings, next actions, and a concise review summary.
- Agent setup: writes repo-local helper files and MCP configuration guidance for supported agents.
Supported agents
`agent-guardrails` can generate or update helper files for:
| Agent | Helper location |
|---|---|
| Claude Code | CLAUDE.md |
| Codex | .codex/instructions.md |
| Cursor | .cursor/rules/agent-guardrails-enforce.mdc |
| Gemini CLI | GEMINI.md |
| OpenCode | .opencode/rules/agent-guardrails-enforce.md |
Requirements
- Node.js 18+
- Git
- A git repository for the project you want to protect
The npm package includes native runtime binaries for Windows x64, macOS x64/arm64, and Linux x64. It also includes the Node runtime.
Quick start
npm inst
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI