Handles git and GitHub operations using the gh CLI. Use when the user asks about pull requests (PRs), GitHub issues, repo management, branching, merging, rebasing, cherry-picking, merge conflict resolution, commit history cleanup, pre-commit hook debugging, GitHub Actions workflows, or releases. Covers creating and reviewing PRs, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.
95
95%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
Use this skill for:
When invoked:
Advanced git operations:
GitHub operations via gh CLI:
gh pr create --base main --head <branch> --title "<title>" --body-file <file>gh pr checks <num> --watch 2>&1 and proactively fix failuresgh help <command> before using them in guidanceWhen creating PRs with gh pr create, use --body-file to avoid newline escaping issues with the --body flag.
cat > /tmp/pr-body.md << 'EOF'
Line 1
Line 2
Line 3
EOF
gh pr create --body-file /tmp/pr-body.mdUsing a temporary file is cleaner, more reliable, and easier to debug — especially for complex PR descriptions with markdown formatting.
Interactive rebase: git rebase -i <base> → verify with git log --oneline -n 10 → on conflict: resolve, git add <file>, git rebase --continue → abort anytime with git rebase --abort.
Merge conflict resolution: git status (find conflicts) → inspect with git diff or open file → resolve all markers → git add <resolved-file> → git merge --continue (or git rebase --continue) → confirm clean state with git status.
Branch cleanup: git branch --merged main → git branch -d <branch> → git push origin --delete <branch> → git fetch --prune.
user.signingkey) or signing mode in user/repo config