
Comprehensive Code Review
FreeStreamline your code review process with actionable insights.
Free · Opens the source repo
What Comprehensive Code Review does
The Comprehensive Code Review skill is designed to facilitate thorough and effective code reviews, ensuring high-quality feedback on pull requests or local code changes. By employing a multi-step iterative workflow, this skill helps developers identify issues, suggest improvements, and maintain coding standards without falling into common pitfalls of automated reviews. It is particularly useful for teams looking to enhance their code quality and foster collaborative development practices.
This skill operates by gathering changes from GitHub pull requests or local commits, enriching context with relevant files, and generating detailed review comments based on established criteria such as correctness, efficiency, maintainability, and security. The focus is on providing actionable feedback, meaning that comments are strictly reserved for actual issues or improvement opportunities, avoiding unnecessary validations or compliments.
The workflow includes a self-critique phase to refine the initial comments, ensuring that feedback is not only relevant but also clear and concise. The final output is synthesized into a Markdown file, which includes a high-level summary, detailed review comments organized by severity, and actionable recommendations. This structured approach not only aids in identifying critical issues but also helps in documenting the review process effectively.
Ideal for software engineers and development teams, this skill enhances the code review process by making it more systematic and less prone to the vagaries of subjective feedback. It is especially beneficial for projects that prioritize code quality and collaborative practices, allowing developers to maintain high standards while efficiently managing their workflow.
When to use it
Use this skill when you need to conduct a thorough review of code changes, whether from a pull request or local commits.
When not to use it
This skill may not be suitable for quick, informal reviews or when immediate feedback is needed without a structured approach.
What you can build with it
Reviewing a Pull Request
Use this skill to analyze changes in a GitHub pull request, ensuring comprehensive feedback on the proposed code.
Local Commit Review
Apply this skill to review local code changes before pushing them to a shared repository, enhancing code quality.
Team Code Review Session
Utilize this skill during team code review meetings to provide structured and actionable feedback collaboratively.
How to install Comprehensive Code Review
View source1. Install with the skills CLI
npx skills add flutter/agent-plugins/code-review --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by flutterComprehensive 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 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:
- The high-level summary paragraph.
- File summaries (if applicable).
- The list of review comments, ordered by severity.
- A recommendations section summarizing key actionable feedback.
Each review comment in the list should specify:
- File: The path to the file.
- Line: The line number (anchored to the diff).
- Severity:
critical,high,medium, orlow. - Body: The explanation of the issue.
- Suggestion: (Optional) The specific code replacement.
Frequently asked questions about Comprehensive Code Review
Similar skills
Quality Playbook Generator
Run comprehensive quality audits on any codebase.
PR Draft Summary
Automate PR summary generation for openai-agents-python.
Final Release Review
Streamline your release candidate audits with ease.
Unit Test Vue Pinia
Efficiently write and review unit tests for Vue 3 applications.
Slang Shader Expert
Optimize and integrate Slang shaders with ease.
Telemetry Standards
Ensure consistent event tracking in Supabase Studio.
