跳到正文
cccskills
免费在 GitHub 公开

github-gh-cli

Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI. Use when the user wants repository facts from GitHub without opening the browser, especially for PR status, CI failures, issue lists, or structured JSON output.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(2)

  • SKILL.md3.7 KB
  • agents/openai.yaml296 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

GitHub GH CLI

Use this skill when

Use this skill when the task is about GitHub data and gh is the fastest path:

  • pull request status or checks;
  • recent workflow runs or failed jobs;
  • issue or PR lists;
  • structured JSON output for scripting; or
  • GitHub API queries not covered by simpler commands.

Working rules

  • Prefer gh over browser navigation when command-line access is enough.
  • Prefer --json and --jq when you need structured results.
  • When outside the target repository, pass --repo owner/repo explicitly.
  • If auth is missing, ask the user to handle gh auth login; do not attempt interactive credential setup yourself.
  • Before updating or merging an existing PR, resolve its actual head repository, branch and SHA (headRepository, headRefName, headRefOid, or REST .head). A local upstream or an identically named branch in the base repository does not identify the PR source. Verify that exact repository's permissions and expected head, push normally there, and read back the PR head equal to the intended local commit before claiming an update or merging.

Authorized PR after an upstream push denial

  • An upstream 403 or permissions.push=false is a denial of direct upstream writes, not evidence that PR creation is unavailable. For an already authorized PR, inspect the current account and its existing fork; verify its parent is the intended upstream, permissions.push=true, the exact source branch/head and the original publication scope.
  • Reuse that existing fork with a normal push and an explicit upstream/base/owner-qualified head. Look up an existing PR first and read back uncertain effects before retrying. Preserve origin; do not force push, switch accounts, request broader access or create a new fork merely to recover this case. Report the specific gap if no authorized route exists.

Contributor scope and permission advice

  • Inventory a stated time window before recommending a contributor's scope; disclose date bounds and result caps. Sample across modules and work types, including CI/mainline recovery, build tooling, architecture upkeep and regression follow-through. A few recent feature PRs do not establish the person's full role.
  • Inspect substantive PR bodies, selected diffs and follow-up records. Separate public author/test claims from independently checked behavior; PR volume alone proves neither quality nor review qualification.
  • Check both formal cross-author reviews and ordinary PR comments. A reviewed-by: search misses comment-only validation and responsibility for regressions; missing search results are not proof of no review work.
  • Distinguish repository management permissions, maintainer responsibility, CODEOWNERS eligibility and bypass authority. Apply each appointment's actual rules without treating a subsystem checklist as the whole assessment of repository-wide maintenance.

Common commands

Pull requests

gh pr view 123 --repo owner/repo
gh pr checks 123 --repo owner/repo
gh pr list --repo owner/repo --limit 20

Actions / CI

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

Issues

gh issue list --repo owner/repo --limit 20
gh issue list --repo owner/repo --json number,title,state --jq '.[]'

API

gh api repos/owner/repo/pulls/123
gh api repos/owner/repo/issues --jq '.[].title'

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Track and synthesize current AI hotspots into a bilingual HTML daily report. Use when the user says "AI热点", asks for AI日报/AI日报 HTML/AI hot topics, or wants the best recent AI products, papers, viewpoints, and cognition-shifting items from AI/news aggregators.

中文简介正在准备中。当前显示原文说明。

huangruiteng/CS-Notes40102026年10月19日 更新

Fetch and extract full text from arxiv paper HTML pages. Invoke when user asks to read an arxiv paper, analyze a paper's content, or when given an arxiv ID/URL.

中文简介正在准备中。当前显示原文说明。

huangruiteng/CS-Notes40102026年10月19日 更新

ask-echo

免费

使用火山引擎 Ask-Echo 融合信息搜索 API 进行 web 搜索、web 搜索总结版和图片搜索。

中文简介正在准备中。当前显示原文说明。

huangruiteng/CS-Notes40102026年10月19日 更新

Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).

中文简介正在准备中。当前显示原文说明。

huangruiteng/CS-Notes40102026年10月19日 更新

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

中文简介正在准备中。当前显示原文说明。

huangruiteng/CS-Notes40102026年10月19日 更新

Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.

中文简介正在准备中。当前显示原文说明。

huangruiteng/CS-Notes40102026年10月19日 更新

查看 huangruiteng 的全部技能

报告此技能的问题