# CLAUDE.md Templates ## Key Principles - **Concise**: Dense, human-readable content; one line per concept when possible - **Actionable**: Commands should be copy-paste ready - **Project-specific**: Document patterns unique to this project, not generic advice - **Current**: All info should reflect actual codebase state --- ## Recommended Sections Use only the sections relevant to the project. Not all sections are needed. ### Commands Document the essential commands for working with the project. ```markdown ## Commands | Command | Description | |---------|-------------| | `` | Install dependencies | | `` | Start development server | | `` | Production build | | `` | Run tests | | `` | Lint/format code | ``` ### Architecture Describe the project structure so Claude understands where things live. ```markdown ## Architecture ``` / / # / # / # ``` ``` ### Key Files List important files that Claude should know about. ```markdown ## Key Files - `` - - `` - ``` ### Code Style Document project-specific coding conventions. ```markdown ## Code Style - - - ``` ### Environment Document required environment variables and setup. ```markdown ## Environment Required: - `` - - `` - Setup: - ``` ### Testing Document testing approach and commands. ```markdown ## Testing - `` - - ``` ### Gotchas Document non-obvious patterns, quirks, and warnings. ```markdown ## Gotchas - - - ``` ### Workflow Document development workflow patterns. ```markdown ## Workflow - - ``` --- ## Template: Project Root (Minimal) ```markdown # ## Commands | Command | Description | |---------|-------------| | `` | | ## Architecture ``` ``` ## Gotchas - ``` --- ## Template: Project Root (Comprehensive) ```markdown # ## Commands | Command | Description | |---------|-------------| | `` | | ## Architecture ``` ``` ## Key Files - `` - ## Code Style - ## Environment - `` - ## Testing - `` - ## Gotchas - ``` --- ## Template: Package/Module For packages within a monorepo or distinct modules. ```markdown # ## Usage ``` ``` ## Key Exports - `` - ## Dependencies - `` - ## Notes - ``` --- ## Template: Monorepo Root ```markdown # ## Packages | Package | Description | Path | |---------|-------------|------| | `` | | `` | ## Commands | Command | Description | |---------|-------------| | `` | | ## Cross-Package Patterns - - ``` --- ## Update Principles When updating any CLAUDE.md: 1. **Be specific**: Use actual file paths, real commands from this project 2. **Be current**: Verify info against the actual codebase 3. **Be brief**: One line per concept when possible 4. **Be useful**: Would this help a new Claude session understand the project?