Stats
Actions
Tags
From github
Safe git operation guidelines. Use when performing any git operations including commits, branching, merging, rebasing, pushing, pull request creation, or any other git-related tasks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/github:git-operationsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- NEVER update the git config
push --force, reset --hard, checkout ., restore ., clean -f, branch -D) unless the user explicitly requests these actions--no-verify, --no-gpg-sign, etc.) unless the user explicitly requests itmain/master. Warn the user if they request itgit rebase -i or git add -i since they require interactive input which is not supported--no-edit with git rebase commands, as it is not a valid option for git rebase&& or ;. Always run each git command as a separate invocation
git push forces the user to deny the entire chain)-C option with git commands (e.g., git -C /some/path ...). Always cd to the target directory first, or use absolute paths in arguments
git -C command and selects "Yes, and don't ask again for similar commands", it adds Bash(git -C:*) to permissions.allow, which matches ALL git commands — effectively bypassing permission checks for every git operation--amend would modify the PREVIOUS commit, which may destroy work. Instead, fix the issue, re-stage, and create a NEW commitgit add -A or git add ., which can accidentally include sensitive files (.env, credentials) or large binaries.env, credentials.json, etc.). Warn the user if they request it<type>(<scope>): <description>
feat, fix, docs, style, refactor, perf, test, build, ci, chorefeat(auth): add login endpoint)! after type/scope (e.g., feat(api)!: change response format) or add BREAKING CHANGE: in the bodygit commit -m "$(cat <<'EOF'
feat(auth): add OAuth2 login support
Co-Authored-By: Claude <[email protected]>
EOF
)"
feature/add-auth, fix/login-bug)git push -u origin <branch> for new branchesgh pr create with a HEREDOC for the body:gh pr create --title "the pr title" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points>
## Test plan
[Bulleted checklist of testing steps]
EOF
)"
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub yshrsmz/cc-plugins --plugin github