A 600-line root instruction file asks every task to carry the details of every service. A billing change sees frontend deployment notes; a UI fix sees database migration rules. The cost is not just context: a stale command or a conflicting local convention can send the agent to the wrong place.
Treat the root file as a map and put detailed instructions with the work they govern. This is a maintenance choice, not a promise that shorter files will always produce better answers.
Split by decision and owner
For a fictional monorepo, the root CLAUDE.md might name
the package layout, the common build entry point, and rules that apply
everywhere. A billing-specific file can describe how to run billing
tests and which module owns payment state. A frontend-specific file can
point to the shared accessibility checks and component examples.
CLAUDE.md # repository map and shared rules
services/billing/CLAUDE.md # billing commands and boundaries
apps/web/CLAUDE.md # web-specific guidance
Claude Code's memory documentation says CLAUDE.md files
in the working directory and above it load at launch. A file in a
subdirectory loads when Claude reads, writes or edits another file
there, so a session started at the root does not begin with the billing
rules. /context all lists what loaded at launch under
Memory files, but a subdirectory file loaded on demand does not appear
there; Claude Code prints a Loaded line with its path in
the terminal when it arrives. A file sitting in the tree is not evidence
that it was read. If you see no sign of the relevant file, point the
agent to it explicitly.
Make the split testable
Choose two representative tasks: one billing change and one web change. In a test branch, ask the agent to identify the applicable instructions, the owning module, and the exact checks before making edits. Inspect its answer against the real files, then run the commands or inspect their output. A useful instruction names a command that exists, a specific boundary, or a file that demonstrates the desired pattern.
Now make a harmless path change in a branch and see whether the affected guidance becomes wrong. Keep the person who owns the service responsible for updating its instructions in the same change as a move or renamed command. A periodic link or command check can catch drift, but it cannot decide whether the architectural guidance is still sound.
Avoid copying the same detailed rule into every service. Repeated copies can disagree after one edit. Keep a shared decision in one maintained place and link to it; retain local exceptions where the relevant maintainers can review them. When a task spans services, explicitly provide the instructions for both sides and inspect the resulting changes.
Where AI Lint fits
AI Lint provides a checklist, doctrine and rejected patterns as Markdown files, plus wiring prompts for coding agents. A paid pack permits internal customization, so a team can add a service-specific decision alongside the supplied doctrine. The files do not synchronize themselves across repositories or force a model to obey; loading and human review remain the team's responsibility.
The free edition is for individuals' personal and evaluation use, not company or commercial use. A Personal pack covers one user, including company work: App Pack $49, Bundle $79. The Company App Pack ($299) and Company Bundle ($499) each cover unlimited internal users in one legal entity. All are one-time purchases.