github-gh

使用 gh CLI 与 GitHub 交互。适用于通过 gh 命令管理议题、拉取请求、工作流运行或进行高级 API 查询(如 gh issue、gh pr、gh run、gh api)的场景。

仓库最近推送
GitHub Stars
195
Forks
9
Issues / PRs
4

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "github-gh":https://skillpi.com/zh/skills/deepskill-b1813bea2e4d07c0696b05a0d8ded7f140b11e7bdfba9c2554324327dac0cb94。安装前核对上游来源和版本:https://github.com/thedaviddias/skill-check。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用 gh CLI 与 GitHub 交互。适用于通过 gh 命令管理议题、拉取请求、工作流运行或进行高级 API 查询(如 gh issue、gh pr、gh run、gh api)的场景。

0 下载

介绍来源: third_party · thedaviddias · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
大多数命令支持 `--json` 用于结构化输出。 你可以用来 `--jq` 过滤器 :
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: github-gh
description: "Interact with GitHub using the `gh` CLI. Use when managing issues, PRs, workflow runs, or advanced API queries via `gh issue`, `gh pr`, `gh run`, and `gh api`."

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)"'

版本历史

  1. v1.2.0 GitHub ↗
    原版更新说明

    # [1.2.0](https://github.com/thedaviddias/skill-check/compare/v1.1.0...v1.2.0) (2026-02-21) ### Features * add 6 new validation rules aligned with Agent Skills spec ([9f3f675](https://github.com/thedaviddias/skill-check/commit/9f3f6759bdd729ca965aaa0e0d3d2d435c336a1c))

  2. v1.1.0 GitHub ↗
    原版更新说明

    # [1.1.0](https://github.com/thedaviddias/skill-check/compare/v1.0.0...v1.1.0) (2026-02-21) ### Features * finalize cli UX and demo rendering improvements ([a7f2a8b](https://github.com/thedaviddias/skill-check/commit/a7f2a8be669213f031127c1c983eb601928250d5))

  3. v1.0.0 GitHub ↗
    原版更新说明

    # 1.0.0 (2026-02-21) ### Bug Fixes * **cli:** always emit remote progress lines in tty ([8702a15](https://github.com/thedaviddias/skill-check/commit/8702a152a5b653fd8a87a9600e02254aad28e7ad)) * default root invocation to check current directory ([37104be](https://github.com/thedaviddias/skill-check/commit/37104becf692d9b29c762d6346f3b541dea71f40)) * document npm Trusted Publishing and set registry-url in release workflow ([9679462](https://github.com/thedaviddias/skill-check/commit/96794629d22df4da5538d9f7f4631560bc156e53)) * show progress while generating share output ([ae5fee4](https://github.com/thedaviddias/skill-check/commit/ae5fee4fc235e756467986d563acbdc61c8ba6b4)) * show progress while generating share output ([7a87b37](https://github.com/thedaviddias/skill-check/commit/7a87b3769a32746974d0ba801e76d59e7586c8b6)) * use full GitHub URL for README demo image on npm ([e7f4801](https://github.com/thedaviddias/skill-check/commit/e7f4801d840b18fc0f2d62b8182e0026016c96da)) ### Features * add shareable CLI summary card and GitHub URL targets ([95e4de0](https://github.com/thedaviddias/skill-check/commit/95e4de0c7936a007ea6af2e88af8174c29bc1ac3)) * **cli:** add remote URL loader feedback and stderr progress ([5486b6b](https://github.com/thedaviddias/skill-check/commit/5486b6bce4f159293a65ca992a591ee5f7e1b925)) * ship CLI UX, split-body workflow, and scan improvements ([1c6cdb4](https://github.com/thedaviddias/skill-check/commit/1c6cdb433172a66e3b4ff60d596036b6c8a47866))

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 提供 GitHub CLI (gh) 的实用操作指南,涵盖 PR、工作流、API 查询等高频开发场景
  • 内容具有明确的实用价值,适合开发者日常使用
触发精准95/100

亮点

  • description 明确列出了适用场景和具体命令,触发词精准完整
  • 边界清晰,用户能准确判断何时使用该 Skill
结构规范75/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档结构良好,但缺少明确的 'When to Use' 章节来指导用户何时使用该 Skill。

    改进建议:建议添加 'When to Use' 章节,更清晰地说明该 Skill 的最佳使用时机和场景。

  • 缺少端到端完整示例 原报告严重程度:轻微

    虽然有多个命令片段示例,但缺少一个完整的端到端使用流程示例。

    改进建议:建议添加一个完整的端到端示例,展示如何组合多个命令解决一个具体问题。

亮点

  • 文档结构清晰,分章节介绍不同功能
  • 每个部分都有具体命令示例,便于用户理解和使用
执行可靠80/100

待提升项

  • 缺少异常处理说明 原报告严重程度:轻微

    所有命令示例都正确,但未覆盖命令执行失败等异常情况的处理建议。

    改进建议:建议在文档中添加关于如何处理常见错误(如网络问题、权限不足、仓库不存在等)的说明。

亮点

  • 所有命令示例都正确指定了 --repo owner/repo 参数以避免歧义
  • 工具来源(gh CLI)明确,参数使用正确
证据可验 (前四项均值)81/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。