Coding prompts · Prompt

Review one AI answer (prompt)

review-ai-output-prompt

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.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-output-prompt/raw' -o ~/'.claude/skills/review-ai-output-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-output-prompt/files/LICENSE.txt' -o ~/'.claude/skills/review-ai-output-prompt/LICENSE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-output-prompt/raw' -o '.cursor/skills/review-ai-output-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-output-prompt/files/LICENSE.txt' -o '.cursor/skills/review-ai-output-prompt/LICENSE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-output-prompt/raw' -o '.agents/skills/review-ai-output-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/review-ai-output-prompt/files/LICENSE.txt' -o '.agents/skills/review-ai-output-prompt/LICENSE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

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

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.

Bundled files

Licence

Adapted from Daniel Miessler and Fabric contributors (judge_output pattern) (Copyright (c) 2012-2024 Scott Chacon and others), MIT License. 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.

Licence: MIT License. Attribution when you reuse it: Based on work by Daniel Miessler and Fabric contributors (judge_output pattern) (Copyright (c) 2012-2024 Scott Chacon and others, MIT License), https://github.com/danielmiessler/Fabric/blob/8ce0909d8622a61b6aaf539d467ba31bb7e0b6dd/data/patterns/judge_output/system.md; adapted by TheSkillVault, https://theskillvault.ai