AGENT SKILL

接收代码审查

收到代码审查反馈、准备实现建议前使用,尤其是反馈不清楚或技术上可疑时;要求技术严谨和验证,而不是表演式同意或盲目实现

License 许可
Apache-2.0
最近更新
2026-10-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
接收代码审查
aliases
[ "@接收代码审查", "@receive-review" ]
description
收到代码审查反馈、准备实现建议前使用,尤其是反馈不清楚或技术上可疑时;要求技术严谨和验证,而不是表演式同意或盲目实现

03 SKILL.md 正文

接收代码审查

概览

代码审查需要技术评估,不需要情绪表演。

核心原则: 实现前先验证。假设前先询问。技术正确性高于社交舒适感。

响应模式

WHEN receiving code review feedback:

1. READ: Complete feedback without reacting
2. UNDERSTAND: Restate requirement in own words (or ask)
3. VERIFY: Check against codebase reality
4. EVALUATE: Technically sound for THIS codebase?
5. RESPOND: Technical acknowledgment or reasoned pushback
6. IMPLEMENT: One item at a time, test each

禁止的回应

绝不要:

  • "You're absolutely right!"(明确违反 CLAUDE.md)
  • "Great point!" / "Excellent feedback!"(表演式回应)
  • "Let me implement that now"(验证前)

改为:

  • 重述技术要求
  • 提出澄清问题
  • 如果错误,用技术理由反驳
  • 直接开始工作(行动胜过语言)

处理不清楚的反馈

IF any item is unclear:
  STOP - do not implement anything yet
  ASK for clarification on unclear items

WHY: Items may be related. Partial understanding = wrong implementation.

示例:

your human partner: "Fix 1-6"
You understand 1,2,3,6. Unclear on 4,5.

❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."

按来源处理

来自你的协作者

  • 可信:理解后实现
  • 范围不清时仍要询问
  • 不要表演式同意
  • 进入行动或给出技术确认

来自外部审查者

BEFORE implementing:
  1. Check: Technically correct for THIS codebase?
  2. Check: Breaks existing functionality?
  3. Check: Reason for current implementation?
  4. Check: Works on all platforms/versions?
  5. Check: Does reviewer understand full context?

IF suggestion seems wrong:
  Push back with technical reasoning

IF can't easily verify:
  Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"

IF conflicts with your human partner's prior decisions:
  Stop and discuss with your human partner first

你的协作者规则: “外部反馈要保持怀疑,但认真检查。”

“专业化”功能的 YAGNI 检查

IF reviewer suggests "implementing properly":
  grep codebase for actual usage

  IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
  IF used: Then implement properly

你的协作者规则: “你和审查者都向我汇报。如果我们不需要这个功能,就不要添加。”

实现顺序

FOR multi-item feedback:
  1. Clarify anything unclear FIRST
  2. Then implement in this order:
     - Blocking issues (breaks, security)
     - Simple fixes (typos, imports)
     - Complex fixes (refactoring, logic)
  3. Test each fix individually
  4. Verify no regressions

何时反驳

在以下情况反驳:

  • 建议会破坏现有功能
  • 审查者缺少完整上下文
  • 违反 YAGNI(未使用功能)
  • 对当前技术栈而言技术上不正确
  • 存在历史/兼容性理由
  • 与你的协作者的架构决策冲突

如何反驳:

  • 使用技术理由,而不是防御姿态
  • 提出具体问题
  • 引用可工作的测试/代码
  • 架构问题让你的协作者参与

如果你不方便大声反驳,可以发出信号: "Strange things are afoot at the Circle K"

确认正确反馈

当反馈确实正确时:

✅ "Fixed. [Brief description of what changed]"
✅ "Good catch - [specific issue]. Fixed in [location]."
✅ [Just fix it and show in the code]

❌ "You're absolutely right!"
❌ "Great point!"
❌ "Thanks for catching that!"
❌ "Thanks for [anything]"
❌ ANY gratitude expression

为什么不道谢: 行动会说明一切。直接修复。代码本身表明你听到了反馈。

如果你发现自己要写 “Thanks”: 删掉它。改为说明修复内容。

优雅纠正自己的反驳

如果你反驳了但后来发现自己错了:

✅ "You were right - I checked [X] and it does [Y]. Implementing now."
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."

❌ Long apology
❌ Defending why you pushed back
❌ Over-explaining

事实性说明纠正,然后继续。

常见错误

错误 修复
表演式同意 说明要求或直接行动
盲目实现 先对照代码库验证
批量修改但不测试 一次一项,每项测试
假设审查者正确 检查是否会破坏内容
回避反驳 技术正确性 > 舒适感
部分实现 先澄清所有条目
无法验证却继续 说明限制,请求方向

真实示例

表演式同意(坏):

Reviewer: "Remove legacy code"
❌ "You're absolutely right! Let me remove that..."

技术验证(好):

Reviewer: "Remove legacy code"
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"

YAGNI(好):

Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"

不清楚条目(好):

your human partner: "Fix items 1-6"
You understand 1,2,3,6. Unclear on 4,5.
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."

GitHub 线程回复

在 GitHub 上回复行内审查评论时,要回复到该评论线程(gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies),不要发成顶层 PR 评论。

底线

外部反馈是需要评估的建议,不是必须服从的命令。

验证。质疑。然后实现。

不要表演式同意。始终保持技术严谨。

04 同仓库更多 Skills

lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

mcp-lsp-project-config

配置、安装、检查、修复或迁移项目级 mcp-lsp stdio MCP,覆盖 Codex、Claude Code 和 Google Antigravity,以及 Windows 原生、WSL 原生和 Windows 宿主通过 wsl.exe 桥接 Linux sidecar 的自动选型。用户提到项目 MCP、LSP MCP、.codex/config.toml、.mcp.json、.agents/mcp_config.json、Codex 中 LSP 工具有时直接暴露有时只在延迟工具目录、ALL_TOOLS 过滤为空、工具已显示但调用报 client is closing、EOF、Transport closed,或希望三个客户端共用仓库内 mcp-lsp 时使用。

★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

注释规范

当在 super-agent-v3 中编写或审查 Go 函数级中文注释、React hooks/service/controller 注释,或处理注释守卫失败时使用。

★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

字段守卫

当新增、删除、重命名或跨层传递结构化字段,以及修改 DTO、mapper、schema、API/RPC、事件、配置、store、序列化或前后端契约时自动使用;追踪生产源到全部消费端并建立 fail-fast 字段守卫。

★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

后端

在 super-agent-v3 中编写、审查或重构 Go 后端代码时使用。

★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

前端

当在 super-agent-v3 中开发、审查或修复当前 React/Vite 前端 UI 时使用;前端源码只在 frontend-app。

★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

全量项目地图生成

当在 super-agent-v3 中生成、更新或校验 docs/doc/codemap 项目地图、AI index 或能力清单时使用。

★ 0