Skip to content
Data
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.

From plugin
memos
12k3 skills5 agents

Claude Code

$ npx -y skills add MemTensor/MemOS --skill safe-file-deletion --agent claude-code

SKILL.md

safe-file-deletion.SKILL.md
name: safe-file-deletion
description: 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.

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:

{
  "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.

@memtensor
Ships withmemos

Self-evolving memory OS for LLM & AI Agents: ultra-persistent memory, hybrid-retrieval, and cross-task skill reuse, with 35.24% token savings and DeepSeek Harness support.

12k3 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
12.2k
Star history of MemTensor/MemOS on GitHub, a chart by star-history.com

Other skills on memos.

ask-user-question

ask-user-question

Ask users questions via the UI. Use when you need clarification, user preferences, or confirmation before proceeding. The user…

@memtensor@memtensorInstall Skill
dev-browser

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web…

@memtensor@memtensorInstall Skill

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem05d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog11d41k
@posthog@posthogInstall Skill

Questions about safe-file-deletion.

Which coding agents can use safe-file-deletion?
safe-file-deletion installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.