Git Safety Protocol
Enforces safe Git practices to prevent accidental data loss and destructive version control operations during development.
The Git Safety Protocol skill provides a protective layer for Claude Code by mandating pre-check validations and preventing destructive commands like hard resets or unchecked file checkouts. It ensures that any 'undo' requests are handled through careful manual editing and diffing rather than blanket file reverts, preserving hours of complex coding work and preventing the accidental deletion of uncommitted progress or provider-specific logic.
主要功能
01Mandates git diff usage before reverting any changes to assess impact
02Blocks high-risk commands like git reset --hard and git clean without explicit consent
03Prevents destructive git checkout operations on unexamined files
04618 GitHub stars
05Enforces manual editing for targeted reverts instead of wholesale file resets
06Requires git status verification before any major repository operation
使用场景
01Managing commits in high-stakes environments where accidental data loss must be avoided
02Safely undoing a specific logic error without losing other valuable uncommitted work
03Preventing the accidental deletion of complex prompt engineering or configuration files