G

Skill 详情

github

使用`gh` CLI与GitHub进行交互。使用`gh issue`、`gh pr`、`gh run`和`gh api`来处理问题、拉取请求、CI运行和高级查询。

来源平台:ModelScope
来源标识:ModelScope/steipete/github
源文件:原始说明
AI 平台与模型 热门 ModelScope 高 风险 下载 588访问 4.3千 ModelScopeSkillHubGitHub Copilot
来源平台ModelScope
文档版本master
热度热门
排名信号下载 588
概述 安装 文档 下载

快速判断

使用`gh` CLI与GitHub进行交互。使用`gh issue`、`gh pr`、`gh run`和`gh api`来处理问题、拉取请求、CI运行和高级查询。

最后校验2026-05-18
来源平台ModelScope
安全提示
下载副本ZIP 可用

适合任务

  • 按 ModelScope 收录说明完成平台、开发或工作流任务。
  • 通过下载包离线保存 Skill 内容。
  • 结合下载量、访问量和喜欢数评估优先级。

输入与输出

输入:任务目标、上下文材料、平台信息、文件路径、约束条件或需要处理的内容。

输出:按 Skill 说明生成的文档、代码、检查结果、计划、建议或操作步骤。

示例任务

  • 使用 github 帮我完成当前任务,并先确认必要上下文。
  • 根据 github 的说明,列出操作步骤和风险检查点。

安装方式

  1. 下载本站提供的 Skill ZIP 并解压。
  2. 把解压后的 Skill 目录放入当前 AI 工具支持的 skills 目录。
  3. 如需在线查看原始内容,可打开 GitHub 的 SKILL.md

在线原始地址:modelscope-steipete-github/SKILL.md

风险边界

使用前请检查权限、外部依赖和要处理的数据类型。第三方平台数据、支付、部署、账号和密钥相关内容应先核对官方说明。

SKILL.md 文档介绍

GitHub Skill

Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.

Pull Requests

Check CI status on a PR:

gh pr checks 55 --repo owner/repo

List recent workflow runs:

gh run list --repo owner/repo --limit 10

View a run and see which steps failed:

gh run view <run-id> --repo owner/repo

View logs for failed steps only:

gh run view <run-id> --repo owner/repo --log-failed

API for Advanced Queries

The gh api command is useful for accessing data not available through other subcommands.

Get PR with specific fields:

gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'

JSON Output

Most commands support --json for structured output. You can use --jq to filter:

gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
建议反馈