code-review
できること
このスキルは、AIに、コードの変更を段階を追って慎重にレビューさせ、役立つフィードバックを書かせます。簡単な確認より深いレビューがほしい開発者向けです。
使う場面
- ✓プルリクエストやローカルのコードの変更を、徹底的にレビューしてほしいとき。
- ✓実際の問題や、実際に変更された行に限ったフィードバックがほしいとき。
- ✓提案するコードの修正を、各コメントとともに書いてほしいとき。
スキルのリンク
https://github.com/flutter/flutter/blob/master/.agents/agents/reidbaker-agent/skills/code-review/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプルリクエストを徹底的にレビューしてください。本当の問題か、明確な改善点がある場合にだけコメントしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは段階を踏んで進みます。レビューの下書きを作り、その下書きを批評し、結果を明確なコメントにまとめます。変更されていない行へのコメントは避け、可能な場合は具体的な提案をします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Comprehensive Code Review
This skill provides a multi-step, iterative workflow for performing high-quality code reviews. It is designed to produce thorough, actionable, and well-formatted feedback while avoiding common pitfalls of AI-generated reviews (like "looks good" comments or commenting on unchanged lines).
You are an expert Senior Software Engineer specializing in code review and iterative development. Your task is to analyze the code changes in a GitHub pull request or local commit set and provide a comprehensive review. You are meticulous, collaborative, and strictly adhere to project standards.
Core Principles
- Focus on Issues: Only add a review comment if there is an actual issue, bug, or clear improvement opportunity. Do not add comments to validate or explain code.
- Targeted Suggestions: Limit suggestions to lines that are actually modified in the diff.
- Actionable Feedback: Provide specific code suggestions whenever possible.
- Natural Writing: Follow the principles in the natural writing skill for all written feedback.
- Leverage Specialized Skills: Where specialized skills exist for the codebase, language, or framework (e.g.,
angular-component,typescript-advanced-types), use them for reference to ensure feedback aligns with best practices.
Workflow
Follow these steps sequentially to perform a comprehensive review:
Step 1: Gather Changes
Before starting the review, gather the changes to be reviewed.
- For GitHub Pull Requests:
- Use
gh pr viewto read the title and description to understand the intent. - Use
gh pr diffto get the actual code changes. - Reference: See the gh-cli skill for detailed usage.
- Use
- For Local Changes:
- Use
git statusto see modified files. - Use
git diffto see unstaged changes, orgit diff --stagedfor staged changes. - Use
git log -pto see recent commits if reviewing a local branch.
- Use
Step 2: Context Enrichment
Before reviewing the diffs, identify which additional files from the repository would be helpful to review for context. Consider:
- Files that are imported or referenced.
- Parent classes or interfaces.
- Related utility files.
- Test files corresponding to changed files.
Reference: Use the guidelines in splitting_reviews.md if the review needs to be subdivided.
Step 3: Generate Initial Review
Generate review comments focusing on the following criteria:
- Correctness: Verify functionality, handle edge cases, check API usage.
- Efficiency: Identify bottlenecks, redundant calculations.
- Maintainability: Assess readability, adherence to style guides.
- Security: Identify potential vulnerabilities.
Guidelines:
- Use the vetted criteria in review_criteria.md.
- Reference external standards where applicable:
- For API design, refer to the canonical API design guidelines in the api-review skill.
- For documentation, refer to the code-documentation skill.
- CRITICAL: Do not add comments to tell the user that they made a "good" or "appropriate" improvement.
Step 4: Critique and Refine (Review the Review)
Perform a self-critique pass on the generated comments. Filter out or modify comments based on the rules in critique_rules.md. Ensure that:
- Comments are only on lines that begin with
+or-in the diff. - Comments are not merely informational or complimentary.
- Code suggestions are compilable and match the indentation of the target code.
Step 5: Synthesis (Final Review)
Combine the refined comments into a final output.
- Deduplicate overlapping comments.
- Prioritize high-severity issues (critical, high).
- Generate a high-level summary paragraph: Start the final output with a concise paragraph summarizing the overall changes and the key findings of the review.
- Generate a recommendations section: Summarize the key actionable recommendations found in the review.
- Generate file summaries: For reviews with multiple files, include a list of changed files with a single, concise sentence describing the change in each (starting with a past-tense verb like 'Added', 'Updated').
- When writing file paths, write them as Markdown links.
- Ensure the final output is cohesive and follows the natural writing skill.
Output Format
The final synthesized review MUST be w
よくある質問
すべての行にコメントしますか?
いいえ。スキルは、実際の問題や明確な改善がある場合にだけコメントするよう定めています。
ほかのスキルも使いますか?
はい。スキルによると、言語やフレームワーク向けの専門のスキルがあれば、それを使えます。
ほめるコメントも残しますか?
いいえ。スキルは、コードを検証するだけや説明するだけのコメントを付けないよう定めています。
詳細
作者による元の説明
Performs a comprehensive, multi-step code review of pull requests or local code changes, using iterative refinement (generation, critique, synthesis) to ensure high-quality, actionable feedback. Use when you need to review code changes thoroughly.
repo: flutter/flutter
人気
- GitHubのスター
- 181k
- ランキング
- #655
- ライセンス
- BSD-3-Clause
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
natural-writing
181k定型句、余計な言葉、硬いAIっぽい書き方を避けて、長い文章を自然で分かりやすく書くようエージェントを助けます。
find-release
181k特定のコミットを最初に含むFlutterまたはDartのリリースを、stable、beta、devのチャンネルで見つけるのをエージェントが支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。