CopybookSearch

CLAUDE.md examples to paste into Claude Code

CLAUDE.md is a Markdown file of instructions that Claude Code reads at the start of every session. A project’s file goes at ./CLAUDE.md or ./.claude/CLAUDE.md and into git, so the whole team gets it. Your own rules for every project go in ~/.claude/CLAUDE.md, and notes for one project that only you need go in CLAUDE.local.md, left out of git.

Claude Code reads the file in the folder you start it in and in every folder above it; a subfolder’s file joins once Claude works in that subfolder. Anthropic’s docs ask for under 200 lines a file, and /init writes a first one from your code. If the repo already has an AGENTS.md, Claude Code reads it when there is no CLAUDE.md, and a line @AGENTS.md at the top of a CLAUDE.md pulls it in.

12 tips28K+ saves on X, as of

Rules to start from

Rules Claude Code

6.7K saves

4 Karpathy-inspired coding principles for CLAUDE.md

The agent over-designs and edits what it wasn’t asked to: think before coding, simplicity first, surgical edits, goal-driven work.

Codebase

Rules Claude Code, Codex

Vox’s pick

12K saves

Orwell’s 6 writing rules for CLAUDE.md and AGENTS.md

Banning AI words one by one never ends: 6 rules from 1946 for your global rules file, plus prompts for docs, PRs and reports.

Writing

Rules Claude Code, Codex

325 saves

Bug-fix loop rules for CLAUDE.md or AGENTS.md

Agents that both fix and review can’t stop going back and forth: stop after two failed fixes, review only this round’s changes.

Codebase + Review

Rules Claude Code

697 saves

STATE.md and new-session rules for CLAUDE.md

Using up your Claude Code limit: a STATE.md per task, a summary to switch chats at each approved milestone or 200 thousand tokens.

Models and cost + Long runs

Rules Claude Code, Codex

1.9K saves

One AGENTS.md for Claude Code and Codex

Two agents, one rules file: plan first, smallest change, subagent roles, own the bug, verify before done, Lessons per correction.

Codebase + Long runs

Rules for design work

Rules Claude Code

1.7K saves

8 frontend reference sites for CLAUDE.md

Stuck on style, components, motion, a demo video or polish: 8 sites sorted by that, saved so Claude Code knows which to use.

Design

Rules Claude Code

1.4K saves

DESIGN.md from sites you like

Pages look AI-made since Opus hasn’t seen what you like: 3-5 screenshots become a DESIGN.md; add taste-skill and Impeccable.

Design

Rules Claude Code

310 saves

Pixel art rendering rules for CLAUDE.md

Pixels crisp in your sprites but blurry on screen: textures on Nearest, whole-number scaling, camera and sprites rounded alike.

Design

Write, check and trim your file

Rules Claude Code

490 saves

Claude Code project instructions from your sessions

Background you re-explain every new session: pulled from your last 20 sessions and written up as project instructions.

Codebase + Models and cost

Rules Claude Code, Codex

216 saves

Outdated CLAUDE.md and AGENTS.md review

Agents follow an outdated CLAUDE.md over your code: its old instructions identified, and a rule that puts code first.

Codebase

Rules Claude Code

2.1K saves

Think-carefully cleanup for Opus 5.5

Opus 5.5 already thinks before it answers: rules that push extra thinking, dole out steps or stop to confirm, quoted with a fix.

Models and cost + Codebase

Rules Claude Code

863 saves

Old-rules review for Fable 5.2

Rules hard-coded for older models work against Fable 5.2: delegation, think-less, style-limit and ‘never’ lines quoted with a fix.

Models and cost + Codebase