Agent skill

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.

MemTensorgithub.com/MemTensorGitHub ↗
claude-codeApache-2.0
Install
npx skills add MemTensor/MemOS --skill safe-file-deletion --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Path: apps/openwork-memos-integration/apps/desktop/skills/safe-file-deletion/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 10,587 · +166 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Safe File Deletion ## Rule Before deleting ANY file, you MUST: 1. Call `request_file_permission` with `operation: "delete"` 2. For multiple files, use `filePaths` array (not multiple calls) 3. Wait for response 4. Only proceed if "allowed" 5. If "denied", acknowledge and do NOT delete ## Applies To - `rm` commands (single or multiple files) - `rm -rf` (directories) - `unlink`, `fs.rm`, `fs.rmdir` - Any script or tool that deletes files ## Examples Single file: ```json { "operation": "delete", "filePath": "/path/to/file.txt" } ``` Multiple files (batched into one prompt): ```json { "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.

What's inside
Steps it walks through
  1. Rule
  2. Applies To
  3. Examples
  4. No Workarounds
More from MemOS
All skills →
About this skill
What does the safe-file-deletion skill do?

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.

How do I install it?

Run `npx skills add MemTensor/MemOS --skill safe-file-deletion --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From MemTensor/MemOS, a repository with 10,587 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going