- Work from a local folder Codex can actually open. Every prompt below assumes the "Lina — Finance Close" folder exists and Codex has that folder as its workspace.
- Separate designing from running. DESIGN MODE plans; WORKFLOW AUDIT MODE checks; RUN MODE executes one approved cycle; DELIVERY APPROVED scopes the final writes. Never collapse two of these into one prompt.
- Replace placeholders such as [YOUR FOLDER NAME] and [YOUR RECURRING TASK]. Never leave a placeholder in the prompt you send.
- Demand a blueprint, not a build. The Build Brief, the frozen blueprint, and the audit all happen before a single station runs.
- Keep each output. The hands-on prompts form a chain: naive request → build brief → frozen blueprint → workflow audit → bounded run → evidence branch → revise loop → delivery approval.
- Use the optional guardrail prompts (Part E) only when you catch Codex slipping — designing and running in the same breath, inventing a schedule, or repairing missing evidence by rewriting instead of asking.
Key mindset design the machine once, then trigger it. Every station names its handoff, and every gate waits for a human before anything is sent, saved, or booked.
H1 · H2 · H3 · H4 · H5 · H6 · H7 · H8
Hands-on prompt chain — Lina's Friday Finance Close
These prompts are the exact build chain from the Module 4 hands-on recording. Codex has the local "Lina — Finance Close" folder as its workspace: the Knowledge Layer workbook from Module 3, budget goals, an output contract, an audit rubric, good/bad report examples, and the raw evidence files. Keep the placeholders and replace them only when you run the prompt.
H1 · Acting before designing
Use this first, before Prompt H2, to show why asking Codex to build a workflow immediately — without a Build Brief — produces an attractive plan with the business logic left inside its guesses.
Weak versionJust automate Lina's Friday finance stuff end to end.
Improved version · H1Turn Lina's weekly finance work into a workflow. Use her evidence room and finance sheet, analyze the spending, audit the report, and send it with any reminders. Do not take action yet. Show me the plan you would use.
Why it is betterEven the improved version here is deliberately incomplete — it names the sources loosely and leaves "audit" and "send" undefined. It's included to show the trap, not to use as the final workflow: it still doesn't say what PASS means, which failures go to a person, or when the workflow must stop.
Then ask Ask: which decisions in that plan — pass/fail rules, ownership, what "send" means — did Codex fill in on its own?
The mistake it avoidsTreating an attractive, reasonable-sounding plan as a designed one. If Codex happens to ask good clarifying questions, that's not a failed demo — it noticed the gaps that H2 exists to close.
Hands-on / why blind workflow requests fail · Prompt library p. 3
H2 · Declare the Workflow Build Brief
Use once, right after H1, to replace the vague request with a machine definition: what starts it, what each station receives and produces, where it branches, and how it knows when to stop.
Weak versionJust build whatever makes sense and check with me if you're not sure.
Improved version · H2DESIGN MODE — do not execute the workflow, run scripts, or write to any local file or connected app. TASK: When I trigger a run, turn Lina's verified weekly finance sources into a reviewed one-page finance brief and prepare its delivery artifacts. INPUTS: (1) the current local Lina Finance Close folder; (2) 'Lina — Knowledge Layer.xlsx' with Source Registry, Clean Ledger, and formula-backed Summary tabs; (3) budget-goals.md; (4) audit-rubric.md; (5) output-contract.md and the good / bad weekly-report examples; (6) the raw .csv and .txt evidence files. KNOWN WORK: check required inputs; analyze category totals, trends, and anomalies; draft the brief; check it; revise fixable failures; route evidence gaps to a human; request approval before delivery; write a run log. DECISION RULES: a missing required input blocks the run; Needs review rows stay out of confirmed totals; fixable quality failures may be revised; missing evidence or a human-only choice may not be fixed by repetition. LOOP RULE: stop after three maker/checker rounds or when zero required checks fail, whichever comes first. If the third round still fails, return BLOCKED. ACTION RULE: this is human-triggered. Do not invent a schedule, send email, create calendar items, overwrite source files, or claim a local write occurred without a separate human approval and tool confirmation. DEFINITION OF DONE: return (A) a workflow diagram, (B) a documentation table with Station | Trigger | Input | Output | Dependency | Failure point | Owner/tool | Pattern, and (C) an assembly checklist. Then stop. Do not execute. Before building, list only the decisions that are still genuinely missing. Do not resolve them for me.
Why it is betterEvery capitalized label separates one kind of decision from another instead of leaving all of them inside one long ask. DESIGN MODE and 'do not execute' keep this a planning step, and the final line makes Codex surface open questions instead of inventing business logic to fill them.
Then ask Read back Codex's list of missing decisions before answering — confirm none of them are things you already stated.
The mistake it avoidsLetting Codex both design and build in the same prompt, which hides which parts of the workflow are your decision and which parts it invented.
Hands-on / design before you build · Prompt library pp. 3-5
H3 · Freeze the blueprint with human decisions
Use right after Codex asks its clarifying questions from H2, to turn open decisions into a stable, auditable blueprint.
Weak versionSure, just go with whatever you think is best for all of that.
Improved version · H3Here are my decisions: - The run starts only when I write RUN MODE; there is no schedule in Module 4. - If a required file or Sheet tab is missing, stop and return BLOCKED. - A row marked Needs review = yes is excluded from confirmed totals and shown under Needs confirmation. - A writing, structure, or coverage failure may enter the maker/checker loop. - Missing evidence, an unresolved amount, or a business decision routes to a human; repetition may not invent an answer. - All eight Module 2 audit categories must pass. The loop stops after three rounds or zero failed categories. - Delivery means: save a new final report, prepare an email draft, and prepare a calendar reminder. Ask me to approve each write action first. Never auto-send. Update the blueprint. Give every station a stable ID (S1, S2, and so on), label each workflow pattern, name the exact object crossing every arrow, and end with READY FOR WORKFLOW AUDIT. Do not execute.
Why it is betterStable station IDs and named handoff objects turn 'send the result' into something a second person could actually run. READY FOR WORKFLOW AUDIT is a visible stop marker that keeps the blueprint frozen until it's checked.
Then ask Ask Codex to point to the exact arrow where the Needs-review rule takes effect, before moving to the audit.
The mistake it avoidsLetting Codex quietly pick a business rule — like what counts as a fixable failure — instead of answering the actual open question yourself.
Hands-on / close the gaps yourself · Prompt library pp. 5-6
H4 · Audit the translation before running it
Use once the blueprint is frozen, ideally in a fresh chat or separate worker, so the checker isn't grading its own diagram.
Weak versionLooks good to me, go ahead and run it.
Improved version · H4WORKFLOW AUDIT MODE — review only; do not execute and do not rewrite yet. Compare the proposed diagram, documentation table, and assembly checklist against my Workflow Build Brief and decisions. Check: every required station; exact handoffs; dependency order; all decision points; pass and fail paths; owner/tool; failure handling; maker/checker separation; loop stop rule; human escalation; approval before writes; and no invented schedule or extra business step. Return a PASS / FAIL table with Evidence from brief | Evidence from blueprint | Why it matters | Required change. Overall PASS only if every check passes. If anything fails, list the minimum changes and stop. Do not execute.
Why it is betterA PASS/FAIL table forces evidence for every verdict, and 'overall PASS only if every check passes' stops one beautiful diagram from hiding a single unsafe gap — the same discipline Module 2 used on a draft, now applied to the workflow itself.
Then ask If the blueprint fails, revise only the failed logic and rerun the full audit before any run is triggered.
The mistake it avoidsTreating a clean-looking diagram as a checked one. A blueprint that was never independently audited can put the human-approval gate in the wrong place without anyone noticing.
Hands-on / a second checker context · Prompt library pp. 6-7
H5 · Trigger one bounded run
Use once the blueprint has passed its audit, to start exactly one human-triggered cycle.
Weak versionOkay, now just run the whole thing and send it when it's done.
Improved version · H5RUN MODE — execute one human-triggered run of the approved workflow. Do not redesign it. Use the approved station IDs, handoffs, decision rules, audit standard, and stop conditions above. RUN INPUTS: use the current local Lina Finance Close workspace folder. Treat Lina — Knowledge Layer.xlsx as the numerical source of truth, use the .md files for goals, output rules, audit rules, and examples, and use the .csv / .txt files as supporting evidence and context. At S1, verify every required input. If something is missing, stop with BLOCKED and say exactly what is missing. At S2, run category, trend, and anomaly analyses as independent lanes. Merge only after all lanes complete. At S3, draft the one-page finance brief. Keep Source IDs beside claims. Do not recalculate formula totals in prose. At S4, use a separate checker lane. A fixable quality failure goes to S5. A missing source, unreadable value, or human-only decision routes to Human Review instead of the revise loop. Run no more than three maker/checker rounds. Preserve a changelog for each revision. At the delivery gate, show me the final brief, the audit verdict, unresolved human items, and the exact write actions you propose. Then stop and ask for approval. Do not write or send yet. Maintain a run log with Station | Input received | Output produced | Verdict | Attempt | Human action.
Why it is better'Do not redesign it' freezes the logic that was already audited, and the delivery gate keeps Codex from writing or sending anything before you've actually seen the final proposal.
Then ask Ask Codex to show the run log so far after S2, before the draft even exists, so you can see the merge point named explicitly.
The mistake it avoidsAssuming a passed audit means the run itself needs no supervision. RUN MODE still stops at the delivery gate — a designed workflow is not the same as an unattended one.
Hands-on / execute the approved logic · Prompt library pp. 7-8
H6 · Route missing evidence to a human
Use when the run reaches a row or value the workflow can't verify — like the faded receipt row already flagged Needs review = yes.
Weak versionJust estimate it so the totals aren't missing anything.
Improved version · H6For the row currently marked Needs review = yes: exclude it from confirmed totals and list it explicitly under Needs confirmation in the run output. Do not send it through another revision round hoping a number appears. If my rule allows continuing with confirmed-only totals, do so and say that's what happened; otherwise return BLOCKED and name exactly what's missing.
Why it is betterA loop can improve a draft; it cannot repair absent evidence. Naming the exact excluded row, instead of quietly smoothing it into the total, keeps the gap visible instead of silently resolved.
Then ask Ask Codex to list every row currently marked Needs review before trusting any total in the brief.
The mistake it avoidsSending a genuine evidence gap through the maker/checker loop as if better wording could fix it. Rewriting a sentence cannot produce a number that was never in the source.
Hands-on / Branch A — evidence gap · Prompt library p. 8
H7 · Let a fixable failure enter the revise loop
Use when the separate checker returns a fixable failure — unsupported certainty, a missing section — rather than a genuine evidence gap.
Weak versionJust tell me what's wrong and I'll fix the wording myself.
Improved version · H7The checker flagged [FAILURE TYPE] in the draft. Since the source evidence exists and only the wording or structure is at fault, repair only that item, preserve every claim that already passed, and send the whole draft back through all eight audit checks. Keep the changelog and attempt count visible. If this is round three and it still fails, return BLOCKED instead of trying a fourth time.
Why it is betterRepairing only the failed criteria — instead of regenerating the whole draft — means content that already passed can't quietly regress, and the visible attempt count keeps the three-round stop rule honest.
Then ask Compare the changelog against the original draft — confirm nothing outside the flagged item actually changed.
The mistake it avoidsLetting an unbounded number of revise rounds run instead of stopping at three. A loop that never ends is not a stop rule, it's a hidden schedule.
Hands-on / Branch B — quality failure · Prompt library pp. 8-9
H8 · Approve delivery and keep the run log
Use last, once the brief has passed every check, to approve exactly the writes the workflow proposed — nothing more.
Weak versionGreat, go ahead and send it and put it on my calendar.
Improved version · H8DELIVERY APPROVED for these actions only: 1. Save the final finance brief as a new file; do not overwrite the source workbook or prior reports. 2. Create an email draft to Lina with the brief attached or linked; do not send it. 3. Create the proposed calendar reminder only after showing its exact title, date, and description one final time. After the approved actions complete, return the final run log and label the run REVIEWED — PASS or REVIEWED — BLOCKED. Record any action that could not be completed. Do not claim success without confirmation from the tool.
Why it is better'For these actions only' is a scoped approval, not general permission — it prevents an extra write nobody asked for. Requiring tool confirmation before any success claim means Codex can't say an action happened unless the computer actually confirms it.
Then ask Open the saved file and the draft message yourself and confirm they match what the delivery gate showed you.
The mistake it avoidsTreating 'DELIVERY APPROVED' as blanket permission for the rest of the session, instead of a one-time scope for the exact actions listed.
Hands-on / scoped approval · Prompt library pp. 9-10
P0 · P1 · P2 · P3 · P4 · P5
Foundation prompts from the lecture
These prompts let you practice the core ideas from the lecture on your own recurring task — each one as a weak attempt and a stronger, designed version.
P0 · Hand over the whole workspace, not one file
At the start of any session where Codex needs to work across your data, your rules, and your examples — not just one pasted file.
Weak versionCan you help me build a workflow for this spreadsheet?
Improved version · P0I'm going to work from a local folder called [FOLDER NAME]. Confirm you can see every file in it and list them back to me. Once confirmed, wait for my Workflow Build Brief — don't design or run anything yet.
Why it is betterIt establishes, before any real design work, that Codex can actually reach every file the workflow will need — instead of discovering a missing file halfway through a run.
Then ask If a file is missing from the list, fix the folder before continuing — don't let Codex guess at its contents.
The mistake it avoidsPasting one file into the chat and assuming Codex can infer the rest of the workspace around it.
One folder, the whole workflow · Prompt library p. 10
P1 · Design before you build
Whenever you're tempted to ask Codex to "make a workflow" for a task in one shot.
Weak versionBuild me a workflow that handles this from start to finish.
Improved version · P1DESIGN MODE — do not execute or write anywhere. TASK: [state the outcome]. INPUTS: [name every file and source]. KNOWN WORK: [list the stations you already know belong]. DECISION RULES: [how it branches]. LOOP RULE: [maximum rounds]. ACTION RULE: [what needs approval]. DEFINITION OF DONE: a diagram, a documentation table, and a checklist. Then stop. List only the decisions still missing.
Why it is betterIt separates defining the machine from running it, and the final instruction makes Codex surface genuine gaps instead of quietly inventing business logic to fill them.
Then ask Ask: which of these decisions could two different people reasonably answer differently? Resolve those yourself before freezing the blueprint.
The mistake it avoidsSkipping straight to a build request, which leaves every branching decision — what counts as a failure, who approves what — inside the model's assumptions.
Build Brief, generalized · Prompt library p. 11
P2 · Name every station and handoff
Any time a blueprint uses a verb like "analyze," "check," or "send" without naming the exact object crossing the arrow.
Weak versionJust have it analyze the data and pass it along.
Improved version · P2For every arrow in the blueprint, name the exact object crossing it — not "the result" or "the analysis," but the specific file, table, or field. Give every station a stable ID (S1, S2, and so on) and label its pattern (chain, router, parallel lane, evaluator, optimizer).
Why it is betterA named handoff is checkable — a second person could look at S2's output and know exactly what S3 is supposed to receive. "The result" is not an object; it's a placeholder for one.
Then ask Pick one arrow at random and ask: could someone else run this station using only what's written here?
The mistake it avoidsAccepting a diagram that reads clearly but hides which exact file, field, or table actually moves between stations.
Vague verbs become named objects · Prompt library pp. 11-12
P3 · Audit the blueprint before running it
After a blueprint is frozen and before the first run — ideally in a fresh context so the checker isn't grading its own design.
Weak versionThis looks fine, let's just try running it and see what happens.
Improved version · P3WORKFLOW AUDIT MODE — review only; do not execute or rewrite yet. Compare the blueprint against my Build Brief and decisions. Check every required station, handoff, decision point, fail path, loop stop rule, human escalation, and approval gate. Return a PASS / FAIL table with evidence for each row. Overall PASS only if every check passes.
Why it is betterAuditing the plan catches a misplaced approval gate before it ever touches real data — running a flawed blueprint to "see what happens" means the first real run is also the first real test.
Then ask If anything fails, revise only the failed logic and rerun the full audit rather than patching around it.
The mistake it avoidsTreating a plan that reads well as a plan that was checked. Clarity and correctness are not the same thing.
The checker grades the plan, not just the draft · Prompt library p. 12
P4 · Separate the run from the redesign
Any time you're about to trigger an approved workflow on real data.
Weak versionGo ahead and run it, and change anything that doesn't look right along the way.
Improved version · P4RUN MODE — execute one human-triggered run of the approved workflow. Do not redesign it. Use the approved station IDs, handoffs, and stop conditions exactly as audited. If something needs to change, stop and flag it — don't silently adjust the logic mid-run.
Why it is better"Do not redesign it" keeps the run honest to what was actually audited — a workflow that quietly rewrites its own rules while running was never really approved.
Then ask If Codex proposes a mid-run change, treat that as a new Build Brief revision, not an in-flight fix.
The mistake it avoidsLetting a run and a redesign happen in the same breath, so nobody can say which version of the logic actually produced the output.
RUN MODE discipline · Prompt library pp. 12-13
P5 · Send missing evidence to a human, not a loop
Whenever a checker fails a draft — first sort out whether the cause is missing evidence or fixable wording.
Weak versionJust keep trying until it passes.
Improved version · P5If the failure is a missing source, an unreadable value, or a business decision only I can make, route it to Human Review instead of another revision round. Only send genuinely fixable writing or structure failures back through the maker/checker loop, and cap that loop at three rounds.
Why it is betterA revision can fix a sentence; it cannot manufacture evidence that was never in the source. Sorting failures into the right branch prevents a real gap from being disguised as a wording problem.
Then ask After any BLOCKED result, confirm the block was a genuine evidence gap and not a fixable issue that got mis-routed.
The mistake it avoidsRunning the loop until something passes, which quietly turns "we don't know" into a confident-sounding number nobody can trace.
Evidence gaps vs. fixable failures · Prompt library p. 13
E1 · E2 · E3 · E4
Optional extension — guardrails for the workflow
Use these only when you catch Codex — or yourself — slipping.
E1 · Guardrail — no execute in Design Mode
When Codex runs a script, writes a file, or takes any action while you're still declaring the Build Brief.
Weak versionIt's fine, just go ahead and get started on it.
Improved version · E1We are still in DESIGN MODE. Do not execute the workflow, run scripts, or write to any local file or connected app until I explicitly write RUN MODE. Show me only the diagram, table, and checklist.
Why it is betterIt re-establishes the design/run boundary as a standing rule, so a helpful-seeming shortcut doesn't quietly become the first unaudited run.
Then ask If Codex already ran something, ask exactly what it touched before continuing — treat that as real evidence, not a hypothetical.
The mistake it avoidsLetting "this looks straightforward" convince you to skip the audit step because the plan seems obviously fine.
Optional extension / auto-execute · Prompt library p. 14
E2 · Guardrail — no invented schedule
When Codex proposes watching for events, running on a timer, or triggering itself instead of waiting for you to say RUN MODE.
Weak versionSure, just have it check every Friday automatically.
Improved version · E2This workflow is human-triggered only. Do not propose, configure, or simulate a schedule, a watcher, or a self-trigger. The run begins only when I write RUN MODE. If recurring automation is something I want, that decision belongs to a later module — not this one.
Why it is betterIt keeps the Module 4 boundary intact: designing a repeatable workflow is not the same as deploying an autonomous one, and blurring them here creates automation nobody explicitly approved.
Then ask Ask Codex to confirm, in its own words, what specifically starts this workflow — the answer should be "you, by writing RUN MODE."
The mistake it avoidsTreating "repeatable" and "automatic" as the same thing. A workflow can be reusable every Friday without being allowed to start itself.
Optional extension / autonomous triggers · Prompt library pp. 14-15
E3 · Guardrail — no loop for missing evidence
When Codex sends a missing-source or unreadable-value failure back through the maker/checker loop instead of routing it to Human Review.
Weak versionJust keep revising until the number shows up.
Improved version · E3A missing source, an unreadable value, or a business decision may not be resolved by revision. Route it to Human Review and stop. Tell me exactly what's missing and what you need from me to continue.
Why it is betterIt draws a hard line between a wording problem, which revision can fix, and an evidence problem, which no amount of rewriting can fix — keeping a real gap from disappearing into a confident-looking draft.
Then ask Ask which specific source or field is missing, and confirm it's genuinely absent rather than just phrased unclearly.
The mistake it avoidsConfusing persistence with progress — running another round when the actual problem was never a wording issue.
Optional extension / evidence gaps · Prompt library p. 15
E4 · Guardrail — no delivery without approval
When Codex saves a file, drafts a message, or creates a calendar item before showing you the exact action and getting your confirmation.
Weak versionJust take care of the whole delivery, I trust you.
Improved version · E4Do not save, send, or create anything without first showing me the exact action — file name, message content, or event details — and waiting for my explicit approval. This applies to every write across every connected tool.
Why it is betterIt re-establishes the delivery gate as a standing rule for the rest of the session, not just for the first request, so a smooth run doesn't quietly erode into unattended writes.
Then ask After approving, ask Codex to show the tool's own confirmation that the action actually completed — not just its claim that it did.
The mistake it avoidsLetting convenience erode the approval step after a few clean rounds in a row.
Optional extension / unapproved writes · Prompt library pp. 15-16
End-of-module checklist
The library closes with what you should have produced and saved before moving on.
| Deliverable | What to check |
|---|---|
| Workflow Folder | A local folder holding your real recurring-task sources: raw data, supporting evidence, goals, audit rules, and output examples. |
| Frozen Blueprint | A workflow diagram, documentation table, and assembly checklist with stable station IDs and every handoff named precisely. |
| Workflow Audit | A PASS / FAIL table checking the blueprint against your Build Brief, run in a fresh or separate checker context. |
| Run Log | Station | Input | Output | Verdict | Attempt | Human action for one complete, human-triggered run. |
| Evidence Branch | At least one item correctly routed to Human Review instead of the revise loop, or a clean pass showing why none was needed. |
| Delivery Approval | A saved output file, a drafted (unsent) message, and any reminder — each shown and approved before it became real. |