DicklesworthstoneDicklesworthstoneCommunityยท1 Agent Skills Included

destructive_command_guard

Blocks dangerous AI agent commands before they destroy your work

Intercepts destructive commands like git reset --hard, rm -rf, and DROP TABLE before AI coding agents execute them. Prevents accidental deletion of uncommitted code, databases, and cloud resources across Claude Code, Codex, Cursor, and other agents. Uses fast pattern matching with safe-command whitelists so normal workflows run without slowdown or false blocks.
npx skills add Dicklesworthstone/destructive_command_guard --all -g -y
Available:

Sets strict safety rules for AI agents working in this repo, forbidding file deletion and irreversible git or filesystem commands without explicit user approval.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install destructive_command_guard?โ–ผ

Run `npx skills add Dicklesworthstone/destructive_command_guard --all -g -y` in your terminal to install the skill globally.

How to stop AI agents from deleting my code?โ–ผ

dcg hooks into your AI coding agent and blocks destructive commands like git reset --hard and rm -rf before they run, showing a clear explanation and safer alternatives.

Which AI agents does dcg support?โ–ผ

It works with Claude Code, Codex CLI, Gemini CLI, GitHub Copilot, Cursor, Grok, and several other agents through native hooks or compatibility layers.

Will dcg slow down my AI agent?โ–ผ

No. It uses SIMD-accelerated filtering with sub-millisecond latency, and safe commands pass through instantly.

Can I customize which commands get blocked?โ–ผ

Yes. You can enable over 50 protection packs for databases, Kubernetes, Docker, and cloud providers, plus add your own allowlist rules in a simple config file.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’