skills/review-fix-loop/SKILL.md
用干净的独立 subagent 反复做代码审查、由主 agent 判断审查意见价值、修复有效问题并提交推送,直到连续三轮没有有价值审查意见。适用于用户要求 review/fix loop、clean review cycle、创建新 subagent 审查当前修改、反复 review 到没有问题、或“连续三次没有有价值建议”这类任务。
npx skillsauth add dcjanus/prompts review-fix-loopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
把“独立审查 -> 主 agent triage -> 修复验证 -> 提交推送 -> 再审查”的循环做成可控流程。reviewer subagent 只负责找问题;主 agent 保留最终判断权,避免把低价值建议或误报自动变成代码改动。
git status --short --branch、git branch --show-current、平台 CLI 或 git merge-base 等低风险命令建立上下文。git-workflow skill;本 skill 只定义循环控制。维护一个 clean_rounds 计数,初始为 0。
每一轮都执行:
fork_context=false,让它看不到当前对话历史。clean_rounds += 1。clean_rounds 重置为 0。clean_rounds >= 3 时停止循环。每轮创建 subagent 前,主 agent 应准备一个低噪音上下文包,减少 reviewer 重复消耗在已验证或已排除的问题上。
允许包含:
禁止包含:
如果 reviewer 发现 context packet 与 final diff 或平台状态冲突,应以可验证证据指出冲突;context packet 不是免审清单。
按任务实际替换仓库路径、目标分支和重点风险:
You are reviewing changes in repository <repo-path>. Do not edit files.
Do an independent code review of the current checked-out branch against <base-branch-or-PR-target>, focusing only on actionable bugs, behavioral regressions, compatibility problems, missing high-value tests, or CI/workflow risks introduced by this branch.
Please inspect the final net diff yourself with git/platform CLI rather than relying on prior conversation.
Known verified facts and prior non-issues:
- <fact 1 with evidence, or "None">
- <fact 2 with evidence>
If any known fact conflicts with the final diff or live platform state, call that out as a finding with evidence.
Pay special attention to:
- <risk area 1>
- <risk area 2>
- <risk area 3>
Output format:
- Start with Findings.
- If you find an issue, include file/line references and why it matters.
- If you find no actionable issues, say exactly that and list only concise residual risks.
- Do not make changes, commits, or pushes.
把 finding 当成“待验证假设”,不是命令。
有价值 finding 通常满足至少一项:
通常不要把这些当成有价值 finding:
如果 finding 有价值:
git diff --check、git status --short 和 staged diff。过程中简短汇报每轮结果:
clean_rounds 归 0。tools
使用 Python CLI 与 Google Sheets API 交互以读取、更新、批量写入、追加或清空 Google Sheets 在线表格;适用于需要通过 OAuth 授权操作 Google Workspace 表格的场景。
development
为当前 Codex thread 设置名称;仅当用户手动调用或明确要求命名、重命名、整理当前 Codex 会话标题时使用,永远不要自动调用。
testing
编写或更新 GitHub/GitLab Issue、PR、MR 的标题与正文;适用于创建、修改、重写 reviewer-facing 描述、Risks、Breaking Change、避免低价值验证噪声与本地路径泄露等场景。PR/MR 正文默认禁止 Validation;只有 CI/diff 看不到的高信噪比行为证据才允许写。
testing
用于向 GitHub 上游提交 PR 前,在用户 fork 内创建草稿 PR/内部 PR 做低干扰收敛,并保留必要的上游 issue/PR/discussion 背景链接;当用户提到草稿 PR、内部 PR、fork draft、先内部 review/CI、或 red/green 证据时使用。