Claude Code 实用提醒,建议加入到 CLAUDE. md 中

1. 在编写任何代码前,先描述你的方法并等待批准

2. 如果我给出的需求模糊,请在编写代码前提出澄清问题

3. 完成任何代码编写后,列出边缘案例并建议覆盖它们的测试用例

4. 如果任务需要修改超过 3 个文件,先停止并将其拆分成更小的任务

5. 出现 bug 时,先编写能重现该 bug 的测试,再修复直到测试通过

6. 每次我纠正你时,反思你做错了什么,并制定永不再犯的计划

Claude Code 实用提醒,建议加入到 CLAUDE. md 中

 

Claude Code tips: (Add these to your CLAUDE .md file) 1. Before writing any code, describe your approach and wait for approval. 2. If the requirements I give you are ambiguous, ask clarifying questions before writing any code. 3. After you finish writing any code, list the edge cases and suggest test cases to cover them. 4. If a task requires changes to more than 3 files, stop and break it into smaller tasks first. 5. When there’s a bug, start by writing a test that reproduces it, then fix it until the test passes. 6. Every time I correct you, reflect on what you did wrong and come up with a plan to never make the same mistake again.

 

免责声明:本文基于公开互联网信息整理与原创加工,相关内容版权归原作者所有。部分素材及内容由AI大模型辅助生成,并经过人工审核与校对,但不排除存在偏差或遗漏。鉴于技术与市场变化较快,文中涉及的工具、参数及观点仅供参考,不构成任何投资或决策建议。
Claude 5 震撼曝光:Anthropic 祭出“代号 Fennec”,编程模型格局将变
上一篇 2026年 2月 8日 00:13
一个人,等于一支团队
下一篇 2026年 3月 3日 17:29

发表回复

登录后才能评论