What problem does it solve? Accidental deletion of tracked files can slip into commits and pushes unnoticed, causing data loss and broken repositories. This Skill intercepts staged deletions and mass file removals before they reach the remote, forcing an explicit justification for any intentional deletion. ## Core Features & Use Cases - Staged Deletion Detection: Runs check_file_deletion_guard.sh --staged to block any Git D-status paths before commit time. - Pre-Push Range Audit: Audits a commit range (e.g., origin/main..HEAD) for file deletions before pushing to a remote. - Controlled Override Policy: Deliberate deletions require GIT_ALLOW_FILE_DELETIONS=1 plus a recorded justification preserved in the commit or PR, instead of bypassing hooks with --no-verify. - Use Case: A developer runs git add -u after refactoring and unknowingly stages the deletion of a fixture file; the guard halts the commit and reports GIT_SCOPE_E_FILE_DELETION until the deletion is justified or reverted. ## Quick Start Ask the agent to run the file deletion guard on your staged changes before committing to confirm no tracked files are being accidentally deleted.