Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    How to Write a CLAUDE.md File for Claude Code

    Updated November 2026

    Written by the Toolpuffin team. Tools in this guide are tested in the browser.

    Claude Code can read a file called CLAUDE.md to learn about your project: its commands, its code style and your rules. This guide explains what to put in the file and what to leave out, and links to a free generator that builds a starting file from a form.

    Try the tool: CLAUDE.md Generator

    What CLAUDE.md is

    It is a Markdown file with project instructions. According to the Claude Code documentation, project memory can be stored in either ./CLAUDE.md or ./.claude/CLAUDE.md. The file is context for Claude, not enforced configuration.

    Source: Claude Code documentation: How Claude remembers your project

    Make a starting file

    1. Open the CLAUDE.md Generator.
    2. Fill in your project name, stack and commands.
    3. Add your code style and the things Claude must not do.
    4. Copy the file and save it as CLAUDE.md in the root folder of your project.

    What to put in it

    • The commands to install, run, test, build and lint the project.
    • Code style rules that are not obvious from the code.
    • A short map of the main folders.
    • Things that must not be done, such as editing generated files.

    What to leave out

    Claude's own guide on CLAUDE.md lists what is usually not worth including: full API documentation, changelogs or history, anything that is already obvious from the file tree, and rules the team does not actually follow. A short, accurate file is better than a long one.

    Source: Claude Help Center: Give Claude context with CLAUDE.md

    More guides