Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard combines both via PreToolUse hooks. Use when working on production systems, running agents autonomously, restricting edits to a directory, or during migrations, deploys, and data changes.
Install
npx skills add affaan-m/ECC --skill safety-guardnpx skills add affaan-m/ECC --skill safety-guard -a claude-code -gnpx skills add affaan-m/ECC --skill safety-guard -a codex -ggemini skills install https://github.com/affaan-m/ECC.git --path skills/safety-guardgh skill install affaan-m/ECC safety-guardgit clone --depth 1 https://github.com/affaan-m/ECC /tmp/affaan-m__ECC
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/affaan-m__ECC/skills/safety-guard ~/.claude/skills/safety-guard # Claude Code
cp -R /tmp/affaan-m__ECC/skills/safety-guard ~/.agents/skills/safety-guard # Codex, Cursor, Gemini CLI, Copilot, OpenCode