Lv.1 0 XP

D3 + D4: CLAUDE.md Is a System Prompt — The Critical Insight

⚡ Exam Tested 9 min +45 XP
💡
THE ANALOGY

An employee handbook and a job description are both forms of instruction — one is company-wide, one is role-specific. CLAUDE.md is the employee handbook. A D4 system prompt is the job description. They work together, they're not substitutes for each other, and good employees follow both simultaneously.

⚠️ EXAM TRAP — The Wrong Answer People Choose

Treating CLAUDE.md as configuration (D3) and system prompts as prompting (D4) as completely separate concerns. The exam tests that you understand CLAUDE.md IS a form of system prompting — and that D4 principles of explicit criteria, few-shot examples, and structured output apply equally to CLAUDE.md authoring.

KEY POINTS
1 CLAUDE.md is processed as a system prompt — D4 prompt engineering principles apply to writing it.
2 Specific and verifiable rules (D4 explicit criteria) make CLAUDE.md effective. Vague aspirations make it useless.
3 CLAUDE.md at project-level + D4 system prompt at session-level creates a two-layer instruction hierarchy.
4 Conflicts between CLAUDE.md and runtime system prompts: runtime generally wins for specific instructions.
5 D3's path-specific rules are conditional prompt injection — different files trigger different instruction sets.