Glossary / Working with AI

CLAUDE.md

CLAUDE.md is a plain text file in a project that Claude Code reads at the start of every session. It explains how the project works, which commands check the work and what the assistant must never do.

Also called: CLAUDE.md file, Claude Code instructions, AGENTS.md

Why it matters

Without written rules, an AI assistant guesses. It might hard-code text that should come from your CMS, rename a page address that ranks in Google or add a package you didn't want. A short CLAUDE.md answers those questions before they come up, so every session starts with the same understanding of your site.

How MN Studio handles it

Every site we hand over includes a CLAUDE.md written for that site: how it fits together, where content lives, the commands that check a change and the rules that protect it. We keep it short and specific, and back the important rules with permission settings and hooks, because CLAUDE.md guides Claude but doesn't enforce anything. Read how to set up CLAUDE.md for a website project.

Example

Our own site's CLAUDE.md tells Claude that all wording comes from Sanity, that page addresses must never change and that every change ends with a build that checks every internal link.

Common mistakes

  • Writing a long manual instead of site-specific rules.
  • Putting rules in CLAUDE.md with nothing in the settings to enforce them.
  • Forgetting to update it when the site changes.
  • Adding keys or passwords to a file that is committed to Git.

Want to talk it through?

Send a few lines about it. Mark replies within 48 hours to set up a free call and a fixed quote.

Book a free call