When to use
Use this skill for:
- Any prompt containing a pasted
github.com URL, even without words like "GitHub", "issue", "PR", or "repo"
- Any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository
- "Fix https://github.com/owner/repo/issues/123" style tasks
- Creating, reviewing, and managing pull requests and GitHub issues
- Merge conflict resolution and history rewriting
- Pre-commit hook debugging and fixes
- Branch management and cleanup
- GitHub Actions workflow optimization
- Any git command or GitHub workflow question
Instructions
When invoked:
- If the prompt includes a GitHub URL, treat that URL alone as sufficient reason to invoke this skill and inspect it with
gh/git first
- Assess the git/GitHub situation immediately
- If the prompt includes a
github.com URL, activate this skill immediately and translate that URL into the relevant gh/git workflow
- Use gh CLI for all GitHub operations (never suggest the web interface)
- Handle complex git operations with surgical precision
- Fix pre-commit hook issues or delegate to typescript-magician for TypeScript linting
- Never alter git signing key configuration; if signing is already enabled and configured, use it. Otherwise, proceed without signing
- NEVER include "Co-Authored-By: Claude" or similar AI attribution
Activation examples
Fix https://github.com/mercurius-js/mercurius/issues/1227
Review https://github.com/nodejs/node/pull/12345
What changed in https://github.com/org/repo/compare/v1.0.0...v1.1.0?
Check https://github.com/org/repo/actions/runs/123456789
Investigate https://github.com/org/repo/commit/abcdef1234567890
Capabilities
Advanced git operations:
- Interactive rebasing for clean history (commit splitting, squashing)
- Cherry-pick, bisect, worktrees
- Advanced merge strategies
- Submodule and subtree management
- Git hooks setup and maintenance
- Repository archaeology with git log/blame/show
GitHub operations via gh CLI:
- Create/manage PRs with proper templates
- Open PRs with explicit base/head and structured content, e.g.
gh pr create --base main --head <branch> --title "<title>" --body-file <file>
- After opening a PR, wait for CI with
gh pr checks <num> --watch 2>&1 and proactively fix failures
- Validate unfamiliar gh commands first with
gh help <command> before using them in guidance
- Handle issues and project boards
- Manage releases and artifacts
- Configure repository settings
- Automate workflows and notifications
PR Body Formatting
When 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.md
Using a temporary file is cleaner, more reliable, and easier to debug — especially for complex PR descriptions with markdown formatting.
Validation Checkpoints for Complex Operations
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.
Commit Signing and Attribution Rules
- NEVER alter git signing key settings (
user.signingkey) or signing mode in user/repo config
- If commit signing is already enabled and correctly configured, create signed commits using the existing setup
- If signing is not enabled/configured, do not force or configure signing; proceed without it
- NEVER add AI co-authorship attributions (e.g. "Co-Authored-By: Claude")
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: octocat3description: Use this skill whenever the prompt contains any `github.com` URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.4---56## When to use78Use this skill for:9- Any prompt containing a pasted `github.com` URL, even without words like "GitHub", "issue", "PR", or "repo"10- Any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository11- "Fix https://github.com/owner/repo/issues/123" style tasks12- Creating, reviewing, and managing pull requests and GitHub issues13- Merge conflict resolution and history rewriting14- Pre-commit hook debugging and fixes15- Branch management and cleanup16- GitHub Actions workflow optimization17- Any git command or GitHub workflow question1819## Instructions2021When invoked:221. If the prompt includes a GitHub URL, treat that URL alone as sufficient reason to invoke this skill and inspect it with `gh`/`git` first232. Assess the git/GitHub situation immediately243. If the prompt includes a `github.com` URL, activate this skill immediately and translate that URL into the relevant `gh`/`git` workflow254. Use gh CLI for all GitHub operations (never suggest the web interface)265. Handle complex git operations with surgical precision276. Fix pre-commit hook issues or delegate to typescript-magician for TypeScript linting287. Never alter git signing key configuration; if signing is already enabled and configured, use it. Otherwise, proceed without signing298. NEVER include "Co-Authored-By: Claude" or similar AI attribution3031## Activation examples3233- `Fix https://github.com/mercurius-js/mercurius/issues/1227`34- `Review https://github.com/nodejs/node/pull/12345`35- `What changed in https://github.com/org/repo/compare/v1.0.0...v1.1.0?`36- `Check https://github.com/org/repo/actions/runs/123456789`37- `Investigate https://github.com/org/repo/commit/abcdef1234567890`3839## Capabilities4041**Advanced git operations:**42- Interactive rebasing for clean history (commit splitting, squashing)43- Cherry-pick, bisect, worktrees44- Advanced merge strategies45- Submodule and subtree management46- Git hooks setup and maintenance47- Repository archaeology with git log/blame/show4849**GitHub operations via gh CLI:**50- Create/manage PRs with proper templates51- Open PRs with explicit base/head and structured content, e.g. `gh pr create --base main --head <branch> --title "<title>" --body-file <file>`52- After opening a PR, wait for CI with `gh pr checks <num> --watch 2>&1` and proactively fix failures53- Validate unfamiliar gh commands first with `gh help <command>` before using them in guidance54- Handle issues and project boards55- Manage releases and artifacts56- Configure repository settings57- Automate workflows and notifications5859## PR Body Formatting6061When creating PRs with `gh pr create`, use `--body-file` to avoid newline escaping issues with the `--body` flag.6263```bash64cat > /tmp/pr-body.md << 'EOF'65Line 16667Line 268Line 369EOF70gh pr create --body-file /tmp/pr-body.md71```7273Using a temporary file is cleaner, more reliable, and easier to debug — especially for complex PR descriptions with markdown formatting.7475## Validation Checkpoints for Complex Operations7677**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`.7879**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`.8081**Branch cleanup:** `git branch --merged main` → `git branch -d <branch>` → `git push origin --delete <branch>` → `git fetch --prune`.8283## Commit Signing and Attribution Rules8485- NEVER alter git signing key settings (`user.signingkey`) or signing mode in user/repo config86- If commit signing is already enabled and correctly configured, create signed commits using the existing setup87- If signing is not enabled/configured, do not force or configure signing; proceed without it88- NEVER add AI co-authorship attributions (e.g. "Co-Authored-By: Claude")8990---91> Converted and distributed by [TomeVault](https://tomevault.io/claim/mcollina) — claim your Tome and manage your conversions.92<!-- tomevault:4.0:skill_md:2026-04-11 -->