dcg-safety
Installation
SKILL.md
DCG Safety Guard
Replaces: git-safety-guard (deprecated)
DCG is a Rust-based safety hook that blocks dangerous commands before they execute.
What It Blocks
Git Operations
git reset --hard- Discards uncommitted changesgit checkout -- <files>- Discards file changesgit clean -f- Deletes untracked filesgit push --force- Rewrites remote historygit branch -D- Force deletes branchesgit stash drop/clear- Deletes stashed work
Filesystem Operations
rm -rf /orrm -rf ~- Recursive delete of important pathschmod -R 777- Insecure permissions