>_

5 Real CLAUDE.md Files You Can Copy Today (With Templates)

Robin||5 min
Last updated: February 17, 2026
claude-codeCLAUDE.mdsetuptemplatestutorial
5 Real CLAUDE.md Files You Can Copy Today (With Templates)
Listen to this article (5 min)

My first CLAUDE.md was 200 lines of garbage. Generic instructions like "write clean code" and "follow best practices." Claude ignored most of it. The breaking point came when I spent 30 minutes explaining the same project structure for the third time in one session. I realized the official docs show a minimal example, but nobody explains what belongs in a real project.

I deleted everything and started over. This time, I looked at what I actually kept explaining to Claude. Project structure. Where files live. What commands exist. Which tools to use when. Within a week, I had 5 different CLAUDE.md templates - one for each project type I work on. Now I spin up new projects in minutes instead of hours.

New to Claude Code? Start with the complete setup guide - it covers CLAUDE.md basics, memory systems, and agent orchestration.

The Blank Page Problem

The official Claude Code docs show a 10-line CLAUDE.md example. It's technically correct but useless for real projects. Most people fill the gap with generic programming advice that Claude already knows. The result? You explain the same context every session, Claude guesses wrong about file locations, and you waste time correcting assumptions.

The real question isn't "what CAN go in CLAUDE.md?" It's "what context would I repeat every single session if I didn't write it down?" That's your CLAUDE.md content.

Five Template Categories

After building 12 production systems, I identified 5 distinct CLAUDE.md patterns. Each solves a different context problem.

1. Minimal (Solo Projects)

Best for: Single developer, one codebase, no external tools.

code
# Project Overview
SaaS dashboard - Next.js 15 + Supabase

## Stack
- Frontend: Next.js 15, Tailwind, shadcn/ui
- Backend: Supabase (PostgreSQL + Auth)
- Deploy: Vercel

## Key Files
- Database schema: /supabase/schema.sql
- Auth config: /lib/auth.ts

That's it. 15 lines. Claude knows the stack, where files live, and what database you use. No fluff.

2. Agent-Heavy (Multi-Agent Systems)

Best for: Projects using Claude Code's delegation features extensively.

code
# Delegation Rules
Score >= 3 → Auto-delegate (no confirmation)
Exploration/Search → ALWAYS use Explore agent

## Agent Types
- Explore: haiku, codebase questions
- debugger: sonnet, systematic debugging
- researcher: sonnet, web research with citations

This is where agent delegation rules live. My system runs 81 agents - without explicit delegation config, Claude would ask permission every time.

3. MCP-Powered (External Tool Integration)

Best for: Projects using Model Context Protocol servers for databases, APIs, or browsers.

code
# Available MCP Tools
- Notion: mcp__notion__API-post-search (search pages)
- Browser: mcp__claude-in-chrome__read_page (scrape content)
- Filesystem: mcp__filesystem__list_directory (read directories)

## Tool Usage Rules
- Database queries → Use Notion MCP, NOT web search
- Page scraping → Use Browser MCP with explicit URL

Without this, Claude might web-search for database content instead of querying directly. Or try to scrape pages with curl instead of using the browser MCP.

4. Monorepo (Multi-Package Workspace)

Best for: Monorepos with shared packages, distinct apps, or complex folder structures.

code
# Workspace Structure
apps/
  web/ - Next.js frontend
  api/ - Express backend
packages/
  ui/ - Shared React components
  utils/ - Shared TypeScript utilities

## Cross-Package Rules
- Imports: Use workspace:* protocol
- Types: Export from packages/types
- Shared components: Import from @repo/ui

This prevents Claude from creating duplicate utilities or importing from the wrong package. Monorepos break without explicit structure documentation.

5. Scenario-Based (Multi-Project Orchestration)

Best for: Systems where one Claude Code instance orchestrates multiple projects.

code
# Project Context
This is the landing page for Product X
Main system: /Users/me/system/
Memory: /Users/me/system/_memory/projects/product-x.json

## Available Commands
/launch - Phase dashboard + metrics
/blog-post - Write SEO-optimized post
/status - Current phase + next action

My Evolving system uses this. One CLAUDE.md orchestrates 6 projects, 113 commands, and 12 scenarios. Each project's CLAUDE.md points back to the central memory system for coordination.

choose-your-template
Identify Project Type
v
Pick Template Category
v
Customize Sections
v
Add Project-Specific Rules

Generic vs. Project-Specific

Here's what changed when I switched from generic instructions to project-specific config:

Generic CLAUDE.md
  • -Write clean, maintainable code
  • -Follow TypeScript best practices
  • -Use functional programming when possible
  • -Add tests for new features
Project-Specific CLAUDE.md
  • +Database schema: /prisma/schema.prisma
  • +Auth via Clerk - config in /lib/clerk.ts
  • +API routes use tRPC - /server/api/routers/
  • +Tests: Vitest + React Testing Library

The generic version tells Claude things it already knows. The project-specific version tells Claude things it can't guess - where your files live, what auth system you use, how API routes work in your specific setup.

claude-md-anatomy

Real-World Results

After switching to template-based CLAUDE.md files:

  • Context setup time: 30 minutes → 2 minutes (15x faster)
  • Wrong file location guesses: ~40% of sessions → ~5%
  • Commands available: 0 → 104 (across all projects)
  • Agents configured: 0 → 86 (domain-specific delegation)
  • Projects orchestrated: 1 → 6 (from one Claude instance)

The biggest gain wasn't speed. It was consistency. Claude makes the same correct assumptions every session. I don't re-explain project structure. I don't correct file paths. I start working immediately.

What About Advanced Patterns?

These 5 templates cover 90% of projects. But there's a deeper layer - score-based delegation, trait systems, memory bootup rituals, scenario orchestration, MCP tool chaining. My production CLAUDE.md files include sections for:

  • Auto-delegation scoring (when to hand off to sub-agents)
  • Memory loading priorities (which context to load first)
  • Session resume protocols (how to continue after /clear)
  • Cross-project syncing (when one project affects another)
  • Security tier checks (what requires confirmation)
  • Planning frameworks (how to catch gaps before execution)

Those patterns are too complex for a blog post. The course includes 12 production-ready templates with full delegation config, memory integration, and orchestration rules. These simplified versions get you 80% of the benefit with 20% of the complexity.

Want to see how the pieces fit together? The templates, the memory system, the delegation rules, the orchestration layer - it's all in the course. Not as theory. As working code you can copy.

FAQ

Can I use multiple templates in one CLAUDE.md?+
Yes. Most real projects combine 2-3 templates. A monorepo with MCP tools would use Template 3 + 4. A scenario-based system with heavy delegation would use Template 2 + 5. Start with the closest single template, then add sections from others as needed.
How long should my CLAUDE.md be?+
Minimal projects: 15-30 lines. Complex projects: 50-100 lines. Orchestration systems: 100-200 lines. If you're over 200 lines, you're probably including generic instructions Claude already knows. Focus on project-specific context only.
What's the difference between CLAUDE.md and .cursorrules?+
CLAUDE.md is for Claude Code (the CLI). .cursorrules is for Cursor (the editor). They solve similar problems but for different tools. Some people maintain both. I only use Claude Code, so I only maintain CLAUDE.md.
Do I need to update CLAUDE.md often?+
Only when project structure changes. New folder? Update the structure section. New MCP tool? Add it to the tools list. New command? Document it. But day-to-day coding doesn't require CLAUDE.md updates. Think of it as project documentation, not session notes.

>_ Get the free Claude Code guide

>_ No spam. Unsubscribe anytime.

>_ Related