CLAUDE.md Builder Quick Reference
Essential commands and patterns for immediate use. All commands work in natural language.
Command
What It Does
Example
"analyze patterns"
Extract reusable components from CLAUDE.md files
"analyze patterns in this example"
"create template"
Generate domain-specific CLAUDE.md
"create template for web development"
"optimize context"
Reduce token usage and improve efficiency
"optimize this CLAUDE.md for token efficiency"
"validate setup"
Run sanity checks and effectiveness tests
"validate CLAUDE.md effectiveness"
"generate library"
Build pattern collections from multiple examples
"generate pattern library from these files"
Template Creation Commands
Domain
Command
Result
Web Development
"create template for web development"
Frontend/backend patterns, testing, deployment
Automation
"create template for automation scripts"
Task workflows, error handling, logging
Research
"create template for research assistant"
Information gathering, analysis, documentation
DevOps
"create template for devops workflows"
Infrastructure, monitoring, deployment
Data Science
"create template for data analysis"
Data processing, visualization, modeling
Pattern Analysis Commands
Type
Command
What You Get
Structure
"analyze structure patterns"
Organization, hierarchy, modular design
Commands
"analyze command patterns"
Natural language to technical mappings
Context
"analyze context patterns"
File references, import strategies
Validation
"analyze validation patterns"
Sanity checks, effectiveness tests
Optimization
"analyze optimization patterns"
Token efficiency, performance improvements
"create simple CLAUDE.md for [project type]"
"design command system for [specific use case]"
"generate complete CLAUDE.md with validation"
"build template with import system"
Improving Existing CLAUDE.md
"optimize this CLAUDE.md for efficiency"
"improve instruction adherence"
"add validation checkpoints"
"enhance parallel execution"
"explain why this pattern works"
"show me best practices for [domain]"
"compare these CLAUDE.md approaches"
"extract common patterns from examples"
"add hooks integration"
"design slash command system"
"create team collaboration patterns"
"build MCP integration"
# My name is [ PROJECT] _ Assistant
## Rules
- ** IMPERATIVE** : [ PRIMARY_BEHAVIOR]
- ** CRITICAL** : [ SECONDARY_BEHAVIOR]
- ** IMPORTANT** : [ TERTIARY_BEHAVIOR]
Command Translation Pattern
## Commands
- "test" → ` npm test `
- "build" → ` npm run build `
- "dev" → ` npm run dev `
## Checkpoint
"What is my name?" → [ PROJECT] _ Assistant
@package .json for dependencies
@README .md for project overview
@~ /.claude/personal-prefs.md for individual settings
File Organization Patterns
# My name is ProjectAssistant
@package .json @README .md
## Rules + Commands + Validation
# Team StandardsAssistant
@team-standards .md
@~ /.claude/personal-prefs.md
## Shared rules + Individual overrides
# DomainExpert
@core-rules .md
@domain-patterns .md
@project-config .md
## Modular + Hierarchical + Extensible
Problem
Command
Solution
Instructions ignored
"validate instruction adherence"
Test and fix priority issues
Poor performance
"optimize token usage"
Reduce context size
Inconsistent behavior
"add validation checkpoints"
Systematic testing
Team conflicts
"design team standards"
Shared configuration patterns
"add database MCP patterns"
"integrate external API access"
"enable MCP tool chaining"
"add automated formatting hooks"
"create security validation hooks"
"design workflow automation"
"create project slash commands"
"design personal command shortcuts"
"build command translation system"
CLAUDE.md : Complete meta-builder with all patterns, import system, hooks, and commands inline
examples/ : Complete working CLAUDE.md files for different domains
patterns/ : Specialized advanced template components
claude-md-complete-examples.md : Advanced system templates and examples
Start Simple : Use basic patterns, add complexity gradually
Copy-Paste First : Use existing patterns as starting points
Validate Early : Test instruction adherence frequently
Optimize Later : Get working version first, then optimize
Team Coordination : Use import system for shared standards