file-deletion-rules

Installation
SKILL.md

File Deletion Rules

Rule (CRITICAL)

Skip if already deleted: If the target file does not exist in the working tree, do nothing. This rule applies only to files that currently exist.

NEVER use rm or unlink commands directly.

ALWAYS use git stash before deleting files to preserve them.

Apply without confirmation: When file deletion is needed, follow this rule without asking the user for confirmation. Execute the deletion process defined below.

Prohibited Commands

The following commands are strictly prohibited:

  • rm (any variant: rm -rf, rm -f, etc.)
  • unlink
  • Any direct file deletion without git stash
Related skills
Installs
8
First Seen
Feb 19, 2026