What goes into a working prompt — and when to use each piece.
AI writes the prompts; you direct.
The v5 prompt you produce with an AI coach feeds Block 2.
1.2.1
The naked prompt problem
3 minLecture
Slide 1 / 2 · The naked prompt
This is a naked prompt
Summarize this codebase.
6 words. Zero scaffolding. Reliable garbage.
Slide 2 / 2 · Three runs
Same prompt, three runs
Run 1: bullet list, no structure
Run 2: prose paragraph, different framing
Run 3: half-correct facts, no schema
Non-deterministic by accident, not by design.
1.2.2
The six prompt components
3 minLecture
Slide 1 / 2 · Components
The anatomy of a real prompt
#
Component
What it does
1
Role
Who the model is supposed to be
2
Task
What it's supposed to do
3
Context
What it needs to know
4
Examples
What "good" looks like
5
Format
The output's shape
6
Constraints
The rules it must follow
Slide 2 / 2 · Anatomy
Naked prompts skip 5 of 6
"Summarize this codebase" has only task
Every layer we add is one of these components
Most prompt failures are missing-component failures, not "model is dumb"
1.2.3
The ambiguity tax
3 minLecture
Slide 1 / 2 · Clarity
The Ambiguity Tax
Every ambiguous word in your prompt = a coin flip
The model resolves ambiguity by guessing
More ambiguous words = more guesses = more variance
Clarity is the single highest-leverage edit
Slide 2 / 2 · Before / after
Before / after
Before:
Summarize this codebase.
After:
Produce a one-page briefing of this codebase
covering: architecture, entry points, data flow,
key dependencies, test patterns.
"Summarize" was the tax. We just paid it down.
1.2.4
Chain-of-thought
4 minLecture
Slide 1 / 3 · CoT
The highest-leverage technique
Tell the model to think in steps before answering
Doubles or triples accuracy on multi-step tasks
Two flavors: explicit steps, or "let's think step by step"
Free. No new tooling. Just words.
Slide 2 / 3 · Applied
CoT applied to repo inspection
First, scan the directory structure.
Then, identify the entry points.
Then, trace data flow from entry to output.
Then, summarize.
4 steps. Each constrains the next.
Slide 3 / 3 · When to use
Use CoT when…
The task has > 1 logical step
Errors compound across steps
You want to audit the model's reasoning
Output should reflect a process, not a guess
1.2.5
★ The 5 components — and when to use each
4 minLectureLOAD-BEARING — DO NOT CUT
AI will write your prompts. Knowing what makes up a prompt — and when each piece earns its keep — is the durable skill.
Slide 1 / 3 · The components
Five components. Five "when" signals.
Layer
Component
When you need it
0 — Naked
Just the task
Single-shot, throwaway, exploration
1 — Role
Who the model is
Output needs perspective or domain framing
2 — Examples
One worked example
Output shape is non-obvious or has many valid forms
3 — CoT
Steps before answer
Task has multiple logical steps; errors compound
4 — Constraints
Format, schema, output shape
Output will be parsed, validated, or fed downstream
5 — Safety
What not to do
Output goes to production, users, or regulated context
Slide 2 / 3 · The durable skill
AI writes. You direct.
You will not hand-author prompts in production. You'll work with AI to author them.
But the AI doesn't know which components your task needs.
Your judgment fills that gap: "add an example here," "this needs a schema," "this is going to prod — add safety."
The 5 components are the vocabulary you bring to that conversation.
Knowing when matters more than knowing how to type.
Slide 3 / 3 · Next
Now you direct an AI coach
Pick any AI chat — Claude, Gemini, ChatGPT
Paste our optimizing prompt + your starting seed
The AI asks you questions about your task; you bring the judgment
Together you produce a v5 prompt for Project Inspector
The v5 you produce feeds Block 2 as your skill body
1.2.6
Advanced patterns awareness pass
3 minLecture
Slide 1 / 2 · Three patterns
Beyond CoT — what else exists
Pattern
One-line use case
Tree of Thought (ToT)
Branch multiple reasoning paths; pick the best one
ToT — when there are multiple plausible approaches
Self-Consistency — when you need confidence, not just an answer
ReAct — when the model needs to act on the world, not just think
Sam's block (Block 3) lives at the ReAct altitude in practice
1.2.7
★ HO — AI-as-Coach: collaborate to v5
15 minHands-onLOAD-BEARING — V5 FEEDS BLOCK 2
You direct an AI coach to enhance your Project Inspector prompt. The 5 components are your vocabulary; the AI does the typing.
Slide 1 / 4 · The exercise
What you'll do (15 min)
Open any AI chat — Claude, Gemini, ChatGPT, your tool of choice
Copy the optimizing prompt (slide 2) → paste → send
The AI will ask for your prompt → reply with your starting seed (slide 3)
Answer the AI's 2–3 clarifying questions; bring judgment about which components your task needs
When the AI proposes a v2.0, check it against the rubric (slide 4)
Save the v5 — you'll paste it into a SKILL.md in Block 2
Working solo or with your neighbor — your call.
Slide 2 / 4 · The optimizing prompt
Copy this. Paste into your AI chat. Send.
Act as a Senior Prompt Engineer. Your goal is to help me refine and optimize
a prompt for maximum performance. When I provide a prompt, please follow these steps:
1. Critique: Review the prompt for structure, coherence, and clarity.
Identify any ambiguous phrasing or "fluff" that might confuse an LLM.
2. Intent & Specificity: Evaluate if the prompt provides enough context
and clear constraints. Identify what might be missing to achieve a high-quality result.
3. Clarifying Questions: Before providing the final version, ask me 2–3
targeted questions to bridge any gaps in context, tone, or intended output format.
4. The Optimization: Once I answer, provide the "v2.0" version of the prompt
using best practices (e.g., Role-assigning, Delimiters, Chain-of-Thought prompting).
Do you understand? If so, please ask me for the prompt you'd like to optimize.
[your current prompt]
Same optimizing prompt works in any AI chat. Pick whichever you brought. The [your current prompt] line at the end is a placeholder — your seed goes there in your next reply.
Slide 3 / 4 · Your follow-up reply
After the AI asks — send your seed
Minimal (Layer 0):
Summarize this codebase.
Slightly enriched (Layer 0+): if you want to start with a little context.
Summarize this codebase so a new engineer onboarding to the project can get oriented quickly.
Both are valid. Minimal lets the AI ask more clarifying questions; enriched starts the conversation further along. Your call.
Slide 4 / 4 · Self-check rubric
Your v5 should have…
Component
Should include
✓ ROLE
Senior engineer onboarding to a new project (or similar perspective)
✓ EXAMPLE
One worked briefing — shape of the output anchored