← All free cheat sheets

Free cheat sheet

.claude/rules cheat sheet: stop bloating CLAUDE.md

Per-folder rules that only load when Claude touches matching files.

claude-codecontext verified 26 Oct 2026

Why bother

The docs recommend keeping each CLAUDE.md under 200 lines. Long files cost context and Claude follows them less well. A rule with paths only loads when Claude reads, writes or edits a matching file.

Step 1: one file per topic

Create the file inside the rules folder. One topic per file.

.claude/rules/api-design.md

Get the full sheet by email

Drop your email and I will send you the full sheet: copy-paste commands, and a one-click print to PDF. You also get a heads-up when it changes.

Want them all?

The Claude Code Field Guide

Every cheat sheet in one place, plus CLAUDE.md and rules templates you can paste in. Updated when Claude Code changes.