Backend · Skill
Test an LLM feature with an eval set
test-llm-app-outputs
Sets up a small eval for an AI feature, using a fixed list of inputs with expected answers, a few automatic scores, and an LLM judge for the rest. Use when the user wants to measure output quality, compare two prompts with a judge, or catch a regression before release.
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/test-llm-app-outputs/raw' -o ~/'.claude/skills/test-llm-app-outputs/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/test-llm-app-outputs/files/LICENSE.txt' -o ~/'.claude/skills/test-llm-app-outputs/LICENSE.txt'Cursor (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/test-llm-app-outputs/raw' -o '.cursor/skills/test-llm-app-outputs/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/test-llm-app-outputs/files/LICENSE.txt' -o '.cursor/skills/test-llm-app-outputs/LICENSE.txt'Codex and other Agent Skills tools (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/test-llm-app-outputs/raw' -o '.agents/skills/test-llm-app-outputs/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/test-llm-app-outputs/files/LICENSE.txt' -o '.agents/skills/test-llm-app-outputs/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"
}
}
}A demo chat is not a test. Freeze a list of inputs, score the outputs, and keep the scores so a later prompt change cannot quietly get worse.
When to use
- You need to know if an AI feature still answers well.
- You want to compare two prompts or two models on the same cases.
- A change should fail when quality drops.
When not to use
- You still need to build the chat route. Use build-ai-chatbot-api-route.
- You still need retrieval over your docs. Use build-rag-search-over-docs.
- You want a normal unit test of your own code. Use the test skill for that stack.
Steps
- Write 20 to 50 cases in a file your repo already stores. Each case has an input, an expected answer when one exists, and a tag such as happy, refusal or edge.
- Run the feature on every case. Save the output beside the input. Do not keep only the pretty ones.
- Score the easy cases by exact match. A label, a number or a short fact can be compared to the expected answer.
- For prose, pick one score that fits the task. Word overlap fits a summary or a translation. A short rubric fits an open answer.
- Use an LLM judge only for what the score cannot see. Pass the input, the output, the rubric and the expected answer if you have one. Ask for a number and one reason. Prefer a judge that is not the model under test.
- Keep the expected answers away from the feature. It must not see them.
- Save the run. Next time, fail the check when a tracked score falls past a line you chose.
- Read the worst cases yourself before you change the prompt.
Gotchas
- A judge that shares the feature's prompt will praise its own style. Spot-check a handful of scores.
- Do not put API keys, passwords or customer personal data in the case file or the judge prompt.
- A high overlap score can hide a wrong fact. Read the failures.
- Famous trivia questions will not catch your product bugs. Use cases from real traffic, with personal data removed.
Portability
Works with any model provider. Exact match and a small judge prompt do not need one vendor SDK. If you use a hosted eval product, keep the same cases so the scores stay comparable.
Done when
- The case file is in version control, with expected answers where they exist.
- One command prints the scores and the worst cases.
- A drop past your line fails the check.
- No secret or personal data is in the cases.
Example prompt
"Add an eval set for this support-reply feature. Include expected answers for the factual cases and an LLM judge for tone. Fail the check if the score drops."
---
Adapted from "llm-evaluation" in wshobson/agents (MIT, Copyright (c) 2024 Seth Hobson). See LICENSE.txt.
Bundled files
Licence
Adapted from Seth Hobson (wshobson/agents, llm-evaluation) (Copyright (c) 2024 Seth Hobson), MIT License. Adapted by TheSkillVault on 2026-11-10: the metric catalogue and the sample suite class were replaced with a short case-file workflow and a plain judge prompt; added privacy notes, gotchas and done-when. Not the original file.
Licence: MIT License. Attribution when you reuse it: Based on work by Seth Hobson (wshobson/agents, llm-evaluation) (Copyright (c) 2024 Seth Hobson, MIT License), https://github.com/wshobson/agents/tree/7e2fb559cf4b824b27f1fec49fe88f7511066d26/plugins/llm-application-dev/skills/llm-evaluation; adapted by TheSkillVault, https://theskillvault.ai