Skip to content
cccskills
FreePublished on GitHub

safe-file-deletion

Adds an explicit permission step before an agent deletes files or directories. It covers shell commands and deletion scripts, groups multiple files into one request, and requires the agent to stop when permission is denied.

OriginalShow the original 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.

See how to install

Good for

  • Confirming permission before deleting files
  • Reviewing multiple deletions in one request
  • Adding approval steps to cleanup scripts

Files included (1)

  • SKILL.md1.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Lets an agent ask for clarification, preferences, or approval through an on-screen dialog. Questions can offer single or multiple choices and custom text input, giving the agent a user response to guide its next step.

  • Clarifying an ambiguous task
  • Choosing how to organize files
  • Confirming deletion or email sending
MemTensor/MemOS11.9KUpdated Oct 17, 2026

Configure and manage BrowserWing to create, save, and replay browser automation scripts. Use AI exploration to generate repeatable workflows, export scripts as SKILL.md files for agents, and diagnose service or execution problems.

  • Setting up BrowserWing and its AI model connection
  • Generating reusable scripts through AI website exploration
  • Exporting browser scripts as SKILL.md files
MemTensor/MemOS11.9KUpdated Oct 17, 2026

Automate browser tasks through BrowserWing's HTTP API, from navigation and form filling to extracting search results. Inspect page structure to identify controls, capture screenshots, and run multiple actions in sequence.

  • Filling and submitting web forms
  • Extracting search results and links
  • Capturing screenshots and inspecting page structure
MemTensor/MemOS11.9KUpdated Oct 17, 2026

dev-browser

FreeSummary

Automate website navigation, form filling, data extraction, and web app checks while keeping page state between scripts. Use a new Chromium session or connect to an existing Chrome session through an extension.

  • Completing workflows in an existing signed-in Chrome session
  • Filling forms and extracting website data
  • Checking web app behavior and capturing screenshots
MemTensor/MemOS11.9KUpdated Oct 17, 2026

memos-local

FreeSummary

Set up, configure, update, and troubleshoot persistent memory for OpenClaw agents. The plugin stores conversations locally and supports automatic recall, task summaries, reusable skills derived from successful tasks, and a visual memory manager.

  • Setting up persistent memory for OpenClaw
  • Updating or troubleshooting the memory plugin
  • Choosing local or external memory search models
MemTensor/MemOS11.9KUpdated Oct 17, 2026

Use MemOS Local to find past conversations, preferences, and decisions, then retrieve original messages or task context. The skill also guides sharing memories and reusable procedures with local agents or a configured team.

  • Find preferences and decisions from past conversations
  • Read original messages and surrounding dialogue
  • Share memories with local agents or a team
MemTensor/MemOS11.9KUpdated Oct 17, 2026

See all skills by MemTensor

Report a problem with this skill