Your first CLAUDE.md
Install a CLAUDE.md baseline or read the field note below to see how we apply this pattern in real Claude Code projects.
Without a `CLAUDE.md`, every session starts from zero. The model has to re-derive your conventions, package manager, folder layout, and definition of done on every task. A sixty-line `CLAUDE.md` is the cheapest thing you will ever write that pays compounding returns. Run this command to install a CLAUDE.md baseline and start from a working baseline instead of rebuilding the setup from scratch.
Files this command writes (1 file)
CLAUDE.md← artifact/CLAUDE.md
Edit the stack and command sections to match your project before first use.
Day 2: Your first CLAUDE.md
Without a CLAUDE.md, every session starts from zero. The model has to re-derive your conventions, package manager, folder layout, and definition of done on every task. A sixty-line CLAUDE.md is the cheapest thing you will ever write that pays compounding returns.
What we tried
We wrote a tiny CLAUDE.md with four sections and nothing else:
- Project purpose (two sentences)
- Tech stack and exact commands (
pnpm lint,pnpm test, not "run linting") - Coding conventions (naming, imports, where files live)
- Definition of done (tests green, types green, lint green, manual check for UI)
Then we asked Claude Code to open a known bug, propose a fix, and run the test suite.
What happened
The first draft was not magical, it was consistent. Claude stopped guessing command names, picked the right package manager without prompting, and followed the folder structure the first time. The win was not quality; it was the absence of drift between sessions.
Where CLAUDE.md lives
Personal defaults stay in your home folder. Team conventions live in the repo root. Package-local rules override both. Lower in the tree wins.
What we learned
- Keep the root
CLAUDE.mdshort enough that you are willing to read it every week. If it grows past one screen, something belongs in a sub-folderCLAUDE.md. - Prefer concrete commands over prose.
pnpm test -- --runbeats "run the tests" because the model will copy it verbatim. - Put "do not" rules in plain language. "Do not hand-edit generated files" saves a surprising amount of cleanup work.
- Treat the file as a living contract, not a one-time artifact. The best signal that yours is stale is the first time you catch yourself re-explaining something you already wrote down.
Next
- Day 3. What lives in
~/.claude/and why.
Quick answers
What do I get from this cable?
You get a CLAUDE.md baseline plus a dated field note that explains how we use it in real Claude Code workflows.
How much time should I budget?
Typical effort is 12 min. The cable is marked beginner.
How do I install the artifact?
Run npx frenxt-cables add day-02-claude-md-basics. The install block shows the files it writes and any prerequisites before you run it.
How fresh is the guidance?
The cable is explicitly last verified on 2026-04-15, and includes source links for traceability.
Work with FRE|Nxt
We build the production AI systems we write about.
Cables are the field notes. The playbooks come from client engagements — multi-agent systems, RAG pipelines, and LLM cost cuts that ship and hold up in production. If something here maps to a problem on your roadmap, two ways in:
Audit capacity: 5 slots/month · No pitch deck · NDA on request