CLAUDE.md Best Practices
Multiple CLAUDE.md for Monorepos
For large monorepo projects, use multiple CLAUDE.md files with ancestor + descendant loading.See Memory Best Practices for detailed guidance on CLAUDE.md loading behavior in monorepos.
Commands vs Agents
Create feature-specific subagents with skills (progressive disclosure) instead of general-purpose agents like “qa” or “backend engineer.”Context Management
Manual Compacting
Memory and Rules Limitations
/memory, /rules, and constitution.md do not guarantee anything. These are guidance mechanisms, not strict enforcement.Planning and Execution
Always Start with Plan Mode
Task Size Guidelines
- Vanilla Claude Code is better than complex workflows for smaller tasks
- Break subtasks small enough to complete in under 50% context usage
- Use human-gated task list workflow for multi-step tasks
