Gitrules โ Git skill for Claude Code
Critical Git Safety Protocol.
How to install Gitrules
Installs to ~/.claude/skills/waynesutton-markdown-site-gitrules/SKILL.md
mkdir -p ~/.claude/skills/waynesutton-markdown-site-gitrules && curl -fsSL https://raw.githubusercontent.com/waynesutton/markdown-site/HEAD/.claude/skills/gitrules.md -o ~/.claude/skills/waynesutton-markdown-site-gitrules/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Gitrules does
Critical Git Safety Protocol
**๐จ NEVER USE `git checkout` TO REVERT CHANGES ๐จ**
**MANDATORY GIT SAFETY RULES:**
- NEVER run
git checkout --without first examining what you're about to destroy - ALWAYS use
git diffto see exactly what changes will be lost - MANUALLY undo changes by editing files to revert specific problematic sections
- Preserve valuable work โ if user says changes are bad, ask which specific parts to revert
- **
git checkoutdestroys A
Alternatives in Git
- ไฝฟ็จ Git Worktrees โ ๅๅปบๅญค็ซ็ Git worktrees๏ผๅธฆๆๆบ่ฝ็ฎๅฝ้ๆฉไธๅฎๅ จ้ช่ฏ 115.1k โ
- Git Worktree Docs Issue: Dependency Installation โ GitHub โ Community feedback on official docs with full worktree lifecycle walkthrough 81.1k โ
- Git Worktree Setup โ Create isolated git worktrees with instant feedback and background Rust verification 25.5k โ
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Code Safety Net
A Claude Code plugin that acts as a safety net, catching destructive git and filesystem commands before they e
Ccc Checkpoint
Create or verify a workflow checkpoint โ git commit, state snapshot, and safety gate before proceeding.
Setup Git Guard
Install git safety guard hook at project or user scope
Run Item
Primary bounded command: advance exactly one non-epic workflow item with shared prelude before Protocol 91. Us
Agent Traffic Control
Coordination toolkit for parallel Claude Code sessions sharing one repo โ issue-pickup claim protocol, worktre
Claude Task Runner
by grahama1970 - A specialized tool to manage context isolation and focused task execution with Claude Code, s
Related Agents
Cold Verifier
Phase 11 cold verification agent that independently re-verifies CRITICAL and HIGH findings with zero prior con
Watchdog
Use as a parallel safety monitor during large refactors or multi-agent runs. Watches for security, breaking-ch
Dev Data Engineer
Database architect and data specialist (schema design, migrations, RLS policies, query optimization, indexing)