@import Directive

Claude Code

Definition

A CLAUDE.md directive that includes the contents of another markdown file. Enables modular CLAUDE.md organization where large configuration is split into focused files (e.g., @import docs/api-conventions.md). Reduces duplication when multiple CLAUDE.md files share common instructions.

Example Usage

Use '@import .claude/security-guidelines.md' in the root CLAUDE.md to include security rules without duplicating them in every directory's CLAUDE.md.

Related Terms