ワンクリックで
review
Selvage AST-based smart context code review. Use when reviewing code changes, checking diffs, or analyzing code quality.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Selvage AST-based smart context code review. Use when reviewing code changes, checking diffs, or analyzing code quality.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | review |
| description | Selvage AST-based smart context code review. Use when reviewing code changes, checking diffs, or analyzing code quality. |
| context | fork |
| agent | selvage-reviewer |
| allowed-tools | ["Read","Glob","Grep"] |
| argument-hint | (e.g., 'staged', 'branch main', 'commit abc1234') |
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.