概要
The validate-git-safety skill serves as a critical protection layer for AI-driven development, ensuring that Claude Code does not perform destructive Git operations. It automatically identifies and protects sensitive branch patterns, such as versioned releases and main branches, while blocking dangerous commands like 'rebase --all' or 'filter-branch --branches'. By enforcing mandatory backups and worktree isolation, it provides a fail-safe environment for complex repository maintenance and history manipulation, allowing developers to leverage AI agents without the risk of irreversible repository corruption.