An interactive PR code reviewer for Claude Code, installable via ccmd. Adds the /review command and the /cm skill.
When executed via /review in Claude Code, this command performs an interactive code review of a GitHub Pull Request:
- Fetches PR details, diff, and modified files from GitHub
- Detects cross-project dependencies (e.g., hub ↔ hub-ui API changes)
- Invokes the
review-plugin:code-revieweragent to analyze the changes - Presents each suggestion interactively — approve, edit, or skip
- Submits the final review to GitHub only after your explicit confirmation
Analyzes the current working tree (git diff HEAD + git status) and generates:
- A Conventional Commit message (
feat,fix,docs, etc.) - A kebab-case branch name with a matching prefix
- A PR title and 2–4 sentence description
Output language is controlled by the argument (english/en or portuguese/pt, default portuguese).
- Claude Code with ccmd installed
- GitHub MCP configured with a Personal Access Token that has
reposcope
ccmd install gifflet/review-pluginAfter installation, use in Claude Code.
/review <PR_NUMBER|PR_URL> [LANGUAGE]
Arguments:
PR_NUMBER|PR_URL(required): PR number (uses current repo's git remote) or full GitHub URLLANGUAGE(optional):english/en(default) orportuguese/pt
Examples:
/review 123/review 123 pt/review https://github.com/org/repo/pull/123 portuguese/review https://github.com/org/repo/pull/123 en
/cm [LANGUAGE]
Arguments:
LANGUAGE(optional):english/enorportuguese/pt(default)
Examples:
/cm/cm en/cm portuguese
The skill is disable-model-invocation: true — Claude will not trigger it automatically; you always invoke it explicitly. Stage or modify files first, then run the skill to get commit/branch/PR artifacts grounded in the live diff.
ccmd installfetches and pins this repository into Claude Code's plugin directory- Claude Code registers the
/reviewcommand fromcommands/review.mdand the/cmskill fromskills/cm/SKILL.md - When
/reviewis invoked, Claude Code loadscommands/review.mdand the LLM follows the 6-phase workflow defined there:- Phase 1: Parse and validate input (PR identifier + language)
- Phase 2: Fetch PR details via GitHub MCP
- Phase 3: Analyze cross-project dependencies
- Phase 4: Invoke the
review-plugin:code-revieweragent (agents/code-reviewer.md) - Phase 5: Interactive approval of each suggestion
- Phase 6: Submit review with explicit user confirmation
- When
/cmis invoked, Claude Code injects the livegit diff HEADandgit status --shortinto the skill content (via the!`<command>`shell-injection syntax) and the LLM produces the three artifacts in the requested language.
The plugin is structured around three key files:
commands/review.md— the/reviewslash command entry point; defines the 6-phase workflow and orchestrates the review processagents/code-reviewer.md— the specialized agent prompt that performs the actual code analysis and generates review commentsskills/cm/SKILL.md— the/cmskill; self-contained, inlines DevHelper-style instructions and uses dynamic shell injection to pull in the current working-tree state
This repository also serves as:
- A production-grade example of Claude Code custom commands and skills
- A reference for building interactive multi-phase slash commands
- A demonstration of GitHub MCP tool integration
- A pattern for commands requiring explicit user confirmation before external actions
- An example of skill authoring with
disable-model-invocation,argument-hint,allowed-tools, and dynamic context injection