变更审查
reviewAnalyze git diffs against spec.json to classify each change unit as in-spec, implicit, or out-of-spec and warn about scope violations; writes changes.json for later test stages.
Instructions
读取 git diff、扫描引用图并对照 spec.json 判定,输出按变更单元的三分类标注(in-spec / implicit / out-of-spec)与越界的事前警告,同时原子写入 changes.json 供 test 阶段读取。未找到 spec.json 时降级为「无基准」分析(全部 implicit、不告警),并在 notices 中说明。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | 比较基线(如 HEAD~1、main),默认 HEAD | |
| scope | No | 审查范围,git pathspec(目录或 glob),缺省为整个工作区 | |
| staged | No | 只审查已暂存改动(git diff --cached) |