github
GitHub via gh CLI: PRs, issues, reviews, repos, auth.
- License 许可
- MIT
- 最近更新
- 2026-10-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- github
- author
- Ben Barclay (benbarclay), Hermes Agent
- license
- MIT
- version
- 2.0.0
- metadata
- { "hermes": { "tags": [ "github", "gh", "git", "pull-requests", "issues", "code-review", "repos", "auth", "ci" ], "category": "software-development", "related_skills": [ "codebase-inspection", "requesting-code-review" ] } }
- platforms
- [ "linux", "macos", "windows" ]
- description
- GitHub via gh CLI: PRs, issues, reviews, repos, auth.
02 资源文件 18
- 参考文档references/auth.md11.6 KB
- 参考文档references/ci-troubleshooting.md5.0 KB
- 参考文档references/code-review.md13.4 KB
- 参考文档references/conventional-commits.md2.4 KB
- 参考文档references/fork-rebrand.md5.0 KB
- 参考文档references/github-api-cheatsheet.md6.1 KB
- 参考文档references/issue-to-pr.md5.6 KB
- 参考文档references/issues.md9.1 KB
- 参考文档references/pr-workflow.md9.9 KB
- 参考文档references/repo-discovery.md3.3 KB
- 参考文档references/repo-management.md15.5 KB
- 参考文档references/review-output-template.md2.5 KB
- 脚本scripts/gh-env.sh2.6 KB
- 脚本scripts/git-credential-token.py1.8 KB
- 参考文档templates/bug-report.md504 B
- 参考文档templates/feature-request.md629 B
- 参考文档templates/pr-body-bugfix.md548 B
- 参考文档templates/pr-body-feature.md613 B
03 SKILL.md 正文
GitHub
Work GitHub end to end with the gh CLI (REST fallback where noted): auth,
issues, the PR lifecycle, issue-to-PR delivery, code review, and repo
management. This skill consolidates six former skills; each workflow lives
complete in its reference file — ALWAYS read the matching reference before
starting that workflow, the body below only routes.
Routing
| Task | Read first |
|---|---|
| Auth broken / new machine / token or SSH setup / gh login | references/auth.md |
| Create, triage, label, assign, close issues | references/issues.md |
| Branch, commit, open PR, watch CI, merge | references/pr-workflow.md |
| Carry an ISSUE to a verified PR (full delivery loop) | references/issue-to-pr.md |
| Review someone's PR: diffs, inline comments, verdict | references/code-review.md |
| Clone/create/fork repos, remotes, releases | references/repo-management.md |
| Fork an app under a new brand, rename it, and publish | references/fork-rebrand.md |
| Find repos/code across GitHub, triage a shortlist | references/repo-discovery.md |
Supporting assets: scripts/gh-env.sh + scripts/git-credential-token.py
(auth helpers), templates/ (PR bodies, bug report, feature request),
references/ci-troubleshooting.md, references/conventional-commits.md,
references/github-api-cheatsheet.md, references/review-output-template.md,
references/repo-discovery.md.
Core discipline (applies to every workflow)
- Preflight once per session:
gh auth status— if it fails, go toreferences/auth.mdbefore anything else. - Prefer
ghover raw REST; drop togh apionly for endpoints the porcelain lacks (the cheatsheet lists them). - Never report CI green without checking
gh pr checksyourself; never claim merged without verifyingstate,mergedAt. - Read full context before writing:
gh issue view --comments/gh pr view --comments— decisions live in threads, not titles. - Sweep for duplicates before creating anything:
gh pr list --search/gh issue list --search. - A
git pushthat hangs silently is a credential-helper prompt (interactive GCM in a non-interactive shell), not network trouble — push through gh's helper instead:git -c credential.helper='!gh auth git-credential' push(addGIT_TERMINAL_PROMPT=0so any remaining prompt fails fast). After ANY push, verify the remote sha — a timed-out push did not land.
Verification
- The workflow's own reference file defines done for that task.
- Cross-cutting: every claim about remote state (CI, merge, release,
issue state) is backed by a fresh
ghread, never memory.
04 同仓库更多 Skills
web-retrieval-resilience
Web tools fail or search rules break: repair or fall back.
blocked-page-recovery
Use when a fetch fails: 403/429, paywall, WAF, bot wall.
verification-loop
Run a six-phase verification of a Claude Code session's work — build, type check, lint, tests with coverage, security grep, and diff review — then produce a PASS/FAIL verification report. Use when verifying work after completing a feature or refactor, before creating a PR, or when quality gates must pass.
unreal-world-builder
开放世界与环境专家——精通 UE5 World Partition、Landscape、程序化植被、HLOD 和大规模关卡流式加载,打造无缝开放世界体验
unreal-technical-artist
Unreal Engine 视觉管线专家——精通材质编辑器、Niagara 特效、程序化内容生成和 UE5 项目的美术到引擎管线
unreal-systems-engineer
性能与混合架构专家——精通 C++/Blueprint 边界、Nanite 几何体、Lumen GI 和 Gameplay Ability System,面向 AAA 级 Unreal Engine 项目