How to Write a CLAUDE.md: The File with 187k GitHub Stars
PawelHuryn · x · 2026-07-04
A deep dive into CLAUDE.md best practices. The author points out that since CLAUDE.md is loaded every turn, each line acts as a 'rent' paid per request. Therefore, it should focus on project-specific, hard-learned rules (like user-initiated version upgrades or three testing categories) rather than repeating default model behaviors. He emphasizes that matching existing code styles is already a default behavior for Claude Code, hardcoded into the Opus 4.8 system prompt.
More from coding & agent
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11