Prompt Engineering · ~6 min
An instruction can be too brittle or too vague. Both fail. The altitude in between is where a rule gets followed on inputs you never saw.
This course is about one thing: writing instructions that actually get followed. Not clever prompts — compliant ones. We start at the most basic lever, the one you set before you write a single word of the rule: its level of abstraction.
Every instruction sits at an altitude — from high-level principle down to case-by-case lookup table. There are two symmetric failure modes, and most weak prompts land in one of them.
Brittle prompts grow without bound: each new edge case needs another rule, and the list marches straight toward the compliance ceiling (Lesson 4). Vague prompts never constrained anything to begin with.
A well-calibrated instruction tells the agent how to reason, not what to decide for each case. That produces behaviour that survives inputs the author never imagined.
| Too brittle | Right altitude |
|---|---|
"Never edit files in /src/auth/" | "Treat auth code as high-risk; understand the session and token impact before editing" |
| "Always add a test for every function" | "Business-logic changes need test coverage; types, formatting, comments do not" |
The right-altitude versions activate knowledge the model already has — "auth is high-risk" pulls in session and token reasoning that would take a dozen enumerated rules to approximate. The brittle versions break the moment an edge case appears that the author didn't list.
The test: introduce an edge case the prompt didn't anticipate. A good-altitude prompt degrades gracefully — the agent applies the nearest heuristic. A brittle one falls through to vague defaults.
You don't pick one altitude for the whole prompt. Anthropic's context-engineering guide recommends organising a system prompt into sections, each at its own level — and mixing altitudes within a section produces inconsistency.
| Section | Altitude |
|---|---|
| Background — role, scope | High — principles and context |
| Instructions — how to behave | Medium — heuristics |
| Tool guidance — when/how to call | Low — precise constraints |
| Output format — structure | Precise — exact requirements |
Heuristics are the wrong call for hard boundaries. For security rules, fixed-schema extraction
(FHIR, EDI), or low-capability models that pattern-match rather than generalise, enumerate explicitly. "Never log
values from the credentials object" closes a gap that "treat sensitive data carefully" leaves open.
Retrieval practice — recall, don't peek
Question 1A "too vague" instruction fails because…
Question 2The right altitude tells the agent…
Question 3The practical test for altitude is to…
Question 4Which section should sit at the lowest, most precise altitude?
Question 5A heuristic is the wrong choice when the rule guards…