本文へ移動
cccskills
無料GitHub で公開日本語紹介

code-review

GitHub CLI(`gh`)のプルリクエストを、関連する課題やリポジトリの規約と照らし合わせて確認し、重大度別に問題点や改善案をまとめます。

原文原文の説明を見る

Use when reviewing GitHub CLI (gh) pull requests.

cli/cliスター 46,747(GitHub 46,747 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • マージ前にプルリクエストを確認したいとき
  • リポジトリ規約に沿ってレビューしたいとき
  • 互換性やテスト不足を調べたいとき
  • 重大度別にレビュー指摘を整理したいとき

日本語での紹介

できること

GitHub CLI(gh)で扱うプルリクエストについて、差分だけでなく、関連する課題やコメント、過去の判断、リポジトリの規約も確認してレビューします。バグやセキュリティ上の問題、互換性を損なう変更、テスト不足などを優先して調べ、指摘は重大度ごとに整理します。スクリプトが利用する出力や終了コードなど、非対話実行時の変更も確認対象です。指摘は利用者への影響を平易に説明し、必要に応じて関連する課題や変更への参照を添えます。

こんなときに便利

マージ前に変更の問題を洗い出したいときや、プロジェクト固有のルールに沿ってレビューしたいときに向いています。差分の見どころを整理し、修正が必要な事項と任意の改善提案を分けて伝えたい場合にも使えます。

使い方の例

  • 「この gh のプルリクエストを、関連する課題とリポジトリの規約も確認してレビューしてください」
  • 「この変更に互換性を壊す点やテスト不足がないか確認してください」

注意点

レビュー時にはリポジトリの AGENTS.md と、変更箇所に該当するガイドを確認します。脆弱性に関する指摘は通常の公開レビューに記載せず、SECURITY の手順に従います。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

資料チェック

SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。

安全面送信・削除・コマンド実行などの扱いが明示されているか
A良好脆弱性は公開せず、`SECURITY` 手順に従うと明記されています。
導入のしやすさ必要なツールや API キーが少ないか、書かれているか
B一部不足GitHub CLI とリポジトリ資料を使いますが、導入条件は記載されていません。

点数には入れていません。 2026年10月26日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。

評価が違うと思ったら、見直しを依頼する

どの項目が、なぜ違うと思うかを書いてください。ログインは不要です。内容を SKILL.md と照らし合わせて評価を作り直し、この欄に反映します。

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

含まれるファイル(1)

  • SKILL.md6.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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日 更新

cli-exercise

無料概要あり

実際のCLIコマンドをケースや目標に沿って実行・記録し、観察した動作を確認できる動画などの証拠にまとめます。

  • CLIの指定ケースを記録したいとき
  • コマンドの動作を動画で示したいとき
  • 対話型の操作を検証したいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-evidence

無料概要あり

CLI操作の記録や実行結果を期待値と照合し、動画などの証拠をローカルで作成・確認して、ケースごとの結果と成果物を返します。

  • CLI演習の期待値を検証したいとき
  • 記録から動画証拠を作成したいとき
  • 動画や画面の内容を点検したいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-exact

無料概要あり

指定されたCLIテストのコマンド、入力、順序、期待条件を保ったまま実行し、観察結果に照らして各ケースを判定するスキルです。

  • 指定どおりのCLIテストを実行したいとき
  • 入力やケースの順序を保って確認したいとき
  • 期待結果を実際の出力と照合したいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-explore

無料概要あり

指定された目標と許可範囲に沿ってCLIの確認項目を選び、各操作の準備・実行・検証を順に進めて結果を整理するスキルです。

  • CLI操作を目標に沿って確かめたいとき
  • アップロードの完了条件を整理したいとき
  • 操作ごとに準備と検証を行いたいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-preflight

無料概要あり

cli-exerciseの実行前にGoや録画関連ツールの利用可否を調べ、不足時は導入手順への同意を得て再確認する内部モジュールです。

  • 記録前に必要なツールを確認したいとき
  • 動画やGIFの出力可否を調べたいとき
  • 不足依存関係の導入手順を知りたいとき
cli/cli4.7万2026年10月25日 更新

cli のスキルをすべて見る

このスキルの問題を報告する