This guide provides comprehensive instructions for deploying and using the claude-code-review-skill project.
Prerequisites
Before you begin, ensure you have the following installed:
- Claude Code CLI: The command-line interface for Claude Code.
- Installation: Follow the instructions at claude.com/download.
- GitHub CLI: Required for reviewing Pull Requests.
- Installation:
brew install gh(macOS) or refer to the GitHub CLI documentation for other operating systems. - Authentication:
gh auth login
- Installation:
Installation
The claude-code-review-skill is installed as a skill for the Claude Code CLI.
Option 1: Add to your Project (Recommended)
This method installs the skill within your project's .claude directory, making it specific to that project.
mkdir -p .claude/skills/code-review
curl -o .claude/skills/code-review/SKILL.md \
https://raw.githubusercontent.com/anthroos/claude-code-review-skill/main/SKILL.md
Option 2: Global Installation
This method installs the skill globally, making it available for any project you work on with Claude Code.
mkdir -p ~/.claude/skills/code-review
curl -o ~/.claude/skills/code-review/SKILL.md \
https://raw.githubusercontent.com/anthroos/claude-code-review-skill/main/SKILL.md
Configuration
This project does not require explicit environment variables or API keys beyond the setup of the Claude Code CLI itself. The skill leverages your existing Claude Code CLI configuration.
Build & Run
The claude-code-review-skill is a markdown-based skill for the Claude Code CLI and does not require a separate build process. It is "run" by invoking the claude command with specific prompts.
Usage Examples
Once installed, you can use the skill by calling the claude command with various review prompts:
-
Full Comprehensive Review:
claude "full code review" -
Review a Specific Pull Request:
claude "review PR 123"(Replace
123with the actual PR number.) -
Security-Focused Review of Your Changes:
claude "security review my changes" -
Performance Review of a Specific Pull Request:
claude "check performance issues in PR 456"(Replace
456with the actual PR number.) -
Review and Post Comments to GitHub:
claude "review PR 123 and post comments"(Requires GitHub CLI authentication.)
Deployment
The claude-code-review-skill is deployed by installing it locally as a skill for the Claude Code CLI. There is no server-side component or external deployment platform required. The reviews are performed locally using your Claude Code CLI installation.
Troubleshooting
-
claudecommand not found:- Solution: Ensure the Claude Code CLI is correctly installed and its executable path is included in your system's
PATHenvironment variable. Refer to the Claude Code installation guide.
- Solution: Ensure the Claude Code CLI is correctly installed and its executable path is included in your system's
-
ghcommand not found or authentication issues:- Solution: Install GitHub CLI (
brew install ghon macOS) and authenticate usinggh auth login.
- Solution: Install GitHub CLI (
-
Skill not recognized by
claude:- Solution: Double-check the installation path. The
SKILL.mdfile must be located in either.claude/skills/code-review/(project-specific) or~/.claude/skills/code-review/(global). Ensure the directory structure and filename are exact.
- Solution: Double-check the installation path. The
-
Review output is generic or unhelpful:
- Solution: Ensure your prompt to
claudeis clear and specific. The quality of the review often depends on the clarity of the instruction given to Claude.
- Solution: Ensure your prompt to
-
curlcommand not found:- Solution:
curlis typically pre-installed on most Linux/macOS systems. If not, install it via your system's package manager (e.g.,sudo apt install curlon Debian/Ubuntu,brew install curlon macOS).
- Solution: