This is a code review assistant skill and bundled CLI agent. Rather than reviewing the code entirely on its own, it's serving as an intelligent companion to a reviewer, by providing the following:
- Automatic matching of reviewers on your team based on their expertise
- First code review pass based on team-specific code patterns and concerns
- Visual explanation of complex architectural changes (feat. Nano Banana Pro)
For a representative example, take a look at this PR comment: #1 (comment)
npm install
# Copy and edit .env with your API keys
cp .env.example .envRequired API keys:
- Anthropic: https://console.anthropic.com/
- GitHub: https://github.com/settings/tokens (needs
reposcope) - Gemini (optional): https://makersuite.google.com/app/apikey
- Cloudinary (optional): https://cloudinary.com/console/settings/api
Use the bundled agent for automated reviews on any PR:
# Interactive mode (default) - prompts for actions after review
./agent facebook/react#28000
# Non-interactive mode (for CI/CD)
./agent facebook/react#28000 --non-interactive
# Force diagram generation for all PRs
./agent facebook/react#28000 --force-diagramsCLI Options:
--non-interactive: Skip prompts (for CI/CD pipelines)--force-diagrams: Always generate visual diagrams, even for simple PRs
Interactive Mode (default): After the review, you'll be prompted to:
- Auto-assign the recommended reviewers via
gh pr edit - Post the review as a PR comment via
gh pr comment
Non-Interactive Mode: Just displays the review and exits (perfect for CI/CD pipelines).
Use the skill directly in Claude Code for quick reviews during development:
-
Copy skill to your project:
cp -r .claude/skills/code-review-assistant /your/repo/.claude/skills/
-
In Claude Code, ask:
Review the current PR
Claude will automatically:
- Fetch PR using GitHub CLI
- Analyze changes against your team's standards
- Generate diagrams for complex logic
- Offer to auto-assign reviewers via
gh pr edit - Offer to post the review as a comment via
gh pr comment
Use the skill programmatically in your own code:
import { query } from '@anthropic-ai/claude-agent-sdk';
for await (const message of query({
prompt: `Review this PR: ${prData}`,
options: {
settingSources: ["user", "project"], // Load skills from filesystem
allowedTools: ["Skill", "Bash", "Read", "Write", "Grep", "Glob", "WebFetch"],
}
})) {
console.log(message);
}- Update team expertise: Edit
.claude/skills/code-review-assistant/reference/team-expertise.md- Add your team members with their GitHub usernames (e.g.,
@username) - List their areas of expertise
- Add your team members with their GitHub usernames (e.g.,
- Add your standards: Edit
code-standards.mdandcode-standards-map.md - Customize output: Modify the "Output Format" section in
SKILL.md
- Introducing Agent Skills
- Agent Skills in Claude Code
- Anthropic sample skills
- Agent SDK Documentation
- Agent Skills Guide
- Skills Engineering Blog
- GitHub CLI - Used for reviewer assignment and posting comments
- GitHub Octokit - Used for fetching PR metadata
Apache 2.0 - See LICENSE.txt