<!-- Generated by scripts/sync_skill_packaging.py. Edit SKILL.md instead; this file is rebuilt from it. -->
git-protection
Stop force pushes and history rewrites from a machine with a global git pre-push hook, and set the matching agent rules (commit small and often, ask before pushing, fix forward). Use when asked to protect git history, block force pushes, set up or check a pre-push hook, add commit and push rules for coding agents, or when a push is refused with "non-fast-forward". Do NOT use for resolving merge conflicts, writing commit messages, organising a dirty tree into commits (use atomic-commit-organiser), scrubbing a repository for publication (use public-repo-hygiene) or configuring CI.
Install
Copy this directory into either skills location, then start a new session:
cp -r git-protection ~/.claude/skills/ # personal, all projects
cp -r git-protection .claude/skills/ # this project only
For Claude Desktop, zip the directory and upload it under Settings, Capabilities, Skills. Released builds attach a ready-made zip.
Bundled files
Loaded on demand, not up front. SKILL.md routes to them.
Part of a larger set
One of the Developer environment skills (claude-skills-dev-environment). See the group's list, or every group in claude-skills.