{"success":true,"name":"github","description":"GitHub via gh CLI: PRs, issues, reviews, repos, auth.","category":"software-development","path":"software-development/github/SKILL.md","file":"SKILL.md","content":"---\nname: github\ndescription: \"GitHub via gh CLI: PRs, issues, reviews, repos, auth.\"\nversion: 2.0.0\nauthor: Ben Barclay (benbarclay), Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  hermes:\n    tags: [github, gh, git, pull-requests, issues, code-review, repos, auth, ci]\n    category: software-development\n    related_skills: [codebase-inspection, requesting-code-review]\n---\n\n# GitHub\n\nWork GitHub end to end with the `gh` CLI (REST fallback where noted): auth,\nissues, the PR lifecycle, issue-to-PR delivery, code review, and repo\nmanagement. This skill consolidates six former skills; each workflow lives\ncomplete in its reference file — ALWAYS read the matching reference before\nstarting that workflow, the body below only routes.\n\n## Routing\n\n| Task | Read first |\n|---|---|\n| Auth broken / new machine / token or SSH setup / gh login | `references/auth.md` |\n| Create, triage, label, assign, close issues | `references/issues.md` |\n| Branch, commit, open PR, watch CI, merge | `references/pr-workflow.md` |\n| Carry an ISSUE to a verified PR (full delivery loop) | `references/issue-to-pr.md` |\n| Review someone's PR: diffs, inline comments, verdict | `references/code-review.md` |\n| Clone/create/fork repos, remotes, releases | `references/repo-management.md` |\n| Commit a fix into a repo with lots of pre-existing unrelated uncommitted changes, or push straight to a deploy branch | `references/dirty-tree-commits.md` |\n\nSupporting assets: `scripts/gh-env.sh` + `scripts/git-credential-token.py`\n(auth helpers), `templates/` (PR bodies, bug report, feature request),\n`references/ci-troubleshooting.md`, `references/conventional-commits.md`,\n`references/github-api-cheatsheet.md`, `references/review-output-template.md`,\n`references/dirty-tree-commits.md`.\n\n## Core discipline (applies to every workflow)\n\n- Preflight once per session: `gh auth status` — if it fails, go to\n  `references/auth.md` before anything else.\n- Prefer `gh` over raw REST; drop to `gh api` only for endpoints the\n  porcelain lacks (the cheatsheet lists them).\n- Never report CI green without checking `gh pr checks` yourself; never\n  claim merged without verifying `state,mergedAt`.\n- Read full context before writing: `gh issue view --comments` /\n  `gh pr view --comments` — decisions live in threads, not titles.\n- Sweep for duplicates before creating anything:\n  `gh pr list --search` / `gh issue list --search`.\n- Before `git add`, run `git status --short`: if the tree already carries\n  unrelated modified/untracked files (common across this user's repos),\n  `git add` only the exact file(s) you touched, never `git add .` — see\n  `references/dirty-tree-commits.md` for the full safe-commit + push flow.\n\n## Verification\n\n- The workflow's own reference file defines done for that task.\n- Cross-cutting: every claim about remote state (CI, merge, release,\n  issue state) is backed by a fresh `gh` read, never memory.\n","linked_files":["references/auth.md","references/ci-troubleshooting.md","references/code-review.md","references/conventional-commits.md","references/dirty-tree-commits.md","references/github-api-cheatsheet.md","references/issue-to-pr.md","references/issues.md","references/pr-workflow.md","references/repo-management.md","references/review-output-template.md","scripts/gh-env.sh","scripts/git-credential-token.py","templates/bug-report.md","templates/feature-request.md","templates/pr-body-bugfix.md","templates/pr-body-feature.md"],"origin":"brimind","owner_id":null,"source":"router"}