git-recovery
Installation
SKILL.md
Git Safety and Recovery
Purpose: This skill teaches AI agents to work safely with Git and recover from common mistakes without losing work.
Core Principles
- Git Rarely Deletes - Almost everything is recoverable via reflog
- Understand Before Destroying - Know what
--hard,--forcedo - Backup Before Risky Operations - Use stash or branches
- Revert, Don't Reset - For shared branches
Understanding Git's Safety Net
The Reflog (Your Safety Net)
What is reflog? Git's reflog records every HEAD movement. It's your "undo history" for Git operations.