git
Installation
SKILL.md
<essential_principles>
<git_safety> Never run destructive commands without explicit user request:
- No
git push --forceto main/master - No
git reset --hard - No
--no-verifyflag (skip hooks) - No
git commit --amendon pushed commits
Never push directly to main/master:
- If current branch is
mainormaster, create a new branch before committing/pushing - Use a descriptive branch name based on the changes (e.g.,
fix/login-bug,feat/add-filter) - Only push to feature/fix branches, never directly to the default branch
Always verify before acting:
- Check
git statusbefore staging - Check
git logfor commit style - Check remote tracking before push </git_safety>