Everything you need, nothing you don't.
The reference handbook. Pop in mid-level when stuck. Each section is anchored by what it changes about your prompt.
Why learn prompt engineering?
AI tools are everywhere, but most professionals use them like they're DM-ing a junior colleague. Vague, contextless, then surprised when the output is mush. The shift: execution cost has dropped to near-zero. The value of your work now lives in the decisions you make: what to build, what to exclude, what to challenge.
Direction over execution
You're not a typist anymore, you're a director. The prompt IS the work.
It pays back
Each session makes the next faster. Better prompts today → better outputs forever.
It's a craft, not a hack
Plan, direct, refine, encode, shifting roles. Not a single skill, a practice.
Sustainable prompting
Sustainable prompting isn't about writing shorter prompts, it's about writing smarter ones. More context upfront = fewer correction cycles = less total token spend. A 200-token prompt that produces a usable 300-token response is more sustainable than a 20-token prompt that triggers 5 rounds of 500-token corrections.
High token spend, low signal, output isn't reusable.
Lower token spend, high signal, prompt becomes a reusable template.
Why use AI responsibly?
AI use should be effective and efficient, but also ethical and safe. Three diligences to anchor your practice:
Be intentional
Critically aware of which AI systems you use, how you work with them, and the impacts.
Be open
Open about AI interactions with relevant stakeholders. Who needs to know? At what level of detail?
Take responsibility
Verify facts, check for biases, ensure accuracy, and check usage rights before deploying.
PE 101 · The 4D Framework
Anthropic's core model: four interconnected competencies that work together, not in sequence.
Delegation
Decide which tasks to assign to AI, and how. Domain expertise is the foundation.
Description
Clearly define what you want. Context, format, audience, style, constraints.
Discernment
Critically evaluate what AI produces. A continuous loop of instruction and evaluation.
Diligence
Take responsibility for AI interactions and their impacts. Be rigorous and accountable.
Description has three flavours
What you want
Output characteristics: context, format, audience, style, constraints.
How to approach it
Should AI think step by step? Debate itself? Explore multiple paths before concluding?
How to behave
The behavioral aspects of the interaction. AI behaves differently in different contexts.
Six techniques that compound
Each addresses a specific failure mode in how AI processes instructions.
Define role, style, tone
Not "act like a designer" but "act as a senior product designer who has shipped AI features in regulated industries."
Ask AI to think first
"Before answering, think through the problem carefully. Consider constraints and approaches before recommending."
Break into steps
For complex tasks, number the steps. "1) do X, 2) compare Y, 3) highlight Z, 4) suggest reasons."
Negative constraints
Tell the model what NOT to do. "Do not jump to solutions, first help me align on the problem." The most underused.
Define output format
"Give me: a) key user needs, b) business goals, c) P0 features with rationale," not "a comprehensive response."
Ask for variations
"Give me 3 versions: conservative, balanced, aggressive, so I can compare directions."
Evaluating AI output
Discernment ensures AI collaboration remains guided by human judgment. Three lenses:
Did it produce good work?
Factually accurate? Appropriate to audience? Coherent? Adds value?
Did it reason well?
Watch for: logical inconsistency, lapses in attention, getting trapped in circular reasoning.
Did it behave right?
Communication style appropriate? Right level of detail? Response to feedback efficient?
The senior-level unlock
Chain-of-thought prompting. Add "Walk me through your reasoning before presenting the answer." For any ambiguous or high-stakes prompt, this dramatically improves output quality. The model is forced to show its work before concluding.
The window is the unit, not the prompt
Prompt engineering asks what to say. Context engineering asks what the model can see when it answers: the system prompt, the tools and their descriptions, retrieved documents, examples, and the history of the conversation so far. All of it competes for the same finite attention.
Neither rigid nor vague
Hard-coded rules shatter on the case you didn't foresee. Vague guidance invents policy. Aim for principles with one worked example each.
Tool results are context too
A 50k-token API response spends the same budget as 50k tokens of your prose. Project it down to the fields that can change the answer.
Load now or fetch later
Everything loaded upfront is paid for on every turn. Everything fetched on demand costs a round trip. Decide deliberately, per item.
Summarising is lossy and one-way
Preserve ratified decisions, discredited sources and abandoned approaches. Drop the narrative recap. What you omit is gone.
Decide what outlives the session
A notes file that persists across runs needs a contract: what goes in, what gets overwritten, and who prunes it.
Longer is not safer
Padding a window with maybe-relevant material degrades recall of what is relevant. A tight window outperforms a full one.
The test
For every token in the window, ask: if this were missing, would the answer change? If not, it is costing attention and buying nothing.
One agent, then many
An agent is a loop: gather context, act with a tool, check the result, decide whether it is done. Most agent failures are not reasoning failures. They are missing stop conditions, tool descriptions that invited misuse, or permissions that did not match how hard an action is to undo.
Tool contracts
A description is a contract, not a label. Say when NOT to call it, which cheaper tool to prefer, the required bounds, and what to do when it fails instead of retrying unchanged.
Stop conditions
Name the terminal states. A loop without them is a while(true) with a token bill. Add a step budget that forces escalation rather than another lap.
Permissions by reversibility
Rank actions by what undoing them costs, not by how risky they feel. Reading logs is free; merging a pull request is not. Say how the boundary shifts during an incident.
Verification
An agent that cannot check its own work will confidently hand you the wrong answer. Build the check into the loop, not into your review of it.
Orchestrator and workers
Split where contexts genuinely do not overlap, not by task name. Then forbid the orchestrator from doing the work itself, or you have rebuilt the overloaded agent with extra hops.
Handoff contracts
Free-form prose between stages destroys provenance. Pass atomic records carrying their source and the stage that last touched them, so an error traces to the hop that introduced it.
The cold-start rule
A subagent sees only the brief it is given, never the conversation that produced it, and it usually cannot come back to ask. Write every brief as if you will never speak again: pin the scope, state what is out of scope and owned by someone else, define what done means, and say what to do with unknowns. Every ambiguity you leave becomes a guess.