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.
npx claudepluginhub selvage-lab/selvage --plugin selvageThis skill is limited to using the following tools:
Parse `$ARGUMENTS` to determine the diff scope:
Conducts structured code reviews with severity classification (critical, major, minor, suggestion) on git diffs, staged changes, last commits, or specified file paths.
Code review with semantic diffs, expert routing, and auto-TaskCreate. Triggers on: code review, review changes, check code, review PR, security audit.
Performs lightweight ad-hoc code reviews on PRs, diffs, files, or commits across security, performance, correctness, and maintainability dimensions.
Share bugs, ideas, or general feedback.
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.