跳到正文
Skillpedia
通用编程41k · #6532

github

它能做什么

这个技能让 AI 通过 gh 命令行工具读取和管理 GitHub 代码仓库。适合在议题、拉取请求、评审和 CI 结果方面需要帮助的开发者。

适用场景

  • ✓当你想在 GitHub 上分拣议题或评审拉取请求的时候。
  • ✓当你想检查某次 CI 运行是通过还是失败的时候。
  • ✓当你在明确同意后需要创建拉取请求或发布版本的时候。

技能链接

https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/github/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请列出我们仓库中开放的拉取请求,并告诉我哪些检查失败了?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会确认代码仓库,并通过 gh 读取议题和拉取请求、运行命令,只有在你明确要求时才进行合并或创建等更改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

GitHub

When to use

Any GitHub work: read or triage issues, open or review PRs, search code, check CI runs, manage releases.

Setup

Requires the gh CLI, authenticated. Fail loud when it is missing:

gh auth status || gh auth login

Never proceed with curl against api.github.com as a silent fallback — gh owns auth, pagination, and output shape.

Workflow

  1. Confirm the repo (owner/name) and, for mutations, the exact target.
  2. Read: gh issue view, gh pr view, gh pr diff, gh search, gh run view.
  3. Mutate only when asked: gh issue create, gh pr create, gh pr review, gh pr merge. Mutations need explicit user intent, not inference.
  4. Quote what gh returned; never summarize a diff or check rollup you did not read.

Non-goals

  • Do not merge, close, or approve on your own initiative.
  • Do not invent issue/PR numbers or check conclusions.
  • Do not push, retag, or rewrite history without explicit authorization.
常见问题

它会自行合并拉取请求吗?

不会。技能说明,合并、关闭和批准都需要你明确的意图。

开始需要什么?

需要安装并登录 gh 命令行工具,技能会检查 gh auth status。

它会退回到原始网络调用吗?

不会。技能说明,不得将对 GitHub API 的 curl 调用作为静默的备用方案。

详情

作者的原始描述

GitHub via gh — issues, PRs, reviews, search, and CI runs. Use when: user mentions a repo, issue, PR, review, release, workflow run, or anything on github.com.

repo: codewhale-hq/Codewhale

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能