safe-file-deletion

Require explicit user permission before deleting files via rm, unlink, or fs.rm.

6|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/hlbbbbbbb/No-worries --skill safe-file-deletion-hlbbbbbbb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-file-deletion
Source: https://github.com/hlbbbbbbb/No-worries/tree/main/noworries_app/apps/desktop/skills/safe-file-deletion
Command: npx skills add https://github.com/hlbbbbbbb/No-worries --skill safe-file-deletion-hlbbbbbbb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental or unauthorized deletion of files by requiring explicit user confirmation before any file removal operation is executed.

Core Features & Use Cases

  • Explicit Permission: Ensures that no file is deleted without the user's direct consent.
  • Safety Guardrail: Protects against accidental data loss from automated scripts or user errors.
  • Use Case: When a script is about to delete old log files, this Skill will prompt the user for confirmation, listing the files to be deleted, and only proceed if the user explicitly allows it.

Quick Start

Use the safe-file-deletion skill to delete the file '/path/to/important_document.txt'.

Frequently Asked Questions about safe-file-deletion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental file deletion when running automated scripts?

To prevent accidental file deletion, you need a mechanism that enforces explicit user permission before executing remove, unlink, or fs.rm commands. This safety guardrail ensures automated scripts cannot remove files from disk without direct user consent.

How can I require user confirmation before a file is permanently removed?

You can require user confirmation before a file is permanently removed by triggering a request_file_permission call for any deletion operation. The file removal process pauses and only proceeds if the user explicitly allows the action.

Does fs.rm require explicit user approval to execute file removal?

Yes, fs.rm requires explicit user approval to execute file removal when this safety mechanism is applied. The system intercepts the fs.rm call and halts execution until the user reviews the target files and grants explicit permission.

What is the best way to add a safety guardrail for unlink and rm commands?

The best way to add a safety guardrail for unlink and rm commands is to enforce an explicit permission check that covers all file removal functions. This approach prevents unauthorized data loss by pausing operations until explicit user consent is granted.

Can I see a list of files before approving a deletion operation?

Yes, you can see a list of files before approving a deletion operation. When a removal command is initiated, the confirmation step prompts the user by listing the specific files to be deleted, ensuring informed consent before proceeding with the removal.