code-review
하는 일
이 스킬은 AI가 코드 변경을 신중하게 단계별로 검토하고 쓸모 있는 피드백을 쓰도록 합니다. 간단히 훑어보는 것보다 깊은 검토를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓풀 리퀘스트나 로컬 코드 변경을 꼼꼼히 검토해 달라고 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.
댓글
- …