我在每个新项目中使用的 CLAUDE.md(以及在停止工作后我删除的内容)

📄 中文摘要

在使用 Claude Code 启动新项目时,作者会添加一个 CLAUDE.md 文件。经过多个项目的实践,作者总结出了一些核心规则,这些规则在项目中始终有效,而一些规则则在短期内被忽视。核心规则包括:保持最小的代码足迹,只修改与当前任务直接相关的文件;在执行 shell 命令或进行编辑时,不要请求确认;在不确定文件位置或命名时,需先询问;在进行重大更改后,运行现有测试并报告结果;如果测试失败,则不标记工作为完成。这些规则旨在提高项目的效率和可靠性。

📄 English Summary

The CLAUDE.md I use for every new project (and what I took out after it stopped working)

When starting a new project with Claude Code, the author adds a CLAUDE.md file. Through experience with multiple projects, the author identifies core rules that consistently work and those that are often ignored. The core rules include maintaining a minimal code footprint by only modifying files directly related to the task; not asking for confirmation before executing shell commands or making edits; inquiring about file locations or names when uncertain; running existing tests and reporting results after significant changes; and not marking work as complete if tests fail. These rules aim to enhance project efficiency and reliability.

Powered by Cloudflare Workers + Payload CMS + Claude 3.5

数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等