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
- He benchmarks new models by having them build their own copilot — $28 of compute — bucolucas · 2026-10-27
- Founder generates 46 app promo videos in 4 days with Claude, skipping $11,500 in UGC fees — PrajwalTomar_ · 2026-10-27
- Should agents be allowed to change plans mid-task? Reddit debates the drift boundary — wistfulcracker84 · 2026-10-27
- HeyGen + Canva MCP turns slide speaker notes into an avatar presentation video — HeyGen · 2026-10-27
- Local beats cloud: Qwen 3.8 FN handles private student data as well as frontier models — dr_lm · 2026-10-27
- Cloudflare Computer adds agent interruption recovery and approval pauses in v0.7.0 — irvinebroque · 2026-10-27