Agent Guardrails — AI skill for Claude Code
Checks AI-generated code changes before merge: scope, validation, risk, review evidence, and optional Verity receipts.
How to install Agent Guardrails
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open logi-cmd/agent-guardrails and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Guardrails does
Checks AI-generated code changes before merge: scope, validation, risk, review evidence, and optional Verity receipts.
Alternatives in AI
- Agentic SEO Skill — An LLM-first SEO analysis skill for Antigravity, Codex, Claude with 16 specialized sub-skills, 10 specialist a 419 ★
- Gensee Crate — Run AI harnesses like Claude Code, Codex, Copilot, Antigravity, and Omnigent in disposable workspace forks 123 ★
- Wp Acf — Fast WordPress ACF/content-model scan - checks CPT vs taxonomy vs field choices, field-group hygiene, repeater 76 ★
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
Pbi Review
Run the read-only quality gate (pbi-reviewer) on the open project: model rules, DAX hygiene, RLS evidence, PBI
Codeblast
Know what breaks before you merge — mutation-tested code graph with architecture, change & impact maps. Eviden
Codevetter
Verify AI-generated code with execution evidence — deterministic, local-first verification for coding-agent ch
Harness Autonomy
Run the decidable checks an auto-merge policy can trust: block and policy rules only, no heuristics, no LLM. E
Hands
Cross-platform computer-use agent. Your LLM on your mouse, keyboard, and screen. Windows (PowerShell), macOS (
Validate Skill
VALIDATE Skill - Critical validation agent for Claude Code & Codex. Catches AI systematic optimism by scoring
Related Agents
Sec Reviewer
Read-only security review for ClaudeSec — verifies correctness, security risk, regressions, and that scanner c
Gemini Delegation
Optional delegation orchestrator for offloading high-volume, low-risk work to Gemini while maintaining Cloud a
Code Lead
Use before any merge and when project-manager needs technical risk assessment. Guards milestone feasibility, c