github
它能做什么
这项技能让你的 AI 处理常见的 GitHub 工作,从登录、创建议题,到发起拉取请求和审查他人的代码。适合把项目托管在 GitHub 上的开发者。
适用场景
- ✓你想让 AI 创建、标记或关闭 GitHub 议题的时候。
- ✓你想提交分支、发起拉取请求并查看其检查结果的时候。
- ✓你想让 AI 审查他人的拉取请求并留下评论的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/github/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的分支发起一个拉取请求,并附上清楚的说明,然后告诉我检查是否通过。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会把每项任务分配给该工作流程的详细指南,例如认证、议题、拉取请求或代码审查。AI 使用 gh 命令行工具完成每个步骤。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 |
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.
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.
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.
常见问题
如果 GitHub 登录出问题怎么办?
技能说明应先用 gh auth status 检查认证状态,并按照其认证指南操作。
它能用于代码审查吗?
能。技能包含审查他人拉取请求的指南,涵盖行内评论和结论。
它必须使用 gh 工具吗?
技能以 gh 为核心,在需要时会退回使用 GitHub REST API。
详情
热度
- GitHub 星标
- 260k
- 排名
- #621
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。