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.
The agent over-designs and edits what it wasn’t asked to: think before coding, simplicity first, surgical edits, goal-driven work.
- think before coding: ask when unsure, don't silently pick one interpretation and run with it- simplicity first: minimum code, any overengineering shows at a glance- surgical edits: only touch what's required, don't fix up neighboring code on the way by- goal-driven: translate fuzzy instructions into verifiable targets before starting
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, from Orwell, 1946. These govern prose: docs, PR text, messages. Never touch code or technical terms; swap in everyday words only where precision survives.
1. Never use a metaphor, simile or other figure of speech which you are used to seeing in print.2. Never use a long word where a short one will do.3. If it is possible to cut a word out, always cut it out.
Agents that both fix and review can’t stop going back and forth: stop after two failed fixes, review only this round’s changes.
When fixing bugs, follow these rules:
1. If the same bug survives two fixes, stop. Tell me what you tried, what you changed, what still fails, and what I need to decide.2. Only change code tied to this bug. List any old problems you spot; don't fix them.3. When you find a problem, search for the same pattern first and fix every copy at once, not one spot at a t…
Using up your Claude Code limit: a STATE.md per task, a summary to switch chats at each approved milestone or 200 thousand tokens.
from now on, in this project:
- keep a STATE.md of at most 40 lines per task, with what has already been approved, what's left and the decisions. update it at every milestone.- when a milestone is approved or the context passes 200 thousand tokens, tell me it's time to switch chats and hand me the summary to paste into the new session.- every image analysis runs in a subagent, which give…
Two agents, one rules file: plan first, smallest change, subagent roles, own the bug, verify before done, Lessons per correction.
Shared by Codex and Claude Code. Every line here should change what you do.
## 1. Plan before you touch code- Long task: first tell me in 2-3 sentences what you think I'm after- Start only after I say yes
Stuck on style, components, motion, a demo video or polish: 8 sites sorted by that, saved so Claude Code knows which to use.
Add a section called Frontend references to ~/.claude/CLAUDE.md. Use it only when building a new page, when I say something looks bad, or when I name one of these sites. For small changes, just do the work:
- Style: pick a DESIGN.md that fits the product from styles.refero.design or VoltAgent/awesome-design-md on GitHub. Put it in the project root and add an @ import for it in the project's CLAUDE.md, so from then on everything follows its colors, typography and spacing.- Comp…
Pages look AI-made since Opus hasn’t seen what you like: 3-5 screenshots become a DESIGN.md; add taste-skill and Impeccable.
These are screenshots of sites I like. Don't touch any code yet:
1. For each one, tell me what it does well: layout, typography, color, spacing, white space.2. List what they have in common, ask me which parts I want, and wait for my answer before going on.3. Write a DESIGN.md in the project root based on what I pick, with real values: font sizes, weights, color codes, spaci…
Pixels crisp in your sprites but blurry on screen: textures on Nearest, whole-number scaling, camera and sprites rounded alike.
Pixel art rendering rules:
1. Nearest-neighbor filtering (Nearest) on every texture. No mipmaps, no lossy compression on sprites2. Pick one base resolution (like 384x216) and only scale it by whole numbers. Fill the leftover space with black bars3. Web games: add CSS image-rendering: pixelated to the canvas. If you draw with a 2D canvas, set imageSmoothingEnabled…
Background you re-explain every new session: pulled from your last 20 sessions and written up as project instructions.
Then check my last 20 sessions (the .jsonl files in this repo's folder under ~/.claude/projects/, only what I typed myself) and my recent commits against it, and find three kinds of things:
1. Work that keeps producing new tasks: bugs fixed again and again in the same code, or migrations and features that took several sessions to finish. Using the doc's 'When to use a project' section, pick the one most worth turning into a project and explain why. Based on how hard it is, tel…
Agents follow an outdated CLAUDE.md over your code: its old instructions identified, and a rule that puts code first.
Read this paper and review my project's CLAUDE.md and AGENTS.md against the existing code. Identify instructions the code no longer follows.
For each issue, quote the original instruction, explain its potential impact, and suggest the smallest change needed. List any proposals involving safety, permission boundaries, or reduced verification separately for me to decide. Show me the recommendations first. Don't modify anything yet.
Opus 5.5 already thinks before it answers: rules that push extra thinking, dole out steps or stop to confirm, quoted with a fix.
Read this guide and review my project's CLAUDE.md, AGENTS.md, skills, and saved prompts. Find three kinds of problems: lines that push you to think more, like 'think carefully' or 'take a deep breath'; rules and prompts that hand out tasks one step at a time or don't define what done looks like; and rules that make you stop for confirmation when you don't need to.
For each issue, quote the original instruction, explain its impact, and suggest the smallest change needed. List a…
Rules hard-coded for older models work against Fable 5.2: delegation, think-less, style-limit and ‘never’ lines quoted with a fix.
Read Anthropic's official Prompting Claude Fable 5.2 guide and review my project's CLAUDE.md, AGENTS.md, skills, subagent files and memory files. Identify standing instructions that tell you to delegate work to subagents, lines that tell you to think less or answer directly, hard-coded style limits, 'never' rules and old notes that have piled up, and approval rules that don't name the exact actions they cover.
For each issue, quote the original instruction, explain its potenti…
Models and cost + Codebase·
Paste it where your agent reads it. Copybook in your agent can look up tips like this mid task.Send it to your computer for later.Add to your agentEmail me
Copybook Pro: line-by-line review of your CLAUDE.md or AGENTS.md, and tip lookups from your agent with no daily limit. Early bird: $59 for the 1-year pass. The price rises as Pro grows.See Pro