
Description
gateguard is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It is a PreToolUse hook for Claude Code that blocks the first Edit, Write, Bash, MultiEdit or NotebookEdit attempt until the agent has presented concrete facts about the code it wants to change. Instead of asking the model whether it is sure, the gate asks for specifics, such as a list of every file that imports a module, so the agent has to run its search and read tools before editing. The skill's premise is that the investigation itself changes the output. It is useful in codebases where one edit affects several modules, in projects with data files that have fixed schemas or date formats, in teams that need AI-written code to match existing patterns, and in any workflow where the agent tends to guess rather than check. The gate works in three stages. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows a Gen Agent Trust Hub warning, with Socket and Snyk passing.…
Highlights
- Blocks the first edit until facts are shown
- Three-stage gate
- Covers Edit, Write, Bash and notebook edits
- Targets guessed changes across modules
Ratings & Reviews
No ratings yet
Be the first to rate gateguard.
People also visit
gateguard FAQ
What does the gateguard skill do?
It is a PreToolUse hook that stops Claude Code's first edit or command and requires the agent to show facts about the code first.
Which tools does it gate?
The first Edit, Write, Bash, MultiEdit or NotebookEdit call, according to the listing.
Why not just ask the model if it is sure?
The skill says self-evaluation questions are answered with no, while asking for specific facts makes the agent investigate.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill gateguard
Is it free?
Yes. It is free and open source.
Are there security warnings?
The skills.sh listing shows Gen Agent Trust Hub with a warning, while Socket and Snyk pass.
What are the best gateguard alternatives?
Popular alternatives to gateguard include hookify-rules, git-guardrails-claude-code and continuous-learning. See all gateguard alternatives




