Skip to main content

Workflow

Harden a prompt before you reuse it

Turn a prompt that worked once into a template with inputs, an output shape, an example and a check you can rerun.

Inputs

Current prompt
Paste it exactly.
Model
The one you will actually run it on.
Bad output sample
One real miss.
What good looks like
One sentence.

Context

A template that works once is not a template. You need a check you can run again.

Constraints

  • Keep the task the same.
  • Add inputs, constraints, output shape and one example.
  • No hype words.

Output

  1. Revised prompt
  2. Change log
  3. Pass/fail checks
  4. One worked example

How to judge it

Run it 3 times. If 2 of 3 miss the shape, it failed.

Worked example

Input

PROMPT: Write a blog post. PROBLEM: too long, no sources. MODEL: whatever you pay for.

Output

Revised: Write a blog post about [TOPIC] for [READER]. Max 700 words. Use only the sources in [SOURCES] and link each claim to one. Return a title, 3 to 5 sections with H2s, and a source list.
Change log: added reader, length cap, source rule, output shape.
Checks: under 700 words; every claim has a link from SOURCES; has a source list.

What it will not do

  • Won't make a weak model smart or verify facts. You still check the receipts.

The prompt

Task: Harden a prompt before you reuse it.
Context: A template that works once is not a template. You need a check you can run again.
Inputs:
- Current prompt: [CURRENT PROMPT]
- Model: [MODEL]
- Bad output sample: [BAD OUTPUT SAMPLE]
- What good looks like: [WHAT GOOD LOOKS LIKE]
Constraints:
- Keep the task the same.
- Add inputs, constraints, output shape and one example.
- No hype words.
Return, in this order:
1. Revised prompt
2. Change log
3. Pass/fail checks
4. One worked example
Before you answer, check: Run it 3 times. If 2 of 3 miss the shape, it failed.

Replaces these old prompts