Claude.md erstellen
The CLAUDE.md File
CLAUDE.md is a persistent instruction file that Claude Code reads automatically every session. It contains your project context, preferences, and constraints-eliminating the need to re-explain everything each time you start working. Creating a CLAUDE.md file is the single most important step for getting consistent, reliable results from Claude Code.
Before you start any real work, set up a central file that gives Claude Code complete context. This is called CLAUDE.md. It's a persistent instruction file that Claude Code reads automatically every time you start a session in that project folder.
With CLAUDE.md, Claude already knows:
- What this project is about
- How you want things done
- What mistakes to avoid
- How to verify its work
How to Create It
The easiest way? Let Claude Code interview you.
Navigate to your project folder and ask:
I need to create a CLAUDE.md file for this project. Interview me to understand what this project is about, how I want things done, and what mistakes to avoid. Then create the file.
Answer the questions conversationally. Claude will ask follow-ups, then generate a CLAUDE.md file tailored to your actual project-not a generic template you have to fill in.
This works better than writing it yourself because Claude asks questions you wouldn't think to answer. The interview surfaces constraints and preferences you'd forget to document.
Beispiel:
What This Project Is
Weekly content analysis for our B2B SaaS marketing team. We analyze competitor content, customer feedback, and our own performance to identify opportunities.
Goals
- Find content gaps we can own
- Identify messaging that resonates with our ICP
- Spot trends before competitors do
Key Constraints
- All analysis must be exportable to Google Sheets
- Never include customer PII in outputs
- Focus on enterprise buyers, not SMB
How I Want Things Done
- Start with executive summary (3 bullets max)
- Include specific examples, not just patterns
- Always cite the source file for any claim
How to Verify Work
- Cross-reference findings against at least 2 data sources
- Check that all file paths in the output actually exist
- Confirm numbers add up before presenting totals
Common Mistakes to Avoid
- Don't conflate SMB feedback with enterprise feedback
- Don't assume competitor pricing is current (check dates)
- Don't recommend content formats we've already tried and failed
https://www.masteringai.io/guides/ultimate-claude-code-guide-for-beginners