safe-file-removal

Community

Safe, reversible file removals via rename.

Authorphamhung075
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Use safe-rm to remove files by renaming them to .obsolete instead of permanently deleting. This makes deletions reversible, collision-safe, and hook-compliant.

Core Features & Use Cases

  • Reversible deletions: Restore files by renaming back from .obsolete.
  • Collision safe: Timestamp suffix when there is a collision.
  • Hook-safe: Works within pre-tool hook constraints.
  • Batch workflows: Support for bulk operations and recovery templates.

Quick Start

Run: ./.claude/bin/safe-rm [files or directories]. Then verify renamed files exist as [name].obsolete and recover with mv [name].obsolete [name].

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: safe-file-removal
Download link: https://github.com/phamhung075/4genthub-hooks/archive/main.zip#safe-file-removal

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.