可复制 · 可改写 · 可复用Copy · adapt · reuse
开发编程提示词。Coding prompts.
围绕理解代码、排查问题、做出改动整理的可复制提示词。
Understand, debug, and improve code. Copy, adapt, and reuse these prompts.
1
当前可用Available
7
工作场景Use cases
覆盖 3 个常用 AI 平台,内容会持续按真实使用反馈更新。Covers 3 common AI platforms and grows with real usage feedback.
Featured prompt
先从这一条开始Start here
可执行的代码审查
从正确性、安全性、维护成本和用户影响出发,给出带位置和优先级的代码审查意见。
Review code for correctness, security, maintenance cost, and user impact with prioritized, located findings.
适合合并代码前复查、上线前检查和让 AI 帮你读懂陌生项目。Useful before merging code, before launch, or when asking AI to understand an unfamiliar project.
怎么用才更有效How to get better results
先给上下文:告诉模型你是谁、要解决什么问题、最终给谁看。
Start with context: Tell the model who you are, what problem you need to solve, and who will read the result.
再给边界:写清不能编造什么、格式是什么、哪些事实不能改变。
Add boundaries: State what must not be invented, the output format, and which facts cannot change.
最后反复改:第一次输出只是起点,把不好用的地方写回提示词。
Then iterate: The first output is a draft; feed the weak spots back into the prompt.
A small note
提示词不是魔法咒语。Prompts are not magic spells.
它们只是把目标、上下文、边界和输出格式提前说清楚。真正好用的提示词,会随着你的工作内容一起迭代。They make the goal, context, boundaries, and output format explicit. Good prompts improve as your real work changes.
了解小黑丸的整理方式How XHW curates