Loading...
Loading...
Compare original and translation side by side
--staged--changed--all--fix--staged --changed--staged--changed--all--fix--staged --changed/review-comments # staged + changed (default)
/review-comments --all # entire codebase
/review-comments --fix # review and auto-fix/review-comments # 暂存区+未暂存变更(默认)
/review-comments --all # 整个代码库
/review-comments --fix # 检查并自动修复$ARGUMENTS| Flags Present | Scope |
|---|---|
| (none) | |
| Entire codebase |
| Staged files only |
| Unstaged files only |
| Both |
$ARGUMENTS| 携带参数 | 检查范围 |
|---|---|
| 无 | |
| 整个代码库 |
| 仅暂存区文件 |
| 仅未暂存变更文件 |
| 两者都包含 |
git diff --cached --name-onlygit diff --name-onlyundefinedgit diff --cached --name-onlygit diff --name-onlyundefined
Filter to only source code files (exclude node_modules, build dirs, etc.).
仅保留源代码文件(排除node_modules、构建目录等)。Subagent type: general-purpose
Prompt per batch:
---
Review comments in these files for quality issues:
{file_list}
For each file, identify:
1. "What" comments that should be "why" comments
2. Comments that could be replaced with better function/variable names
3. Obvious/redundant comments
Return findings in this format:Subagent type: general-purpose
Prompt per batch:
---
Review comments in these files for quality issues:
{file_list}
For each file, identify:
1. "What" comments that should be "why" comments
2. Comments that could be replaced with better function/variable names
3. Obvious/redundant comments
Return findings in this format:
4. Collect and merge results from all agents
4. 收集并合并所有Agent的返回结果undefinedundefined| Line | Current Comment | Issue | Suggestion |
|---|---|---|---|
| {n} | "{comment}" | What not Why | {suggestion} |
| 行号 | 当前注释 | 问题类型 | 修改建议 |
|---|---|---|---|
| {n} | "{comment}" | 仅说明是什么而非为什么 | {suggestion} |
undefinedundefined--fixFound {n} low-quality comments. How would you like to proceed?
1. **Remove all** - Delete all flagged comments
2. **Remove and refactor** - Delete comments + extract better function/variable names where suggested
3. **Cherry-pick** - Show me each one and I'll decide
4. **Skip** - Keep the report, don't change anything// increment counter--fix发现{n}条低质量注释,你想要如何处理?
1. **全部删除** - 删除所有标记的问题注释
2. **删除并重构** - 删除注释,同时按照建议优化函数/变量名
3. **逐个选择** - 逐条展示问题,由我决定如何处理
4. **跳过** - 保留检查报告,不做任何修改// increment counterundefinedundefinedundefinedundefinedactive_users = [u for u in users if u.is_active]active_users = [u for u in users if u.is_active]undefinedundefinedundefinedundefinedundefinedundefined--all--all