safe-rm

Wrapper around rm -rf with safety checks. Use this instead of direct rm -rf commands.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "safe-rm" with this command: npx skills add beshkenadze/claude-skills-marketplace/beshkenadze-claude-skills-marketplace-safe-rm

Safe RM

Overview

Wrapper around rm -rf with safety checks. Use this instead of direct rm -rf commands.

When to Use

  • Deleting directories or files recursively

  • Any rm -rf or rm -r operation

  • Cleaning up temporary files/folders

Usage

Dry-run (default) - shows what would be deleted

safe-rm /path/to/delete

Actually delete (if path is not protected)

safe-rm --force /path/to/delete safe-rm -f /path/to/delete

Protected Paths

The script blocks deletion of:

System: / , /bin , /boot , /dev , /etc , /lib , /opt , /proc , /root , /sbin , /sys , /usr , /var , /home , /Users

Home config: ~ , ~/.ssh , ~/.gnupg , ~/.config , ~/.local , ~/.claude , ~/.zshrc , ~/.bashrc

Project: .git , git repository root

Exit Codes

  • 0 — success (or dry-run completed)

  • 1 — path is protected

  • 2 — path does not exist

Instructions for Claude

  • NEVER use rm -rf directly — always use safe-rm script

  • Run without --force first to preview what will be deleted

  • If path is protected, inform user and do not proceed

  • Only use --force after confirming dry-run output is correct

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

gitea-tea

No summary provided by upstream source.

Repository SourceNeeds Review
General

zenstack

No summary provided by upstream source.

Repository SourceNeeds Review
General

wget-reader

No summary provided by upstream source.

Repository SourceNeeds Review
General

ios-design-review

No summary provided by upstream source.

Repository SourceNeeds Review