← Back to Terminology Glossarytools

CLAUDE.md

A specialized context configuration file placed in the repository root to guide Claude Code CLI and Anthropic AI developer tools.

What is CLAUDE.md?

CLAUDE.md is a project configuration file designed specifically for Claude Code CLI (Anthropic's terminal-based AI coding assistant).

When Claude Code is launched in a terminal workspace, it automatically parses CLAUDE.md from the current directory. This provides the agent with exact terminal commands to run builds, execute tests, and enforce self-correction protocols whenever a command fails.

---

Enterprise CLAUDE.md Blueprint

markdown
# CLAUDE.md β€” Agent Operating Context

## Terminal Verification Commands
- Build Project: `npm run build`
- Development Server: `npm run dev`
- Run Test Suite: `npm test`
- Lint Check: `npm run lint`

## Styling & Framework Constraints
- Framework: Next.js App Router with React Server Components.
- CSS: Vanilla CSS Modules with dark mode theme variables.
- Imports: Use absolute alias paths (`@/app/lib/...`).

## Self-Correction Protocol
If `npm run build` fails after editing code:
1. Inspect the full error log silently.
2. Trace the broken contract or import.
3. Apply a fix and re-run `npm run build`.