跳到正文
Skillpedia
通用编程260k · #621

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/skills/software-development/github/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 to references/auth.md before anything else.
  • Prefer gh over raw REST; drop to gh api only for endpoints the porcelain lacks (the cheatsheet lists them).
  • Never report CI green without checking gh pr checks yourself; never claim merged without verifying state,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 gh read, never memory.
常见问题

如果 GitHub 登录出问题怎么办?

技能说明应先用 gh auth status 检查认证状态,并按照其认证指南操作。

它能用于代码审查吗?

能。技能包含审查他人拉取请求的指南,涵盖行内评论和结论。

它必须使用 gh 工具吗?

技能以 gh 为核心,在需要时会退回使用 GitHub REST API。

详情

作者的原始描述

GitHub via gh CLI: PRs, issues, reviews, repos, auth.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#621
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能