From selvage
Performs AST-based smart context code reviews on git diffs (unstaged, staged, branches, commits) using Selvage for bugs, security, performance, and design issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/selvage:reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Parse `$ARGUMENTS` to determine the diff scope:
Parse $ARGUMENTS to determine the diff scope:
| Input | diff_scope | target_branch | target_commit |
|---|---|---|---|
| (empty) | unstaged | - | - |
staged | staged | - | - |
branch main | branch | main | - |
branch develop | branch | develop | - |
commit abc1234 | commit | - | abc1234 |
If $ARGUMENTS does not match any pattern above, default to unstaged diff_scope.
Call mcp__selvage__get_review_context with the parsed parameters.
Inspect the response and branch on the result:
Case A - Inline context (no context_id in response):
review_targets field contains all file contexts inline.Case B - Split context (context_id is present in response):
context_id and file_list (list of file paths).file_list, call mcp__selvage__get_file_review_context with the context_id and file_path.review_target results, then proceed to Step 2.Using the system_prompt from Step 1 as your review guidelines:
context_type in each target:
SMART_CONTEXT: AST-analyzed related code blocks - use these to understand the broader code structure around changes.FALLBACK_CONTEXT: Text-based pattern matches - still useful but less precise than AST analysis.FULL_CONTEXT: Complete file content - typically for new or heavily rewritten files.Read to examine the actual source file for additional context.Grep to search for related patterns, usages, or definitions across the codebase.Glob to find related files if needed.Present the review as free-form text (not JSON). Structure your response as:
[error], [warning], or [info]If no issues are found, state that the changes look good and provide a brief positive summary.
npx claudepluginhub selvage-lab/selvage --plugin selvageConducts structured code reviews with severity classification (critical, major, minor, suggestion) on git diffs, staged changes, last commits, or specified file paths.
Reviews git-tracked code changes for architecture, security, performance, quality, and style using multi-agent analysis and diff context. Use for PR readiness checks.
Code review with semantic diffs, expert routing by file type, and auto-task creation for critical issues. Works on staged changes, files, or PRs.