Install
openclaw skills install code-review-automationAutomated code review for GitHub pull requests using Claude LLM. PR analysis, security scanning, and style checking.
openclaw skills install code-review-automationAutomated code review for GitHub pull requests using Claude LLM
Automatically analyze GitHub pull requests, provide intelligent code reviews, security scanning, and style checking using Claude AI.
.reviewrcuv pip install PyGithub anthropic rich typer python-dotenv
Get your GitHub Personal Access Token:
repo scope.env file:GITHUB_TOKEN=your_github_pat_here
# List open PRs
code-review list-prs owner/repo
# Show PR details
code-review pr-info owner/repo 123
# Show files changed
code-review pr-files owner/repo 123
# Analyze PR with Claude AI
code-review review-pr owner/repo 123
list-prsList pull requests from a repository.
code-review list-prs owner/repo
Options:
--state: PR state (open, closed, all) - default: open--limit: Maximum PRs to show - default: 10pr-infoShow detailed information about a specific PR.
code-review pr-info owner/repo 123
Shows:
pr-filesShow files changed in a PR.
code-review pr-files owner/repo 123
Shows:
search-prsSearch pull requests by keyword.
code-review search-prs owner/repo --query "bug"
Options:
--query: Search keyword (required)--state: PR state (open, closed, all) - default: open--limit: Maximum PRs to show - default: 10repo-infoShow general repository information.
code-review repo-info owner/repo
Shows:
review-prAnalyze a pull request using Claude AI.
code-review review-pr owner/repo 123
Shows:
Requires:
GITHUB_TOKEN in .envANTHROPIC_API_KEY in .envsecurity-scanScan a pull request for security vulnerabilities.
code-review security-scan owner/repo 123
Detects:
Options:
--config: Configuration file pathstyle-checkCheck a pull request for style and linting issues.
code-review style-check owner/repo 123
Checks:
Options:
--config: Configuration file pathfull-reviewRun full code review (LLM + Security + Style) on a pull request.
code-review full-review owner/repo 123
Combines:
Options:
--config: Configuration file path--skip-llm: Skip LLM analysis--skip-security: Skip security scan--skip-style: Skip style checkconfig-initInitialize a default configuration file.
code-review config-init --output .reviewrc
Creates a .reviewrc file with customizable settings for:
.reviewrc support# Run full review
code-review full-review facebook/react 34567
# Security scan only
code-review security-scan owner/repo 123
# Style check only
code-review style-check owner/repo 123
# AI analysis only
code-review review-pr owner/repo 123
# List all closed PRs
code-review list-prs owner/repo --state closed --limit 20
# Initialize config
code-review config-init
.env file (never committed)MIT
For issues or questions: