Repo Guards — AI skill for Claude Code
RepoGuards — cross-repo guards for AI coding agents.
How to install Repo Guards
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yybd/repo-guards and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Repo Guards does
RepoGuards — cross-repo guards for AI coding agents. Refuses a blind write or a sweeping commit into a repo the session is not standing in, and closes every place it left open. A Claude Code plugin marketplace.
Alternatives in AI
- Firm — Convene your standing AI staff — memos on every beat, a board session without you, minutes with dissent preser 1.3k ★
- Review Video — Review a rendered video with AI vision 113 ★
- Aar Loop — Run an After Action Review after any AI session and write concrete lessons so your agent stops repeating mista 78 ★
README
*English · [עברית](README.he.md)*
RepoGuards
*Formerly Grove. Renamed in 0.2.0 — see [Upgrading from Grove](#upgrading-from-grove).*
**The safety and orchestration layer for AI agents in multi-repo environments.**

An AI agent (like Claude Code) is a brilliant tool when operating within a single project folder (Repository). However, in the real world, tasks cross boundaries: shipping a feature requires a code change (App), a data schema update (Hub), and editing a marketing page (Web). The moment the agent "reaches out" to a foreign directory, it loses touch with reality. Because the `git status` command is limited to its current working directory, the agent might blindly overwrite another developer's open files, push code to the wrong branch, or perform a destructive blind commit.
**RepoGuards was built to solve exactly this.** It is a set of guardrails that run inside the session, at the moment of the tool call: they detect the anomaly, refuse the two actions that cannot be undone, and hand the agent back the picture it was missing so it can correct itself.
**Built for Claude Code, and tested only there.** The guards are Claude Code hooks: they read its hook protocol and its tool names (`Bash`, `Edit`, `Write`), and `close.py` reads the journal those hooks write. The idea carries to any agent with a pre-tool hook; the code does not, yet.
The Components: What does RepoGuards do?
The system provides 3 critical solutions:
1. Active Guardrails (The Guard Hooks)
- Blocking Blind Commits (
scope_foreign_commits): If the AI stands in directory A and attempts to rungit commit -ain directory B, the system blocks it. Instead of a generic f
Related Skills
Cross Repo Guards
Cross-repo guards for AI coding agents. Refuses a blind write or a sweeping commit into a repo the session is
One Fact One Place
A git pre-commit hook for repos AI agents write to: it stops an agent's commit when a line repeats a fact the
Cross Agent Session Resumer
Resume AI coding sessions across providers: converts Codex, Claude, Gemini, and other session formats through
Agents Handoff
Write, verify, and hand off complete AI working sessions across any coding harness (Claude Code, Codex, DeepSe
Governance Records Ledger Conventions
Append-only conventions for AI-agent projects: a decisions table, a 16-column task ledger CSV, dated open-ques
Self Training Loop Skill
Train any prompt, writer or agent the way AI is trained. Fresh agents write, blind judges score, the judge wri
Related Agents
Rug
Watches every open position from the moment of fill for rug or malicious signals. Raises alarms; never closes
FirstTimeUser
Code-blind first-time customer. Given only a URL and a goal, uses the app in a browser as a stranger would and
Survey Blind Placer
The blind half of GATE 1 — place each row of the GATE 1 worksheet into a taxonomy cell using only TAXONOMY.md