flutter/code-review
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.
npx skills add https://github.com/flutter/flutter --skill 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.
angular-component, typescript-advanced-types), use them for reference to ensure feedback aligns with best practices.Follow these steps sequentially to perform a comprehensive review:
Before starting the review, gather the changes to be reviewed.
gh pr view to read the title and description to understand the intent.gh pr diff to get the actual code changes.git status to see modified files.git diff to see unstaged changes, or git diff --staged for staged changes.git log -p to see recent commits if reviewing a local branch.Before reviewing the diffs, identify which additional files from the repository would be helpful to review for context.
Consider:
_Reference: Use the guidelines in splitting_reviews.md if the review needs to be subdivided._
Generate review comments focusing on the following criteria:
Guidelines:
Perform a self-critique pass on the generated comments.
Filter out or modify comments based on the rules in critique_rules.md.
Ensure that:
+ or - in the diff.Combine the refined comments into a final output.
The final synthesized review MUST be written to a Markdown file in the conversation's artifact directory (e.g., review_results.md in <appDataDir>/brain/<conversation-id>/) and also displayed to the user.
The review file should contain:
Each review comment in the list should specify:
critical, high, medium, or low.Take flutter/code-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.