tamagui / git-safety
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/git-safety && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/915" && unzip -o skill.zip -d .claude/skills/git-safety && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/git-safety/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
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.
6 views
0 installs
Skill Content
--- name: git-safety description: 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. --- # git safety rules for git operations in this repo. ## rules - 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 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)