NEVER force push (git push --force or git push -f)
NEVER git reset --hard without explicit permission
NEVER git clean -fd without explicit permission
prefer git stash over git reset
always git pull before git push
forbidden commands
these require EXPLICIT user permission:
git push --force
git push -f
git push --force-with-lease
git reset --hard
git clean -fd
git checkout -- . (discards all changes)
safe alternatives
instead of git reset --hard:
git stash to save changes
git stash pop to restore
instead of force push:
git pull --rebase then normal push
ask user how to resolve conflicts
workflow
git pull before making changes
make changes
git add relevant files
git commit
git pull again before push
git push (no force flags)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: tamagui-tamagui-git-safety3description: git safety4---56# git safety78rules for git operations in this repo.910## rules1112- NEVER force push (`git push --force` or `git push -f`)13- NEVER `git reset --hard` without explicit permission14- NEVER `git clean -fd` without explicit permission15- prefer `git stash` over `git reset`16- always `git pull` before `git push`1718## forbidden commands1920these require EXPLICIT user permission:21- `git push --force`22- `git push -f`23- `git push --force-with-lease`24- `git reset --hard`25- `git clean -fd`26- `git checkout -- .` (discards all changes)2728## safe alternatives2930instead of `git reset --hard`:31- `git stash` to save changes32- `git stash pop` to restore3334instead of force push:35- `git pull --rebase` then normal push36- ask user how to resolve conflicts3738## workflow39401. `git pull` before making changes412. make changes423. `git add` relevant files434. `git commit`445. `git pull` again before push456. `git push` (no force flags)4647---48> Converted and distributed by [TomeVault](https://tomevault.io/claim/tamagui) — claim your Tome and manage your conversions.49<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/tamagui-tamagui-git-safety in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
git safety It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: CAUTION, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.