Works with the AI Agents you already use

    Repo Immune System

    by Scrimal

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repo Immune System

    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

    SignalNode IDActionable Constraint
    [gotcha]GOTCHA_002Clock 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_003Falsified 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

    1. Proceed with refactoring src/auth/jwt.py as stateless verification while preserving leeway=30 and multi-key JWKS support.
    2. Wire hooks/claude_code.md or hooks/cursor.md so gotcha_guard.py --hook runs automatically on every file edit (firing a hard [circuit_breaker] stop on the 3rd repeat).
    3. Run python scripts/gotcha_guard.py --learn after 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.py matches edited paths against code_refs and 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 latest git commit fix so every solved bug permanently immunizes your repository.

    What's Inside

    1. scripts/gotcha_guard.py — Standalone zero-dependency trap matcher (--hook, --repo, --learn, --clear) with Circuit Breaker protection.
    2. hooks/ — Drop-in hook configurations for Claude Code (claude_code.md), Cursor (cursor.md), and pi (pi.md).
    3. references/templates.md & gotchas/GOTCHA_001.md — Production templates and live examples for GOTCHA, ADR, and DEAD_END nodes.

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    gotchas/**
    nodes/**
    hooks/**
    scripts/**
    references/**

    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.

    Listed4 days ago
    Updated2 days ago

    What's inside

    Frequently Asked Questions

    Unlike large system prompts that agents might ignore, this skill uses a 'just-in-time' mechanism to inject specific warnings only when an agent attempts to modify a high-risk file, saving tokens and preventing hallucinated fixes.

    Works with any CLI or IDE coding agent. The package includes drop-in hook configurations for Claude Code (PostToolUse), Cursor (afterFileEdit), and pi (tool_result), and runs as a standard CLI command in Windsurf, Cline, or CI pipelines.

    You receive SKILL.md (the guard protocol), scripts/gotcha_guard.py (a zero-dependency trap matcher with Circuit Breaker and --learn git scaffolding), ready-to-use IDE hook configs in hooks/ (claude_code.md, cursor.md, pi.md), production templates in references/templates.md, and a working example node (gotchas/GOTCHA_001.md).

    Yes. You can run gotcha_guard.py --repo in pre-commit hooks or CI checks to surface active gotcha and dead_end warnings for any modified files before changes are merged.

    Setup takes under two minutes: copy the hook snippet for your IDE from hooks/ into your project config, and scaffold your first trap node directly from a past fix using gotcha_guard.py --learn (or copy a template from references/templates.md).

    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.