Writing a Good Claude.md
11 days ago
- #CLAUDE.md
- #LLM
- #Codebase Management
- LLMs are stateless functions and coding agents require explicit memory management.
- CLAUDE.md is essential for onboarding Claude to your codebase, covering WHAT, WHY, and HOW.
- Claude may ignore CLAUDE.md if it deems the content irrelevant to the current task.
- Effective CLAUDE.md files should be concise, with fewer universally applicable instructions.
- Progressive Disclosure is recommended to keep context relevant and avoid bloating the context window.
- Avoid using LLMs as linters; use deterministic tools for code style and formatting.
- Auto-generating CLAUDE.md is discouraged; manual crafting is preferred for optimal results.