40 lines of CLAUDE.md beats defaults: direct the agent, don't describe the project

techpotions · reddit · 2026-09-22

A Reddit user shares hard-won lessons on writing CLAUDE.md: most files fail because they describe the project instead of directing the agent. Concrete before/after examples — "We use pnpm" becomes "Package manager is pnpm. Never use npm or yarn"; vague type-safety wishes become explicit pnpm typecheck commands; noting tests need a local Postgres via docker compose up -d saves 60s hangs.

Key takeaways:

The author also released 5 free MIT templates (Next.js, Python, monorepo, API service, lean starter), with a warning not to paste them in unedited.

Original post →

More from coding & agent

coding & agent channel →