Guides disciplined git operations including branching, committing, creating PRs, and recovery scenarios. Activates on commit, PR, branch, merge, rebase, cherry-pick, and tag requests.
Ships in git-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Disciplined git operations for professional codebases.
Commands below use GitHub gh as the reference. Translate to your code host
per .agents/workflow.md § Git host — GitLab glab, Bitbucket bb, Azure
DevOps az repos, Gitea tea. "PR" means PR or MR. If scout hasn't recorded a
host, ask before assuming GitHub.
git --no-pager status
git --no-pager log --oneline -5
git --no-pager diff --stat
Always know the current state before changing it.
# Feature branch from main
git checkout main && git pull && git checkout -b feat/short-description
# Bug fix
git checkout main && git pull && git checkout -b fix/issue-description
Branch naming: feat/, fix/, chore/, docs/ prefixes. Lowercase, hyphens, concise.
Never commit unless the user explicitly asks. When they do:
git add -A — avoid secrets and binaries)git add src/auth.py src/middleware.py
git commit -m "$(cat <<'EOF'
Fix session expiry not respecting timezone offset
The previous check used naive datetime comparison which failed
for users in negative UTC offsets.
Co-Authored-By: Claude <[email protected]>
EOF
)"
When asked to create a PR:
git --no-pager log main..HEAD --onelinegit --no-pager diff main...HEADgit push -u origin HEADgh pr create --title "Short title under 70 chars" --body "$(cat <<'EOF'
## Summary
- What changed and why (2-3 bullets)
## Test plan
- [ ] How to verify this works
Generated with Claude Code
EOF
)"
Always confirm with the user before:
git push --force (any variant)git reset --hardgit branch -Dgit rebase on shared branchesgit checkout . or git restore . (discards work)Never:
--no-verify)-i) — not supported in non-interactive shellsSee references/recovery.md for common recovery scenarios.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/git-workflow:git-workflowfrom git-workflow
npx claudepluginhub arozumenko/sdlc-skills --plugin git-workflowOther plugins' skills for the same job