All skills
flutter avatar

/code-review

@7712f53 official
by flutterflutter/skills3k stars
182

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.

Use this Skill: https://skilld.dev/gh/flutter/skills/code-review

This session only. Nothing lands on disk.

referencescritique_rules.md

≈466 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Rules for Reviewing Reviews

This reference document provides guidelines for reviewing and filtering generated code review comments (the "review the review" step). Use these rules to ensure that only high-quality, actionable comments are included in the final output.

Filtering Guidelines

A comment should be dropped if it meets any of the following conditions:

  • It is not on a line that was actually changed (lines starting with + or - in the diff).
  • It is merely informational, explaining what the code does.
  • It is complimentary (e.g., "Good job", "Nice fix").
  • It tells the user to "check", "confirm", "verify", or "ensure" something without pointing to a specific issue.
  • It is out of bounds for the line range allowed by the SCM API.

A comment should be kept or modified if:

  • It identifies a real issue or bug.
  • Its content can be made more concise or actionable.
  • Its severity can be adjusted to better match the guidelines.

Severity Guidelines (Reminders)

Ensure severity levels are applied consistently:

  • Refactoring hardcoded strings/numbers: Generally low severity.
  • Log messages or enhancements: Generally low severity.
  • Comments in Markdown files: Usually medium or low severity.
  • Adding/expanding docstrings: Usually low severity.
  • Suppressing warnings or TODOs: Usually low severity.
  • Typos: Usually low or medium severity.
  • Test files: Comments on tests are usually low severity unless they point to a critical gap in coverage.

Code Suggestion Quality

When reviewing code suggestions within comments, ensure:

  • They are accurately anchored to the lines they intend to replace.
  • They preserve the indentation and spacing of the original code.
  • They are compilable or syntactically correct for the language.
  • They are succinct and easy to understand.

Source: SKILL.md on GitHub

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill performs multi-step code reviews using Git and GitHub CLI. It includes a Python script for managing large diffs. While functionally safe, it processes untrusted code changes which presents a potential surface for indirect prompt injection.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 7712f53. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 5 months ago

README badge

README badge for flutter/skills/code-review

Performs a comprehensive, multi-step code review of pull requests or local code changes using an iterative workflow—generation, critique, and synthesis—to produce actionable feedback on correctness, efficiency, maintainability, and security. Targets the review process itself, avoiding generic praise and focusing only on issues found in modified lines.

Generated from the current SKILL.md.

Does this skill work with GitHub pull requests and local git changes?
Yes. It supports reviewing GitHub PRs using `gh pr view` and `gh pr diff`, and local changes using `git status`, `git diff`, and `git log -p`.
What does this skill focus on when reviewing code?
It checks correctness, efficiency, maintainability, and security. It only adds comments for actual issues or improvement opportunities, not validation or explanation of unchanged code.
Does this skill integrate with other skills?
Yes. It references specialized skills like `api-review` for API design feedback, `code-documentation` for documentation standards, and language/framework-specific skills to align with project best practices.
What format does the final review output use?
Reviews are written as Markdown files with a high-level summary, file summaries, comments ordered by severity (critical, high, medium, low), and a recommendations section with actionable feedback.

Generated from the current SKILL.md. These answers refresh after source changes.