Four frontend skills are on sale now. Pay once, download straight away with your licence key.

See the catalogue
AI Skill Up
Browse skills

When CLAUDE.md gets too long, and what to move out of it

CLAUDE.md is read at the start of every session, so everything in it costs context every time. What belongs there, and where the rest should live instead.

CLAUDE.md is loaded at the start of every session in the project. That makes it perfect for facts that apply to everything and a poor home for anything that applies to one task in twenty.

Keep in CLAUDE.mdMove out
Build, test and lint commandsStep-by-step procedures for one kind of task
Where the main code livesLong style guides and design systems
The handful of hard rulesReference tables and examples
What not to touchHistory of past decisions

Where the rest goes

Procedures and systems that apply to a kind of task belong in a skill, which loads only when that task comes up. Reference material belongs in docs that CLAUDE.md links to with one line each. The split, with examples, is in skills vs CLAUDE.md vs MCP.

A quick trim

  1. Delete anything the code already makes obvious.
  2. Turn each multi-paragraph procedure into a skill.
  3. Replace long explanations with a pointer to the doc that has them.
  4. Reread what is left: every line should matter to most tasks.

The same thinking applies inside skills, covered in how long SKILL.md should be.

Questions

What should go in CLAUDE.md?

Facts about the project that apply to almost every task: how to build and test, where things live, the few rules everyone must follow. Short and current.

Where should detailed procedures go instead?

Into skills, which load only when the task matches, or into docs that CLAUDE.md points to. That keeps every-session context small.

How do I know CLAUDE.md is too long?

When most of it is irrelevant to most tasks, when it repeats what the code or docs already say, or when rules in it start being ignored.

Or skip the afternoonand drop one in.

Every skill in the catalogue is a folder you drop into your skills directory. Each ships with its design rules, worked examples and a troubleshooting table, and downloads the moment you pay.