delete-guard 1.0.0
Holds recursive deletes (rm -rf, Remove-Item -Recurse, rmdir /s, git clean -f), shows what would go, and offers move-to-trash with /undo-delete, delete, or refuse. Leaves a receipt.
Install
/plugin marketplace add Tihi321/claude-mods /plugin install delete-guard@tihi-mods
Run both lines inside Claude Code.
Hooks into
- Tool calls
- Slash commands