Agent skill · Data & Analytics

gateguard

Fact-forcing gate that blocks Edit/Write/Bash (including MultiEdit) and demands concrete investigation (importers, data schemas, user instruction) before allowing the action. Measurably improves output quality by +2.25 points vs ungated agents.

mturacgithub.com/mturacGitHub ↗
codexcopilotcursorMIT
Install
npx skills add mturac/everything-openai-codex --skill gateguard --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/gateguard/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 84
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# GateGuard — Fact-Forcing Pre-Action Gate A PreToolUse hook that forces Codex to investigate before editing. Instead of self-evaluation ("are you sure?"), it demands concrete facts. The act of investigation creates awareness that self-evaluation never did. ## When to Activate - Working on any codebase where file edits affect multiple modules - Projects with data files that have specific schemas or date formats - Teams where AI-generated code must match existing patterns - Any workflow where Codex tends to guess instead of investigating ## Core Concept LLM self-evaluation doesn't work. Ask "did you violate any policies?" and the answer is always "no." This is verified experimentally. But asking "list every file that imports this module" forces the LLM to run Grep and Read. The investigation itself creates context that changes the output. **Three-stage gate:** ``` 1. DENY — block the first Edit/Write/Bash attempt 2. FORCE — tell the model exactly which facts to gather 3. ALLOW — permit retry after facts are presented ``` No competitor does all three. Most stop at deny. ## Evidence Two independent A/B tests, identical agents, same task: | Task | Gated | Ungated | Gap | | --- | --- |

What's inside
Steps it walks through
  1. When to Activate
  2. Core Concept
  3. Evidence
  4. Gate Types
  5. Edit / MultiEdit Gate (first edit per file)
  6. Write Gate (first new file creation)
  7. Destructive Bash Gate (every destructive command)
  8. Routine Bash Gate (once per session)
  9. Quick Start
  10. Option A: Use the ecc hook (zero install)
  11. Option B: Full package with config
  12. Anti-Patterns
  13. Best Practices
  14. Related Skills
Commands it runs
pip install gateguard-ai
gateguard init
More from everything-openai-codex
All skills →
About this skill
What does the gateguard skill do?

Fact-forcing gate that blocks Edit/Write/Bash (including MultiEdit) and demands concrete investigation (importers, data schemas, user instruction) before allowing the action. Measurably improves output quality by +2.25 points vs ungated agents.

How do I install it?

Run `npx skills add mturac/everything-openai-codex --skill gateguard --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going