OpenClaw Optimised
Guide for writing and optimizing CLAUDE.md files for maximum Claude Code performance. Use when creating new CLAUDE.md, reviewing existing ones, or when user asks about CLAUDE.md best practices. Covers
Guide for writing and optimizing CLAUDE.md files for maximum Claude Code performance. Use when creating new CLAUDE.md, reviewing existing ones, or when user asks about CLAUDE.md best practices. Covers
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Write CLAUDE.md files that maximize Claude's adherence and performance.
Long CLAUDE.md = Claude ignores half of it. Critical rules get lost in noise.
For each line ask: "Would removing this cause Claude to make mistakes?"
| Section | Example |
|---|---|
| Project context | "Next.js e-commerce app with Stripe" (1 line) |
| Build/test commands | , |
| Critical gotchas | "Never modify auth.ts directly" |
| Non-obvious conventions | "Use for state, not " |
| Domain terminology | "PO = Purchase Order, not Product Owner" |
feature/, fix/)# Project NameOne-line description.
Commands
- Test:
npm test- Build:
npm run build- Lint:
npm run lintCode Style
- [Only non-obvious conventions]
Architecture
- [Brief, only if complex]
IMPORTANT
[Critical warnings - use sparingly]
| Location | Scope |
|---|---|
| All sessions (user prefs) |
| Project root (share via git) |
| Loaded when working in subdir |
| Auto-loaded as project memory |
Before finalizing:
/init as starting point, then prune aggressively| Don't | Why |
|---|---|
| 200+ line CLAUDE.md | Gets ignored |
| "Write clean code" | Claude knows this |
| Duplicate rules across files | Wastes tokens, conflicts |
| Theoretical concerns | Only add for real problems |
| Long prose explanations | Use bullet points |
# MyAppReact Native app with Expo. Backend is Supabase.
Commands
- run testspnpm test - run iOS simulatorpnpm iosStyle
- Prefer Zustand over Context
- Use
for conditional classesclsxIMPORTANT
NEVER commit .env files
Auth logic lives in src/lib/auth.ts only
~15 lines. Covers what Claude can't infer. Nothing more.
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.