use-trash
Installation
SKILL.md
Use Trash Instead of rm
Files deleted with rm are gone permanently — no undo, no recovery. trash
moves them to the macOS Trash instead, where they sit safely until you choose
to empty it. This skill sets up that safer default for the session.
Step 1: Check if trash is installed
which trash 2>/dev/null
-
Found — confirm it's available and move on.
-
Not found — let the user know and offer to install:
"
trashisn't installed. It's a small macOS utility that moves files to the Trash instead of permanently deleting them. Want me to install it with Homebrew?"