# CLAUDE.md for content teams: what to put in the file when your repo holds your brand voice

> CLAUDE.md turns your voice guide into something an agent obeys. Where the file lives, why to keep it under 200 lines, and how to split the rules by folder.

Source: https://contengi.com/blog/claude-md
Author: Stefan Maritz
Published: 2026-12-03

Every Claude Code session starts cold. A CLAUDE.md is how your brand voice, audience, and publishing rules survive from one session to the next.

Every Claude Code session starts cold. It knows nothing about your audience, your positioning, or the banned words list you spent a week agreeing. A CLAUDE.md file sits in your project, [loads into context before you type anything](https://code.claude.com/docs/en/memory), and carries that knowledge from one session to the next.

## TL;DR

-   CLAUDE.md is a plain markdown file Claude Code reads at the start of every session, which turns your tone of voice guide into something an agent obeys rather than a PDF nobody opens.
-   Keep each file under 200 lines, because longer files eat context and loosen how closely Claude follows any single line in them.
-   Split the rules by folder, with one file at the repo root for what is always true, and one inside /blog, /newsletter, and /social for the rules that only apply there.
-   Claude weighs the file as context, so a "never use em dashes" line is a strong suggestion, and a deterministic check downstream is the thing that enforces it.
-   Three commands do the unglamorous work: /init drafts the file, /context all proves it loaded, and /doctor prompt-audit finds the lines arguing with each other.

## What the file is doing in a content repo

Engineers fill a CLAUDE.md with build commands and architecture notes. A content operation fills it with the things you would otherwise retype every morning: who you sell to, how you sound, which words are forbidden, and where a draft goes before anyone publishes it.

We run our own blog this way. The useful discovery was how much to take back out.

## Where the file lives decides who gets the rules

A CLAUDE.md can sit in four places, and they load from broadest scope to most specific, so the file closest to where you launched Claude is read last.

A managed policy file, installed by whoever runs your laptops, carries rules nobody on the team can switch off. Your own ~/.claude/CLAUDE.md carries your personal habits into every project you touch. The project file, ./CLAUDE.md or ./.claude/CLAUDE.md, [goes into version control](https://contengi.com/blog/github-for-marketing-teams) and is the one your team shares. And CLAUDE.local.md stays on your machine, gitignored, for the things that are yours alone.

That last one earns its keep faster than you would expect. Freelancers and agency writers working in your repo pick up the shared brand rules from the project file, while their own shortcuts and sandbox URLs stay out of everyone else's context.

## Under 200 lines, and what we cut to get there

Target under 200 lines per file. Past that, the file consumes more context and Claude follows it less closely, which is a miserable trade: you write more rules and get less compliance.

Writing the rules down is the easy part. Deciding what does not belong is where the work is. We cut brand philosophy, mission statements, and every line that described a mood. "Write with confidence" changed nothing. ["Never open a paragraph with a subordinate clause, get to the point in the first six words"](https://contengi.com/blog/how-to-set-up-a-brand-knowledge-base-for-ai) changed every draft.

The test we use now: if a line would not change the output of the next piece, it comes out.

## Split by folder, because a newsletter rule has no business in a blog brief

Here is the mechanic that saved us the most context, and it took us embarrassingly long to find.

Claude Code loads subdirectory CLAUDE.md files on demand, once Claude reads, writes, or edits a file in that folder. So your repo root holds the 40 lines that are true everywhere, /blog holds the long-form structure rules, /newsletter holds the subject-line conventions, and /social holds the character limits. Nothing loads until [the agent works in that folder](https://contengi.com/blog/agentic-content-workflows).

You get a smaller context window on every task and sharper adherence, because the agent writing a LinkedIn post is no longer carrying 60 lines about internal linking and FAQ schema.

## Imports, and the four hops

A CLAUDE.md can pull in other files with @path/to/file syntax, up to a depth of four hops, and relative paths resolve from the file doing the importing rather than your working directory.

One caveat, because it trips people up. Imports keep a long file readable, and they cost you the same context either way: an imported file loads alongside the file that referenced it, so splitting 600 lines across six imports still costs 600 lines. Folder scoping is the thing that reduces the bill.

## The part that changes how you use it

Claude treats a CLAUDE.md as context. It reads the file, weighs it, and usually complies. "Usually" is doing real work in that sentence.

This is why a voice rule holds for 20 drafts and then slips on the 21st, and why a team that writes "no em dashes" in the file and ships unread output will eventually ship an em dash. To block something regardless of what the model decides, you need a PreToolUse hook, or a lint step that reads the file after it is written and [fails on the string](https://contengi.com/blog/ai-writing-tool-that-doesn-t-sound-like-ai).

We run both. The instruction tells the agent what good looks like, the check catches the one in 20. There's two different jobs there and only one of them belongs in a markdown file.

## Three commands worth knowing

/init reads your project and drafts a starting CLAUDE.md. Run it, then spend half an hour deleting, because it writes what it can infer from your folders and your voice rules are not sitting in a folder.

/context all lists the memory files loaded in the session. Use it the first time you add a file, and every time you are convinced Claude is ignoring you.

/doctor prompt-audit reads your instruction files and reports outdated lines, references to things that no longer exist, and rules contradicting each other. It proposes edits and changes nothing until you ask. On a file three people have edited over six months, it is the most useful 30 seconds in the whole workflow.

## What we would put in a content CLAUDE.md today

Root file, kept short: what the company sells in two sentences, the one or two audiences you write for, five voice rules written as behaviours, a banned words list, your spelling convention, and the rule that nothing goes live without a human.

Per-folder files: structure conventions for that format, length targets, linking rules, and the one thing that format always gets wrong.

Everything else goes somewhere better. Multi-step procedures belong in a skill, format-specific rules belong in path-scoped rules under .claude/rules/, and anything a human needs to read but the agent does not belongs in an HTML comment, which is stripped before the content reaches Claude's context and costs you nothing.

If your repo already carries an AGENTS.md from another tool, Claude Code can read that instead, so you are not maintaining two copies of the same brand voice.

## Where to start

A CLAUDE.md is the cheapest [piece of content infrastructure](https://contengi.com/blog/what-is-content-engineering) you will build this year. It is also the one that gets overfilled, because writing rules feels productive and deleting them does not.

Start at 40 lines in the root. Add a folder file the first time you correct the same format twice. Run the audit monthly. And keep a deterministic check downstream of all of it, because the file is advice and the check is a rule.

## Frequently asked questions

### Does Claude Code read AGENTS.md instead of CLAUDE.md?

It can. If your repo already carries an AGENTS.md from another coding tool, Claude Code reads that in place of a CLAUDE.md, so a team sharing one repo across several agents maintains a single file rather than two copies of the same brand voice.

### Where should a CLAUDE.md live?

The project file goes at ./CLAUDE.md or ./.claude/CLAUDE.md and is shared through version control, which makes it the right home for brand rules the whole team needs. Personal preferences go in ~/.claude/CLAUDE.md, and anything you want kept off the repo goes in a gitignored CLAUDE.local.md.

### How long should a CLAUDE.md be?

Target under 200 lines. Past that the file consumes more context and Claude follows any individual line less closely, so a 40-line root file plus small per-folder files beats one long document.

### Why is Claude ignoring my CLAUDE.md?

Run /context all first to confirm the file loaded at all, since a file in a subdirectory only loads once Claude touches something in that folder. If it loaded and the rule still slips, remember Claude weighs the file as context, so a hook or a lint step is what turns a rule into something enforced.

### Do I need to write code to use a CLAUDE.md?

No. The file is plain markdown, the same headings and bullets you would use in any brief, and /init will draft a first version from your project for you to cut down.
