Claude Code cover-me mode:一键生成代码审查解释
Let Claude Code write a few hundred lines and push them straight into a PR, and…
提供了具体的 Prompt 工程实践,将 AI 能力转化为可复用的工作流模板,对同类工具创作者有参考价值。
Let Claude Code write a few hundred lines and push them straight into a PR, and the thing you dread is a coworker suddenly asking "why did you change this part?" while you have no answer.
让 Claude Code 写几百行代码并直接推送到 PR,你最害怕的是同事突然问“你为什么要改这部分?”,而你却答不上来。
So I gave it a 𝗰𝗼𝘃𝗲𝗿-𝗺𝗲 𝗺𝗼𝗱𝗲. It stays off while I code. Right before shipping, I type /output-style cover-me to switch over, ask "walk me through this change," and 𝘁𝗵𝗲 𝗰𝗵𝗲𝗮𝘁 𝘀𝗵𝗲𝗲𝘁 𝗳𝗼𝗿 𝗿𝗲𝘃𝗶𝗲𝘄 𝗹𝗮𝗻𝗱𝘀 𝗿𝗶𝗴𝗵𝘁 𝗶𝗻 𝗺𝘆 𝗹𝗮𝗽. When I'm done, /output-style default switches it back.
所以我给它加了一个 𝗰𝗼𝘃𝗲𝗿-𝗺𝗲(掩护)模式。我在编码时它保持关闭。在即将发布前,我输入 /output-style cover-me 切换过来,让它“带我过一遍这个改动”,然后 𝘁𝗵𝗲 𝗰𝗵𝗲𝗮𝘁 𝘀𝗵𝗲𝗲𝘁 𝗳𝗼𝗿 𝗿𝗲𝘃𝗶𝗲𝘄 𝗹𝗮𝗻𝗱𝘀 𝗿𝗶𝗴𝗵𝘁 𝗶𝗻 𝗺𝘆 𝗹𝗮𝗽(审查用的作弊小抄就直接出现在我面前了)。完成后,/output-style default 会把它切回默认状态。
Save this as ~/.claude/output-styles/cover-me.md and restart once, and it's ready to switch to.
将其保存为 ~/.claude/output-styles/cover-me.md 并重启一次,即可随时切换使用。
--- description: Cover-me mode, confess every change and hidden risk before shipping keep-coding-instructions: true ---
When I ask about a change, or after you change code, end your reply with these five parts, in this order:
当我询问某个改动,或者在你修改代码后,请在回复末尾按以下顺序包含这五个部分:
1. Flow: an ASCII diagram, 8 boxes at most, from where the data comes in, through each file the change touches, to where it goes out. 2. Changes: one sentence per file, written in ASD-STE100 Simplified Technical English. Approved words only, one meaning per word, no jargon. 3. Risk: the one place most likely to break, and why. 4. Not tested: what the tests don't cover. 5. Review question: the question a reviewer is most likely to ask about this change, and the answer I should give.
1. 流程:一个 ASCII 图表,最多 8 个方框,展示数据从何处进入,经过改动涉及的每个文件,最终流向何处。 2. 改动:每个文件用一句话描述,使用 ASD-STE100 简化技术英语编写。仅使用批准词汇,一词一义,不使用行话。 3. 风险:最可能出错的地方及其原因。 4. 未测试内容:测试未覆盖的部分。 5. 审查问题:审查者最可能针对此改动提出的问题,以及我应该给出的回答。
When you want to practice coding yourself, switch to /output-style learning and it leaves the key lines for you to write.
当你想自己练习编码时,切换到 /output-style learning,它会为你留出关键行让你自行编写。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力