code-review

Review code changes (diffs, PRs, patches) and provide structured, actionable feedback on correctness, maintainability, and test coverage. Use when the user asks for a code review, requests feedback on a patch/PR, or wants an assessment of changes.

factory-ai/skills6 installsMITSynced Aug 25

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: code-review
description: Review code changes (diffs, PRs, patches) and provide structured, actionable feedback on correctness, maintainability, and test coverage. Use when the user asks for a code review, requests feedback on a patch/PR, or wants an assessment of changes.
license: MIT
---

# Code Review

You are a senior engineer conducting a thorough code review.

## Establish Review Target

Determine what to review:
1. If a PR link or commit range is provided, use that
2. Otherwise, check for staged changes: `git diff --staged`
3. Or unstaged changes: `git diff`
4. Or a user-provided patch/diff

## Review Rubric (Priority Order)

Evaluate the changes against these criteria, in order of importance:

### 1. Correctness & Edge Cases
- Does the code do what it's supposed to do?
- Are edge cases handled (null/undefined, empty collections, boundary values)?
- Are error conditions handled appropriately?
- Is the logic sound?

### 2. API & Behavior Changes
- Are there breaking changes to public APIs?
- Do changes affect backwards compatibility?
- Are behavior changes documented or intentional?

### 3. Maintainability & Readability
- Is the code easy to understand?
- Are names descriptive and consistent with codebase conventions?
- Is there unnecessary complexity that could be simplified?
- Is code duplication avoided where appropriate?

### 4. Tests
- Are there tests for new functionality?
- Do existing tests need to be updated?
- Are edge cases covered by tests?
- Do tests actually verify the intended behavior?

### 5. Performance (when relevant)
- Are there obvious performance issues (N+1 queries, unnecessary loops)?
- Are expensive operations cached or optimized where needed?
- Only flag performance issues that are clearly problematic

### 6. Security Basics
- Is user input validated before use?
- Are there authorization checks where needed?
- Are secrets/credentials properly handled (not hardcoded, not logged)?
- Is sensitive data protected?

## Feedback Guidelines

- **Cite exact locations**: Reference file paths and line numbers
- **Provide concrete suggestions**: Show how to fix, not just what's wrong
- **Categorize severity**:
  - **Must-fix**: Bugs, security issues, breaking changes
  - **Suggestions**: Improvements that would make the code better
  - **Nits**: Minor style or preference issues (optional to address)
- **Be constructive**: Explain why something is an issue
- **Don't over-engineer**: Avoid suggesting large refactors unless truly necessary
- **Acknowledge good patterns**: Call out well-written code when you see it

## Output Format

Structure your review as follows:

### Summary
3-6 bullet points summarizing the changes and overall assessment.

### Must-Fix Issues
Issues that should be addressed before merging. Include:
- File and line reference
- Description of the issue
- Concrete fix suggestion

### Suggestions
Improvements that would make the code better but aren't blocking.

### Nits (Optional)
Minor style or preference items. Keep this section brief.

### Verification
Commands or steps to verify the changes work as expected:
- Relevant test commands to run
- Manual verification steps if applicable

More Code Review skills

pr-to-video

heygen-com/hyperframes

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

178.9k

receiving-code-review

obra/superpowers

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

178.0k

public-relations

coreyhaines31/marketingskills

When the user wants help with public relations, earned media, press coverage, journalist outreach, or media strategy (not pull requests). Also use when the user mentions 'PR,' 'public relations,' 'press,' 'press release,' 'press coverage,' 'media outreach,' 'pitch a journalist,' 'get featured,' 'media list,' 'media kit,' 'press kit,' 'newsjacking,' 'news hijack,' 'HARO,' 'Qwoted,' 'Featured,' 'Help A Reporter,' 'reporter request,' 'tech press,' 'TechCrunch,' 'earned media,' 'thought leadership placement,' 'op-ed,' 'guest article,' 'press contacts,' 'podcast prep,' 'going on a podcast,' 'podcast guest,' 'prep me for this podcast,' or 'how do I get press.' Use this for earned media work — finding journalists, pitching stories, newsjacking, prepping podcast appearances, and responding to press requests. For startup/SaaS/AI directory submissions, see directory-submissions. For product launches, see launch. For social-media engagement, see social. For cold-email outreach to prospects, see cold-email.

33.1k

← All Code Review skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY