Agent Gates — AI skill for Claude Code
Stop telling your AI agent the rules — enforce them.
How to install Agent Gates
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open skyn9/agent-gates and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Gates does
Stop telling your AI agent the rules — enforce them. Hook-based commit gates for Claude Code.
Alternatives in AI
- Memory Forge Rs — Stop resetting satisfying AI chats — edit the memory instead 474 ★
- Mancode — AI coding agent harness 358 ★
- Styleseed — Claude Code & Cursor design system 325 ★
README
agent-gates
**You wrote the rule in CLAUDE.md. It didn't stick. Make it mechanical instead.**
Hook-based gates for Claude Code: the commit is denied until the code has actually been reviewed, and the files your agent reads every session stay under a size budget.
[](LICENSE) [](https://claude.com/claude-code) [](tests/) [](https://github.com/skyn9/agent-gates/actions/workflows/tests.yml)
**English** | [中文](https://github.com/skyn9/agent-gates/blob/main/docs/README_ZH.md)
The problem this is for
You wrote *"never truncate the output of that command"* in `CLAUDE.md`.
You wrote it in the journal. You wrote it into memory. You turned it into a mechanical step.
**You still hit it four times the same day.**
Not because the rule was unclear — it was already as clear as a rule gets. Every form discipline can take had been used up. What was left was to stop asking, and start denying.
That's the whole idea. Reminders degrade. Gates don't.
The full reasoning, including the three silent failures that happened *inside* the gate while building it: [why mechanism, not discipline](docs/why-mechanism-not-discipline.md).
What it looks like
Reminder mode — one line, doesn't block:
🔍 This commit touches 1 code file (payment.py …) — review before committing:
/open-code-review:delegate-review
(…don't substitute "I'll just read the diff myself" — that only shows you
the dimensions you already thought of.)
Hard gate — denied:
decision: deny
Files not yet reviewed (or edited after review): payment.py
Run /open-code-review:delegate-review first. The gate opens automatically once
it has; editing a file again requires a fresh review. The gate
Related Skills
Model Citizen
The control plane for your coding agents, however you run them. One checkout of rules, skills, subagents, hook
AI Coding Rules Scaffold
Two-layer enforcement (pre-commit hook + CI mirror) for small teams using AI agents. Catches debug leaks, file
Claude Code Practices
Interactive AI installer for Claude Code: setup once, keep context across sessions, enforce critical rules wit
Rulekeep
Enforce your project's rules while an AI agent works — in Claude Code, and again in CI.
Git AI
Stop writing commit messages by hand. AI-powered conventional commits from your staged changes — powered by Cl
Claude Session Hooks Template
Template for AI agents to create Claude Code session hook plugins - includes SessionStart, UserPromptSubmit, S
Related Agents
Autopilot Orchestrator
Full RTL design pipeline orchestrator. Manages 6-phase flow with dual-layer phase gates, parallel agent execut
A01 Orchestrator
A01 ORCH — Swarm control plane. Use to decompose a brief into a task DAG, schedule/assign tasks to the other 1
Git Purist
The sacred guardian of git history. Use this agent to review commits, split bloated changes, enforce conventio