Works with the AI tools you already use
Destructive Git Guard
by YK
Prevents AI agents from executing destructive Git or filesystem commands without explicit confirmation and impact analysis.
Secure checkout via Stripe
See it in action
You say
Clean up my workspace so I can start fresh on the login feature.
Your agent does
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?
What you get
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, andrm. - Forces a mandatory
git statuscheck 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 stashor 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
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
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 today
- 30-day refund guarantee
- One-time purchase, yours forever
- Secure checkout via Stripe
Creator
5 skills on Agensi
Building AI developer tools that make coding agents safer and more reliable. Creator of AgentGuard — production-ready AI coding guard skills that help prevent costly development mistakes.
Also available in a bundle
Frequently Asked Questions
Popular in Workflow Automation
completion verifier
Verified task closure protocol that prevents project rot by demanding proof of completion before clearing logs.

Enterprise Automation Engineering Architect
Designs and upgrades business automation systems into modular, reliable, observable, secure, low-maintenance, enterprise-grade workflows.

skill miner
Analyzes your agent conversation history to find and automate your most frequent recurring tasks.

Discover, Verify, Transact, and Rate an Unknown AI Agent - Aidress
Discover, verify, and transact with other autonomous AI agents using the Aidress registry.