Skip to content
Back to skills

Build Prompt Test Set

ASecurity

Builds a hand-run test set for a prompt with happy, edge and negative inputs, expected behaviour and checkable pass criteria per case, and a scoring sheet to compare prompt versions side by side.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill build-prompt-test-set --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Prompt Test Set?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Prompt Test Set
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-build-prompt-test-set/badge)](https://www.skillsdirectory.com/skills/hermes-hq-build-prompt-test-set)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build-prompt-test-set
description: Builds a hand-run test set for a prompt with happy, edge and negative inputs, expected behaviour and checkable pass criteria per case, and a scoring sheet to compare prompt versions side by side.
license: CC0-1.0
arguments:
  - prompt
  - real_inputs
  - size
argument-hint: <prompt> [real_inputs] [size]
disable-model-invocation: true
metadata:
  version: 1.0.0
  kind: prompt
  category: prompt-engineering
  source: https://hermes-ide.com/prompts/build-prompt-test-set
  catalog: 2026.1014.1
---

# Build a test set for a prompt

## Inputs

- `prompt` (required): The prompt to test, with its placeholders, plus a line on who uses it and what a good result is if that is not obvious.
- `real_inputs` (optional): Optional: real inputs the prompt has received, especially ones it handled badly. Remove personal data first.
- `size` (optional; default: 12): How many test cases to write. 8 to 20 is a practical range for manual runs.

Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.

<context>
Most prompt changes are judged by running one or two inputs and eyeballing the result, so a fix for one case silently breaks three others. A small fixed test set changes that: every version runs on the same inputs and is scored against the same written criteria. A useful set covers the common case (most of real traffic), edge cases (empty, very long, ambiguous, mixed-language or oddly formatted input, boundary values), and negative cases (input the prompt should refuse, redirect, or answer with "not enough information"). Each case needs an expected behaviour written before running, and a pass criterion someone else could check the same way: an exact match or pattern where possible, a short rubric where judgement is needed.
</context>

<task>
Build a test set of $size cases for this prompt.

<prompt>
$prompt
</prompt>
Only if real_inputs was provided: 
<real_inputs>
$real_inputs
</real_inputs>

1. If the prompt's purpose or expected output cannot be worked out, ask one question and stop.
2. List what the prompt must do: each requirement in it (format, length, content rules, refusal or ask rules, tone), numbered as R1, R2 and so on, plus implicit requirements a user would expect, labelled as implicit.
3. Plan coverage: about half happy-path cases spread across the realistic variety of inputs, about a third edge cases, and the rest negative cases. Make sure every requirement is exercised by at least one case.
4. Write each case with a full, realistic input (not a description of an input) for every placeholder. Base cases on the real inputs where given, varied rather than copied; mark synthetic ones.
5. For each case, write the expected behaviour and a pass criterion, choosing the cheapest reliable check: exact value, contains or does-not-contain, regex, length limit, valid JSON or schema, or a one-sentence rubric for a judge or human.
</task>

<constraints>
- Inputs must be complete and runnable as written. No "[insert long text here]"; if a long input is needed, write a realistic one or describe exactly how to build it, and flag it.
- Use fictional names, companies and data; no real personal data.
- Pass criteria must be specific to this prompt's requirements. Not "the output is good" or "the output is helpful".
- Do not test requirements the prompt does not have; note missing requirements you would add, separately, as suggestions.
- If $size is too small to cover every requirement, say which requirements are untested.
- The set is meant to be run by hand and scored in the sheet. If the prompt powers a product feature that needs automated graders, thresholds and CI gating, say so in one line and note that these cases can seed that suite.
</constraints>

<output_format>
## What it must do
Numbered requirements (R1…), with implicit ones labelled.
## Coverage
A small table: Type | Count | Requirements covered.
## Test cases
For each case: a heading with ID and short name, then Type, Requirements, Input (in a fenced block, one per placeholder), Expected behaviour, Pass criterion, Check type.
## Scoring sheet
A table with one row per case: ID | v1 pass? | v2 pass? | Notes, ready to copy into a spreadsheet.
## How to compare versions
Four or five bullets: same settings, several runs per case for variable outputs, compare pass counts per type, read every newly failing case, and do not adopt a version that breaks a negative case.
</output_format>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.