- Home
- Skills
- Code Quality & Review
- Repo Immune System
Works with the AI Agents you already use
Repo Immune System
by Scrimal
On Thursday, it edits the same file and silently reintroduces the exact same bug, because nothing stopped it at the moment of the edit.
$9.99
Repo Immune System
Example session with this skill installed
Check src/auth/jwt.py for any active gotchas or dead ends before I start refactoring the token validation logic.
- Read your context and instructions
- Compiled the repo immune system
I ran gotcha_guard.py against src/auth/jwt.py before making any edits. Two repository constraints matched this path:
Repository Immune System Report
| Signal | Node ID | Actionable Constraint |
|---|---|---|
[gotcha] | GOTCHA_002 | Clock Skew & Key Rotation: Always keep leeway=30 on jwt.decode() and support multi-key JWKS lookup during zero-downtime key rotation. |
[dead_end] | DEAD_END_003 | Falsified Path: Do not introduce stateful Redis session caches here — failed latency & complexity criteria in prior benchmarks (kill-criterion: sub-2ms local verification). |
$ python scripts/gotcha_guard.py src/auth/jwt.py
[gotcha] GOTCHA_002 (src/auth/jwt.py): Keep leeway=30 on jwt.decode() and support multi-key JWKS rotation.
[dead_end] DEAD_END_003 (src/auth/jwt.py): Do not introduce stateful Redis session caches (failed latency benchmarks).
Next Steps
- Proceed with refactoring
src/auth/jwt.pyas stateless verification while preservingleeway=30and multi-key JWKS support. - Wire
hooks/claude_code.mdorhooks/cursor.mdsogotcha_guard.py --hookruns automatically on every file edit (firing a hard[circuit_breaker]stop on the 3rd repeat). - Run
python scripts/gotcha_guard.py --learnafter fixing any new trap to scaffold a draft node from your latest commit.
Connects securely to your tools. The creator never sees your data.
About this skill
Your AI agent fixes a tricky auth bug on Tuesday. On Thursday, it edits the same file and silently reintroduces the exact same bug, because nothing stopped it at the moment of the edit.
Repo Immune System acts like antibodies for your codebase. It hooks into your IDE or pre-commit workflow and injects file-specific traps ([gotcha]) and forbidden paths ([dead_end]) the second an agent touches fragile code.
Why It Beats Generic CLAUDE.md Rules
- Just-in-Time File Guard: Instead of dumping 400 lines of global rules into every prompt,
gotcha_guard.pymatches edited paths againstcode_refsand surfaces only the warnings bound to that exact file. - Gotcha vs. Dead-End Enforcement: Distinguishes between edge-case cautions (
[gotcha]) and falsified architectural paths ([dead_end]) that the agent must not retry. - 3-Strike Circuit Breaker: Tracks consecutive triggers per trap (with automatic reset and 1h TTL) and fires a hard
[circuit_breaker]stop on the 3rd repeat so your agent stops burning tokens in an infinite loop. - 1-Command Trap Scaffolding (
--learn): Generates draft gotcha nodes directly from your latestgit commitfix so every solved bug permanently immunizes your repository.
What's Inside
scripts/gotcha_guard.py— Standalone zero-dependency trap matcher (--hook,--repo,--learn,--clear) with Circuit Breaker protection.hooks/— Drop-in hook configurations for Claude Code (claude_code.md), Cursor (cursor.md), and pi (pi.md).references/templates.md&gotchas/GOTCHA_001.md— Production templates and live examples forGOTCHA,ADR, andDEAD_ENDnodes.
File path matching relies on exact or normalized relative paths declared in code_refs rather than AST symbol resolution. Requires wiring the included hook snippets into your IDE config (hooks/) or pre-commit script for automatic execution.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.10+
- Optional
Git
Zero external dependencies or network requests. Works standalone on explicit file paths or IDE hook payloads; Git is only used for --repo staged checks and --learn commit scaffolding.
Permissions
File Scopes
Read Files scans gotcha/dead-end Markdown nodes; Write Files updates local .guard_state.json and scaffolds draft nodes via --learn; Terminal / Shell executes gotcha_guard.py in IDE hooks or CI.
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.