Git safety

From tamagui/tamagui · View interactive version

Git safety is an AI agent skill from the GitHub repository tamagui/tamagui. Git safety rules. INVOKE WHEN: git push, force push, git reset, git clean, destructive git, push force, reset hard. NEVER force push or do destructive git operations.

How to use this skill

Skill file

git safety

rules for git operations in this repo.

rules

forbidden commands

these require EXPLICIT user permission:

safe alternatives

instead of git reset --hard:

instead of force push:

workflow

  1. git pull before making changes
  2. make changes
  3. git add relevant files
  4. git commit
  5. git pull again before push
  6. git push (no force flags)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.