claude-optimisedGuide 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 structure, content, pruning, and common mistakes.
Install via ClawdBot CLI:
clawdbot install hexnickk/claude-optimisedWrite 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 | npm run test, pnpm build |
| Critical gotchas | "Never modify auth.ts directly" |
| Non-obvious conventions | "Use vi for state, not useState" |
| Domain terminology | "PO = Purchase Order, not Product Owner" |
feature/, fix/)# Project Name
One-line description.
## Commands
- Test: `npm test`
- Build: `npm run build`
- Lint: `npm run lint`
## Code Style
- [Only non-obvious conventions]
## Architecture
- [Brief, only if complex]
## IMPORTANT
- [Critical warnings - use sparingly]
| Location | Scope |
|----------|-------|
| ~/.claude/CLAUDE.md | All sessions (user prefs) |
| ./CLAUDE.md | Project root (share via git) |
| ./subdir/CLAUDE.md | Loaded when working in subdir |
| .claude/rules/*.md | 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 |
# MyApp
React Native app with Expo. Backend is Supabase.
## Commands
- `pnpm test` - run tests
- `pnpm ios` - run iOS simulator
## Style
- Prefer Zustand over Context
- Use `clsx` for conditional classes
## IMPORTANT
- NEVER commit .env files
- Auth logic lives in src/lib/auth.ts only
~15 lines. Covers what Claude can't infer. Nothing more.
Generated Mar 1, 2026
A development team uses this skill to create a concise CLAUDE.md for a new project, ensuring all members follow consistent coding practices and avoid common pitfalls. It helps standardize project setup and reduces onboarding time by clearly documenting non-obvious conventions.
A freelance developer applies this skill to optimize CLAUDE.md files for client projects, focusing on critical gotchas like API key management and build commands. This ensures reliable code delivery and minimizes miscommunication by keeping documentation brief and actionable.
Maintainers of an open-source repository use this skill to prune and update CLAUDE.md, removing redundant rules and emphasizing essential guidelines like contribution workflows. It helps new contributors adhere to project standards without overwhelming them with lengthy documentation.
An enterprise team leverages this skill during a large-scale refactoring to create a streamlined CLAUDE.md that highlights architecture boundaries and critical warnings. This aids in maintaining code quality and preventing regressions by focusing on real-world issues encountered in the codebase.
Instructors use this skill to design minimal CLAUDE.md files for coding workshops, teaching students best practices for documentation without clutter. It emphasizes practical examples like build commands and style rules to enhance learning efficiency.
A software-as-a-service company integrates this skill into its development platform to help users optimize their CLAUDE.md files automatically. Revenue is generated through subscription tiers offering advanced analytics and AI-powered pruning suggestions.
A consulting firm offers services to audit and optimize CLAUDE.md files for clients, charging per project or hourly rates. This model provides tailored advice to improve AI agent performance and coding efficiency in client environments.
A developer tools company provides a free version of this skill for basic CLAUDE.md optimization, with premium features like team collaboration and version history. Revenue comes from paid upgrades and enterprise licenses for larger organizations.
💬 Integration Tip
Integrate this skill by placing optimized CLAUDE.md files in project roots or user directories, and regularly review them to remove outdated rules, ensuring they stay under 50 lines for maximum effectiveness.
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞
Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.
Clawdbot documentation expert with decision tree navigation, search scripts, doc fetching, version tracking, and config snippets for all Clawdbot features
Interact with Moltbook social network for AI agents. Post, reply, browse, and analyze engagement. Use when the user wants to engage with Moltbook, check their feed, reply to posts, or track their activity on the agent social network.
OpenClaw CLI wrapper — gateway, channels, models, agents, nodes, browser, memory, security, automation.
MoltGuard — runtime security plugin for OpenClaw agents by OpenGuardrails. Helps users install, register, activate, and check the status of MoltGuard. Use wh...