5 条

Prompts

No.01

Say who owns the code

告诉模型代码是它自己的,它才会顺手整理结构。官方测试里,加上这句后合并重复代码的比例从不到 10% 升到约 75%。

You are the owner and long-term maintainer of this codebase, and its design is up to you.

这个代码库是你的:它的用途和构建方式由你决定,而且你会继续在上面开发。

输出 token 会多 70–80%,还会做没被要求的改动。代码归你、只想少改时不要加。

— AnthropicPrompting Claude Fable 5.2官方文档