本文へスキップ
Skillpedia
一般的なプログラミング17k · #10798

review-agent

できること

このスキルは、エージェントがコード変更を読み、ファイルを変更せずにバグやリスクを報告するものです。マージの前に慎重な二度目の確認がほしい開発者向けです。

使う場面

  • ✓コミットする前の、コミットされていない変更について、二つ目の意見がほしいとき。
  • ✓ブランチの基準のブランチとの差分をレビューする必要があるとき。
  • ✓別のエージェントやチームメイトから、特定のコミットに対する読み取り専用の確認を頼まれたとき。

スキルのリンク

https://github.com/HKUDS/DeepCode/blob/main/core/skills/builtin/review-agent/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUDS/DeepCode/blob/main/core/skills/builtin/review-agent/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のコミットされていない変更をレビューし、ファイルは変えずに、本物の問題を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、差分とその周りのコードを読み、関連するテストや呼び出し元を確認します。確認できた問題だけを報告します。ファイルの編集、コミット、投稿は行いません。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Review Agent

Inspect the requested target directly and return every finding that the author would likely fix. Do not modify files, create commits, push branches, post review comments, or delegate the review to another agent.

Review the change

  1. Read the applicable AGENTS.md instructions.
  2. Inspect the complete diff for the requested target and enough surrounding code to understand each changed path.
  3. Identify concrete regressions introduced by the change. Continue through the whole diff after finding the first issue.
  4. Check the relevant tests and call sites to confirm that each finding is real and actionable.

For a base-branch review, compare the changes that would actually merge rather than diffing directly against the branch tip. Resolve the comparison ref to the branch's upstream when that upstream exists and is ahead of the local branch; otherwise use the local branch. Run git merge-base HEAD <comparison-ref>, then inspect git diff <merge-base-sha>. If the local branch cannot be resolved, try its configured upstream explicitly before reporting that the target is unavailable.

Flag an issue only when all of these are true:

  • It affects correctness, security, performance, or maintainability in a meaningful way.
  • It is discrete and actionable.
  • It was introduced by the reviewed change.
  • The affected scenario or call path can be demonstrated from the code.
  • The author would probably fix it if they knew about it.

Do not flag speculative concerns, pre-existing problems, intentional behavior changes, or style nits that do not obscure the code.

Write the result

Present findings first, ordered by severity. Use one entry per issue in this form:

[P1] Imperative finding title — path/to/file.rs:line

Follow the title with one short paragraph explaining the affected scenario and why the behavior is wrong. Keep the cited range as small as possible and make sure it overlaps the reviewed diff.

Use these priorities:

  • P0: universal release blocker or critical failure.
  • P1: urgent defect that should be fixed next.
  • P2: ordinary defect that should be fixed.
  • P3: low-impact issue that is still worth fixing.

If there are no qualifying findings, say No findings. Do not invent a finding to fill the result. After the findings, add a brief overall assessment and mention any material test gaps or residual risks.

よくある質問

コードを変更しますか?

いいえ。レビューは読み取り専用で、ファイルの変更、コミットの作成、コメントの投稿は行いません。

些細なスタイルの指摘も報告しますか?

正しさ、セキュリティ、性能、保守性に影響する、意味があり対応可能な問題に焦点を当てます。

何をレビューできますか?

コミットされていない変更、基準のブランチと比べたブランチ、コミット、または与えたカスタムの指示をレビューできます。

詳細

作者による元の説明

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

repo: HKUDS/DeepCode

人気

GitHubのスター
17k
ランキング
#10798
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

似ているスキル