Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Destructive Git Guard

    1

    Prevents AI agents from executing destructive Git or filesystem commands without explicit confirmation and impact analysis.

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Destructive Git Guard

    Destructive Git Guard

    Example session with this skill installed

    Clean up my workspace so I can start fresh on the login feature.

    • Read your context and instructions
    • Compiled the destructive git guard

    I've checked the status. Running git clean -fd will permanently delete 4 untracked files including config/secrets.tmp. You have 3 uncommitted changes in auth.ts. Shall I stash these and then run the clean command, or do you explicitly authorize deleting these files permanently?

    Connects securely to your tools. The creator never sees your data.

    What you get

    Prevent accidental deletion of uncommitted work during automated refactoring.Enforce human-in-the-loop confirmation for force pushes and history rewrites.Audit workspace state automatically before any destructive filesystem command.Suggest safer alternatives like git stash instead of hard resets.

    About this skill

    The problem

    AI agents with terminal access can execute destructive commands like git reset --hard or rm -rf, permanently deleting hours of uncommitted work without warning. Standard agents often prioritize efficiency over safety, leading to irreversible data loss in environments without remote backups.

    What it does

    • Intercepts high-risk commands including git reset, checkout, clean, push --force, and rm.
    • Forces a mandatory git status check to audit the working tree before any destructive proposal.
    • Calculates and reports the exact scope of potential data loss to the human operator.
    • Blocks execution until explicit, per-command confirmation is received for the specific action.
    • Recommends non-destructive alternatives like git stash or branch creation before proceeding with deletions.

    Why this beats prompting it yourself

    Simple system prompts for "safety" are often ignored during complex task execution. This skill enforces a specific pre-flight checklist and state-check workflow that makes silent data loss architecturally difficult for the agent.

    Use cases

    • Protecting local-only projects that lack a remote origin or recent commits.
    • Managing agents running in external terminals or CLI wrappers outside of IDE undo-history.
    • Preventing accidental history overwrites during complex rebase or force-push operations.
    • Ensuring untracked files are not nuked during automated workspace cleanup.

    Known limitations

    Requires the agent to have access to standard Git and shell binaries to perform state checks. It cannot prevent data loss if the agent is explicitly instructed by the user to bypass all safety protocols.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    • Passed all security checks, Safe to install

    Listed1 month ago

    What's inside

    Frequently Asked Questions