Back to Skills

code-reviewer

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

102,376stars13,316forksUpdated 4/25/2026

Security Assessment

Safe(100/100)
Security Score100/100

About code-reviewer

The 'code-reviewer' skill is designed to facilitate comprehensive and professional code reviews, helping developers maintain high standards in their codebases. By supporting both local changes (staged or working tree) and remote Pull Requests (PRs) via PR ID or URL, this skill ensures that the review process is seamless regardless of the source. It emphasizes four core aspects: correctness, maintainability, security, and adherence to project standards, all of which contribute to producing reliable and efficient code. This skill is especially beneficial in collaborative environments where code quality and consistency are paramount to success.

Key features of the 'code-reviewer' skill include the ability to handle both local and remote code review scenarios. It offers a structured workflow, starting from determining the review target (whether a PR or local changes), followed by preparation steps such as checking out the PR and running preflight tests. The in-depth analysis focuses on critical aspects like correctness, maintainability, efficiency, and testability. The skill also provides a clear and constructive feedback structure, guiding users on how to improve their code. Furthermore, it offers post-review cleanup to maintain branch integrity in remote PRs, making it a versatile tool for developers.

This skill is targeted at developers, code reviewers, and quality assurance professionals who require an organized and thorough approach to code reviews. Whether reviewing code locally or remotely, the 'code-reviewer' skill ensures that reviews are both efficient and effective. It is suitable for individual developers looking to enhance their code or teams working collaboratively on complex projects that demand consistent quality checks.

FAQ

How do I review a local change using this skill?

To review local changes, simply ensure no specific PR is mentioned. The skill will target the local file system states (staged or unstaged changes) by using commands like 'git status' and 'git diff'.

Can this skill review remote pull requests?

Yes, the skill can review remote PRs by accepting either a PR ID or a URL. It checks out the PR using the GitHub CLI and runs preflight checks before analysis.

What are the requirements for using this skill?

You will need access to the GitHub CLI to check out remote PRs and Node.js for running preflight tests using commands like 'npm run preflight'.

Does this skill help with writing tests for my code?

Yes, part of the review includes assessing whether the code is adequately covered by tests. The skill suggests improvements for test coverage where necessary.

Can I use this skill for any programming language?

The skill is language-agnostic but uses commands like 'npm run preflight' which are typical for JavaScript/Node.js projects. For other languages, users would need to adapt the preflight step to their specific tooling.

Install code-reviewer

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill