Writing a good CLAUDE.md

Web ArticleKyle1,862 words
View original

Content Summary

Writing a good CLAUDE.mdKyle

10 concepts10 actions20 keywords

TL;DR

CLAUDE.md is the highest-leverage configuration point in coding agent harnesses because it's injected into every session, yet Claude is explicitly instructed to ignore it if deemed irrelevant. The author argues for a minimalist, carefully crafted CLAUDE.md that focuses on universal onboarding information (WHY, WHAT, HOW) while using progressive disclosure to keep task-specific instructions in separate files, and warns against using it for code style guidelines or auto-generating it.

ELI5

Imagine you have a helper robot that loses its memory every time it goes to sleep. Every morning, you give it one special note card to remind it about your house. If you write too much on the card, the robot gets confused and ignores everything! So you should write just the most important stuff — like where the kitchen is and what the family rules are — and tell the robot where to find more details only if it needs them.

Top Concepts

Keywords

Quick Actions

  • !Structure your CLAUDE.md around three pillars: WHAT (tech stack, project structure), WHY (project purpose), and HOW (build, test, verification commands)
  • !Keep CLAUDE.md under 300 lines, ideally under 60 lines, containing only universally applicable instructions
  • !Implement Progressive Disclosure by moving task-specific docs to an agent_docs/ directory and listing them with descriptions in CLAUDE.md
1m 9s16,334 tokens
Claude Opus 4.5prompts v1.2v1.0?

Want to analyze your own content?

Extract insights from YouTube videos, PDFs, and web articles. Free to start.

Try Knowmler Free