Regeln & Anweisungen Offiziell

CLAUDE.md

Markdown files of persistent project, user and org instructions that Claude Code loads at the start of every session.

Autor
Anthropic
Funktioniert mit
Claude Code
Dokumentiert
Oct 2, 2026

Was CLAUDE.md ist

CLAUDE.md files give Claude Code persistent instructions for a project, your personal workflow or your organization. They load at session start as context, not enforced configuration. Rules can be split into .claude/rules/ files, optionally scoped to paths.

Was es kann

Wie sich CLAUDE.md einbinden lässt: welche Agenten es ausführen und was es ergänztLÄUFT INIhr AgentClaude Codeein Host dokumentiertRULES · OFFIZIELLCLAUDE.mdProjektanweisungen, die der Agent…5 Installationsschrittekeine zusätzlichen Berechtigungen…WAS ES ERGÄNZTWas es kannLoads project instructions from .…Supports user-level ~/.claude/CLA…Supports managed-policy CLAUDE.md…Imports other files with @path/to…Agent → Erweiterung → neue Fähigkeit · aus dem offiziellen Repository oder der Dokumentation
Wo CLAUDE.md läuft und was es ergänzt, laut Dokumentation
  • Loads project instructions from ./CLAUDE.md or ./.claude/CLAUDE.md, shared via version control
  • Supports user-level ~/.claude/CLAUDE.md and private ./CLAUDE.local.md
  • Supports managed-policy CLAUDE.md for organization-wide instructions
  • Imports other files with @path/to/file syntax (max depth four hops)
  • Splits instructions into .claude/rules/*.md, with optional paths frontmatter for file-scoped rules
  • /init generates a starting CLAUDE.md from the codebase

Wann Sie es einsetzen sollten

Gut geeignet

  • You re-explain the same build commands or conventions each session
  • A team wants shared coding standards in version control
  • An organization needs company-wide policies applied to all users

Nicht geeignet für

  • Guaranteed enforcement: docs say to use a PreToolUse hook to block actions
  • Multi-step procedures or single-area instructions: use a skill or path-scoped rule

So installieren Sie CLAUDE.md

Sie benötigen: Claude Code

  1. Create ./CLAUDE.md or ./.claude/CLAUDE.md in the project root
  2. Add build/test commands, conventions and project layout, targeting under 200 lines
  3. Or run /init to generate a starting file
  4. Run /context and check the Memory files list to confirm it loaded
  5. Add CLAUDE.local.md to .gitignore for personal preferences
Konfigurationsbeispiel (aus der offiziellen Dokumentation)
See @README for project overview and @package.json for available npm commands for this project.

# Additional Instructions
- git workflow @docs/git-instructions.md

Berechtigungen und Sicherheit

Sicherheitshinweise der Maintainer

  • Treated as context, not enforced configuration; use hooks to guarantee behavior
  • Managed policy CLAUDE.md cannot be excluded by users

Prüfen Sie den Quellcode, bevor Sie einem Agenten Zugriff auf Zugangsdaten oder Produktivsysteme geben. Wir dokumentieren die Angaben der Maintainer; Code prüfen wir nicht.

Einschränkungen

  • Longer files consume more context and reduce adherence; target under 200 lines
  • Contradicting instructions may be resolved arbitrarily
  • Imports do not reduce context cost, imported files also load at launch

Tools, die es erweitert

Claude Code

Web · Desktop

Noch keine Nutzerbewertungen

Das agentische Coding-Tool von Anthropic, das Ihre Codebasis liest, Dateien bearbeitet und Befehle ausführt, im Terminal, in IDEs, in der Desktop-App oder im Browser.

Kostenlos bis: Kein kostenloser Tarif: Claude Code ist in den bezahlten Claude-Abonnements (Pro, Max, Team, Enterprise) enth…

Listed Noch nicht bewertet

Geprüft code.claude.com (öffnet die Website von Claude Code in einem neuen Tab)

Ab $20/mo US · geprüft Sep 29

Häufig gestellte Fragen

Where can CLAUDE.md files live in Claude Code?

Project: ./CLAUDE.md or ./.claude/CLAUDE.md; user: ~/.claude/CLAUDE.md; local: ./CLAUDE.local.md; managed policy at an OS-specific system path. Quelle

How large should a CLAUDE.md be?

Target under 200 lines per file; longer files reduce adherence. Quelle

Does Claude Code strictly obey CLAUDE.md?

No. It is delivered as context, not enforced configuration; use hooks for must-run behavior. Quelle

How do I exclude a CLAUDE.md in a monorepo?

Use the claudeMdExcludes setting with absolute-path globs; managed policy files cannot be excluded. Quelle

Quellen und Lücken

Von den Maintainern nicht angegeben: Repo URL is the Claude Code repo; CLAUDE.md has no separate repository.

Weitere Erweiterungen zum Ansehen