---
name: review-ai-output-prompt
description: A prompt that judges one model answer against the request, writes a critique first, then marks the answer pass or fail. Use when the user wants a verdict on a model reply, a generated query, or asks whether that AI output actually did the job.
license: MIT
metadata:
  category: coding-prompts
  tags: "llm,verification"
  author: johnny-bravo
  version: "1.0"
  updated: "2026-11-11"
  status: published
  aliases: "judge output, pass or fail, critique a model answer"
  source_url: "https://github.com/danielmiessler/Fabric/blob/8ce0909d8622a61b6aaf539d467ba31bb7e0b6dd/data/patterns/judge_output/system.md"
  source_license: MIT
  copyright: "Copyright (c) 2012-2024 Scott Chacon and others"
  original_author: "Daniel Miessler and Fabric contributors (judge_output pattern)"
  modified: "Converted by TheSkillVault into a fill-in prompt: kept critique-then-verdict for one output, generalised past the Honeycomb query examples, dropped the fixed query-language essay, added steps and done-when."
  imported_on: "2026-11-11"
---

# Review one AI answer (prompt)

This prompt scores a single answer. It does not build a test suite.

## When to use
- You have one model reply and want a pass or fail.
- A generated query, command or draft might not match the request.
- You want the critique written before the verdict.

## When not to use
- You need a saved set of cases and a score over time. Use test-llm-app-outputs.
- You want the code in a repo reviewed. Use review-code-prompt.

## Steps
1. Paste the request you gave the model.
2. Paste the answer it produced. Remove secrets first.
3. Add any rules the answer had to follow.
4. Read the critique. Trust the verdict only if the critique quotes the miss.

## Prompt
```text
Judge this one output. Do not rewrite it.

REQUEST:
{{REQUEST}}

OUTPUT:
{{OUTPUT}}

RULES (optional):
{{RULES}}

First write a critique in plain sentences. Say what the request asked for, what the output did, and any miss. Quote the line that fails.

Then give a verdict on its own line: PASS or FAIL.
- PASS means the output does the job the request asked for.
- FAIL means a required part is missing or wrong.

If a rule was not stated, do not invent one. Say "not specified" instead.
```

## How to adapt
- A generated database query? Add the schema or the language notes under RULES.
- You only want a yes or no? Ask for the verdict line first, then one sentence.

## Gotchas
- Do not paste API keys, passwords, customer data or private URLs into a public AI.
- A confident critique can still be wrong. Check the quoted line yourself.
- One verdict is not a regression suite. For that, keep a fixed list of cases.

## Portability
Works with any AI chat and any kind of output. No tool lock-in.

## Done when
- The critique comes before the verdict.
- A FAIL quotes the part that missed the request.

## Example prompt
"Judge this generated SQL against my question. Critique first, then PASS or FAIL."

---
Converted from the "judge_output" pattern in danielmiessler/Fabric (MIT, Copyright (c) 2012-2024 Scott Chacon and others). See LICENSE.txt.
