diazmelgarejo/orama-system/git-file-deletion-guard

Claude Code and agent skill by diazmelgarejo/orama-system

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Prevent accidental whole-file deletion at commit and pre-push time. Triggers: deleted files, mass deletion, git diff-filter=D, staged deletion, git add -u, API tree publication, tree SHA verification, and pre-push deletion audit.

Install

npx vskill@latest install diazmelgarejo/orama-system/git-file-deletion-guard

SKILL.md

The same SKILL.md was published earlier as diazmelgarejo/orama-system/git-file-deletion-guard.

Git File Deletion Guard

Thin entrypoint. Full invariant, proof bundle, override policy, and

When to load

  • Before staging, committing, or pushing a change that may remove a tracked file
  • When git status or a PR shows unexpected deletions
  • Before updating a Git ref through a Git data/tree API
  • When the guard reports GIT_SCOPE_E_FILE_DELETION

Fast path

bash
bash scripts/git/check_file_deletion_guard.sh --staged
bash scripts/git/check_file_deletion_guard.sh --range origin/main..HEAD

The local hooks run both checks automatically. The command only blocks Git D-status paths; normal line removals and file modifications remain allowed.

Deliberate deletion

Do not bypass with --no-verify. State the reason explicitly for the one commit or push, and preserve that rationale in the commit/PR:

bash
GIT_ALLOW_FILE_DELETIONS=1 \
GIT_FILE_DELETION_JUSTIFICATION='retire obsolete generated fixture' \
git commit -m 'chore: remove obsolete fixture'

Parent skill

`../git-history-surgery/SKILL.md` — decision item 16.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/diazmelgarejo/orama-system/git-file-deletion-guard/badge)](https://verified-skill.com/skills/diazmelgarejo/orama-system/git-file-deletion-guard)

Something wrong with this skill or its page? Tell us.