원클릭으로
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.