prompt-architecture
Installation
SKILL.md
Prompt Architecture
How to structure a system prompt so behavior is predictable, priority is unambiguous, and token cost is controlled.
Layering Model
A well-structured system prompt has four layers, in this order:
1. Identity & Role — who this agent is and what it's for
2. Hard Constraints — what it must never do (non-negotiable)
3. Behavioral Rules — how it operates (tone, format, workflow)
4. Context & Knowledge — what it knows (domain, data, tools)
Order matters. Claude reads top-to-bottom. Constraints defined early survive conflicts with later content. Context at the bottom gets referenced, not overridden.