safe-file-deletion

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

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/loganand612/Neoverse-26 --skill safe-file-deletion-loganand612
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safe-file-deletion
Source: https://github.com/loganand612/Neoverse-26/tree/main/packages/agent-core/mcp-tools/safe-file-deletion
Command: npx skills add https://github.com/loganand612/Neoverse-26 --skill safe-file-deletion-loganand612

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Mandatory Confirmation: Ensures user approval for all file deletion requests.
  • Batch Deletion Support: Handles requests for deleting multiple files simultaneously.
  • Use Case: When a script attempts to delete a directory with rm -rf, this Skill will pause execution and ask for explicit user consent before proceeding.

Quick Start

Use the safe-file-deletion skill to delete the file at /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 rm commands?

You can prevent accidental file deletion by enforcing explicit user confirmation before any file removal operations. This requires obtaining user consent via a permission call before proceeding with commands like rm or unlink.

Can I require user permission for batch file deletions?

Yes, you can require user permission for batch file deletions. The mechanism handles requests for deleting multiple files simultaneously, ensuring explicit user approval is obtained before removing any files from disk.

What commands does mandatory file deletion confirmation apply to?

Mandatory file deletion confirmation applies to commands like rm, unlink, and fs.rm. It ensures user consent is obtained via a request_file_permission call for both single and batched file deletions.

How do I stop a script from deleting a directory with rm -rf without asking?

To stop a script from deleting a directory with rm -rf, you can enforce explicit user consent before proceeding. The execution pauses and asks for explicit user permission before any file removal operation occurs.

Does file deletion protection work with fs.rm and unlink operations?

Yes, file deletion protection works with fs.rm and unlink operations. It enforces explicit user permission before any file removal, ensuring user consent is obtained via a request_file_permission call for single or batched deletions.

What is the best way to add a safety check before removing files from disk?

The best way to add a safety check before removing files from disk is to enforce mandatory confirmation. This pauses execution and requires explicit user approval via a permission call before any file removal operation proceeds.