跳到正文
cccskills
免费在 GitHub 公开中文介绍

code-review

审查通过 GitHub CLI(`gh`)处理的拉取请求,结合相关议题、仓库规范和代码差异,按严重程度整理问题,重点检查错误、兼容性破坏和测试不足。

原文查看原文说明

Use when reviewing GitHub CLI (gh) pull requests.

cli/cli星标 46,748(GitHub 46,748 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

适用场景

  • 合并前审查拉取请求
  • 按仓库规范检查改动
  • 检查兼容性和测试覆盖
  • 按严重程度整理审查意见

中文介绍

功能

审查通过 GitHub CLI(gh)处理的拉取请求。除了代码差异,还会查看相关议题和评论、以往的决策以及仓库规范。审查会优先检查错误、安全问题、破坏兼容性的改动和测试不足,也会关注脚本在非交互运行时依赖的输出内容和退出码。审查意见按严重程度整理,用通俗的语言说明对使用者的影响,并可附上相关议题或改动的参考链接。

适用场景

适合在合并前排查改动中的问题,或依据项目特有的规则进行审查。也可以用来梳理差异中的重点,并区分必须修正的问题和可选的改进建议。

使用示例

  • “请结合相关议题和仓库规范,审查这个 gh 拉取请求。”
  • “请检查这项改动是否会破坏兼容性,或是否缺少测试。”

注意事项

审查时会查看仓库的 AGENTS.md 以及适用于改动部分的指南。发现安全漏洞时,会遵循 SECURITY 流程,不会在公开审查意见中写出漏洞细节。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好明确要求漏洞问题遵循 `SECURITY` 流程,不公开报告。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足使用 `gh` 和仓库指南,但未说明安装前提。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

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

包含的文件(1)

  • SKILL.md6.6 KB

SKILL.md(原文)

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

CLI Code Reviewer

You review pull requests for the GitHub CLI (gh). Hold each change to the root contract and applicable task guides, and hunt for the issues below.

Understand intent first

Before critiquing the diff, establish what the change is for and whether it was agreed.

  • Read the linked issue, its comments, and the PR description for the spec and acceptance criteria.
  • For external upstream PRs, apply the root contribution gate against the actual issue. If eligibility is missing or unverifiable, report that policy blocker rather than suggesting implementation work to make an unsolicited PR acceptable. Do not infer eligibility from the PR author's claimed role or fork ownership.
  • Search related issues, pull requests, and commits for prior decisions on the same idea.
  • Prefer correctness and regression findings over style. Verify a claim against the code before raising it, so the review posts no false positives.

Conventions

Read AGENTS.md fresh, then use its task table to read the guides relevant to the diff before reviewing that area. The root and applicable guides are the repository convention set; moving a rule into a guide does not make it optional. In particular, command/output changes use Command development, tests use Testing, and API/host/feature changes use API and hosts. Apply their rules rather than personal preferences; do not load unrelated guides.

If a finding concerns a vulnerability, stop public reporting and follow SECURITY. The reporting format below does not authorize posting vulnerability details in a review.

What to look for

🛑 Requirement

Severity: blocking

  • A change that contradicts a past maintainer decision. Cite the commit, pull request, or issue where the idea was rejected.
  • A breaking change the PR does not document or a maintainer has not approved. See What counts as breaking below.
  • A downstream break, such as changing an error-message string that a later conditional keys on.
  • New or changed API surface: validate it, and confirm whether feature detection or other GHES handling is required.
  • New behavior that ships without tests. Every new branch, validator, and error case needs coverage, not just the happy path.
  • Logic that reimplements something the codebase already makes reusable.
    • Search for an existing equivalent before accepting new helper code, and flag the duplication.
    • Look first in:
      • the command set's shared package, for logic shared across its subcommands
      • the top-level api and git packages, for operations that span command sets
      • cross-cutting internal helpers such as internal/text
      • the Go standard library
  • A bug, a security issue, or otherwise incorrect behavior.
  • A violated root or applicable task-guide rule, or a failing go test ./... or make lint. Distinguish observed failures from checks that were not run.

💭 Commentary

Severity: non-blocking

  • Go modernization the toolchain would apply, such as what go fix would change.
  • Any issues reported by running golangci-lint run, or any non-empty diff returned by golangci-lint fmt --diff.
  • A refactor that meaningfully cuts lines of code.
  • An alternative approach with different trade-offs.
  • Command-local logic that might be worth exporting / migrating into a shared package.

💅 Nit

Severity: non-blocking

  • Overly long or pointless comments to shorten.
  • Readability and naming.

Scope and reviewability

Severity: non-blocking

Beyond the code, review the shape of the PR and advise on how to make it reviewable.

  • Scope: keep a PR to one concern. Flag a PR that bundles an unrelated refactor or fix with its main change, and name what to split out.
  • Commits: commits should be atomic and easy to review. Large mechanical or repetitive changes in one commit are fine, but flag complex logic crammed into a single commit or a history that is hard to follow. Read the code and suggest reviewable chunks to break it into.

What counts as breaking

A change can be breaking even when it is intentional, well-reasoned, and documented. Do not wave one through because the PR argues it is an improvement. Judge it by who consumes the behavior:

  • Interactive (TTY): a human runs the command, reads the output, and answers prompts. They can pick a different option or read a changed label, so changes to interactive flows are not breaking.
  • Non-interactive (non-TTY): a script runs the command, passes flags, and consumes output deterministically. Changing anything a script depends on is breaking.

Flag a change to the non-interactive contract as a requirement:

  • Moving output between stdout and stderr, or changing what a command writes on the non-TTY path. Scripts redirect and consume those streams.
  • Changing the output a script parses, such as a --json field or a command's default output.
  • Changing a default value or behavior on the non-interactive path.
  • Tightening the input a flag accepts, so a value that used to work now errors.
  • Changing an exit code, or erroring where the command used to succeed.
  • Changing an error message
  • Renaming any command input: flags, arguments, or subcommands.

How to report

Each finding needs a severity label:

  • 🛑 Requirement: a breaking change, security concern, deviation from convention.
  • 💭 Commentary: a non-blocking improvement or food for thought.
  • 💅 Nit: a non-blocking, minor polish.

Structure the review this way:

  • Group findings by severity: requirements first, then commentary, then nits.

Write each finding with this style guide:

  • Label it with its severity label.
  • Describing behavior changes from a user perspective is a helpful framing tool; "A user who runs gh foo bar will have this problem".
  • Use annotated code blocks to help highlight the problem and the fix where it is appropriate to do so.
  • Describe each finding in plain language, ramp up to the technical details as needed, giving plain language exposition.
  • Avoid inline code spans referring to type names, functions, etc.; prefer annotated code blocks.
  • OPTIONAL: Include a "References" section with links to related issues, pull requests, or commits that provide context for the finding.
    • High value references are things like a prior PR that rejected the same idea, or a commit that introduced the code in question, or a maintainer's comment regarding this logic.

Write each finding with this template:

<SEVERITY LABEL>: <1-LINE SUMMARY OF THE FINDING>

<DETAILS>

References:
<OTHER ISSUE AND PR CONTEXT>

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

agentic-workflows

免费有简介

此技能识别 GitHub Agentic Workflows 相关请求的类型,并引导代理读取对应提示或技能文件,涵盖设计、创建、配置、更新、调试和升级。

  • 设计或创建新工作流
  • 更新现有工作流
  • 调查工作流错误
cli/cli4.7万2026年10月25日 更新

Exercise a real command-line program with specified cases or a stated goal, then capture and verify the observed behavior. It produces local media evidence such as a session video, helping reviewers see what the command did without treating the recording as proof of general correctness.

中文简介正在准备中。当前显示英语简介。

  • Record specified CLI test cases
  • Demonstrate a command’s behavior
  • Validate an interactive terminal workflow
cli/cli4.7万2026年10月25日 更新

cli-exercise-evidence

免费有简介

将命令行练习的预期与记录证据逐项核对,按需渲染并检查媒体,返回各案例结果和本地成果文件路径;默认不发布证据。

  • 核验命令行练习的预期
  • 从录制内容生成视频证据
  • 检查视频或屏幕内容
cli/cli4.7万2026年10月25日 更新

cli-exercise-exact

免费有简介

此技能按原样执行指定的命令行测试,保留命令、输入、顺序和预期条件;逐项准备、操作并验证,再依据实际证据标记通过、失败、受阻或仅作观察。

  • 按原样执行命令行测试
  • 保留输入值和案例顺序
  • 对照预期与实际输出
cli/cli4.7万2026年10月25日 更新

cli-exercise-explore

免费有简介

此技能根据目标和已批准的范围选择可观察的命令行检查,逐项完成准备、操作和即时验证,并整理证据、尚未达到的行为及检查结果。

  • 按目标检查命令行操作
  • 明确上传完成的判断条件
  • 逐项准备并验证操作
cli/cli4.7万2026年10月25日 更新

cli-exercise-preflight

免费有简介

这是供 `cli-exercise` 内部使用的准备检查模块,用于核验构建、终端和媒体工具是否可用;缺少依赖时先征得安装同意,安装后重新检查。

  • 录制前检查所需工具
  • 检查视频或 GIF 输出能力
  • 查看缺失依赖的安装步骤
cli/cli4.7万2026年10月25日 更新

查看 cli 的全部技能

报告此技能的问题