Accomplish safe-file-deletion
Enforces explicit user permission before any file deletion. Activates when you're about to use rm, unlink, fs.rm, or any operation that removes files from disk. MUST be followed for all delete operations.
install
source · Clone the upstream repo
git clone https://github.com/accomplish-ai/accomplish
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/accomplish-ai/accomplish "$T" && mkdir -p ~/.claude/skills && cp -r "$T/packages/agent-core/mcp-tools/safe-file-deletion" ~/.claude/skills/accomplish-ai-accomplish-safe-file-deletion && rm -rf "$T"
manifest:
packages/agent-core/mcp-tools/safe-file-deletion/SKILL.mdsource content
Safe File Deletion
Rule
Before deleting ANY file, you MUST:
- Call
withrequest_file_permissionoperation: "delete" - For multiple files, use
array (not multiple calls)filePaths - Wait for response
- Only proceed if "allowed"
- If "denied", acknowledge and do NOT delete
Applies To
commands (single or multiple files)rm
(directories)rm -rf
,unlink
,fs.rmfs.rmdir- Any script or tool that deletes files
Examples
Single file:
{ "operation": "delete", "filePath": "/path/to/file.txt" }
Multiple files (batched into one prompt):
{ "operation": "delete", "filePaths": ["/path/to/file1.txt", "/path/to/file2.txt"] }
No Workarounds
Never bypass deletion warnings by:
- Emptying files instead of deleting
- Moving to hidden/temp locations
- Using obscure commands
The user will see a prominent warning. Wait for explicit approval.