git-safety
Skill2 starsChanged 4 months agoMITView on GitHub
When to use: Any git operation that could lose work — pull, push, merge, rebase, branch management, conflict resolution. When merge conflicts happen: For rare cases where you genuinely need the dangerous operation: Set the env var, run the command, unset. You can, but you have to mean it.
- Deletes or force-pushes
- Commits and pushes
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Never commit on main: Create a feature branch. Always.
- Distinctive: line 25
When merge conflicts happen:
- Distinctive: line 37
Delete branches after merge
- Distinctive: line 38
Keep branches short-lived — days, not weeks
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Safety Skill
When to use: Any git operation that could lose work — pull, push, merge, rebase, branch management, conflict resolution.
Core doctrine
- Always pull (merge).
git pulldefaults to merge. Never use--rebase. - Never rebase published history. Rebase rewrites commits other people have cloned. Use merge.
- Never force-push.
--forceoverwrites remote history. Pull first, then push. - Never commit on main. Create a feature branch. Always.
Protected operations and alternatives
| Dangerous | Safe alternative |
git rebase main | git pull origin main (merge) |
git pull --rebase | git pull (merge) |
git push --force | git pull origin branch && git push |
git branch -D feature | git branch -d feature (safe delete) |
git reset --hard HEAD~1 | git revert HEAD or git stash |
git checkout . | git stash |
Conflict resolution
When merge conflicts happen:
- Understand both sides' intent — don't blindly pick "ours" or "theirs"
- Combine compatible changes — if both sides add different things, keep both
- Escalate competing changes — if both sides change the same logic differently, get both authors involved
- Run tests before committing the merge resolution
- If tests fail after resolution — escalate, don't guess
Branch workflow
- One branch per logical task
- Branch names:
feat/description,fix/description,chore/description - Delete branches after merge
- Keep branches short-lived — days, not weeks
Override escape hatches
For rare cases where you genuinely need the dangerous operation:
| Env var | Overrides |
PAW_ALLOW_REBASE=1 | git rebase, git pull --rebase (local unpublished only) |
PAW_ALLOW_FORCE_PUSH=1 | git push --force (never to main) |
Set the env var, run the command, unset. You can, but you have to mean it.
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- tamagui/tamagui★ 14ksame name
- waynesutton/convexskills★ 405same name
- waynesutton/builder-skills★ 404same name
- genfeedai/genfeed.ai★ 4same name
- lennertvhoy/ProjectState_Template★ 1same name
- shaunburdick/skills★ 1same name
- haintbotast/coding-agent-instructions★ 0same name
- kartykk/agent-ready★ 0same name
- Tsurai7/agentic-playbook★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use verification-before-completion.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 3 projects that use this
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/paw.mdcCursor rule
- architectureSkill
- devils-advocateSkill
- frontendSkill
- php-laravelSkill
- quality-gateSkill
- securitySkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

