Skip to main content
在 Manus 中运行任何 Skill
一键导入

safe-delete

星标4
分支1
更新时间2026年4月1日 15:22

Intercept all delete operations and use `trash` (ali-rantakari) instead of `rm`. ALWAYS use `trash` instead of `rm` when deleting files or directories. Files moved to trash can be recovered from ~/.Trash/ RULES: - `rm -rf PATH` → `trash PATH` (no -rf needed, trash handles dirs) - `rm PATH` → `trash PATH` - `rm -f PATH` → `trash PATH` - NEVER use raw `rm` command in exec - The only exception is `/tmp/` cleanup where trash is unnecessary trash is installed at /opt/homebrew/bin/trash (ali-rantakari version). It moves files to macOS ~/.Trash/ (recoverable). NOTE: OpenClaw exec does NOT source .zshrc, so shell aliases (safeshell wrap rm) are NOT available. You must explicitly use `trash` in all exec commands.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly