testing-llm-features

Builds offline eval suites with golden cases, scoring strategies, and CI regression gates for LLM-powered features.

113|17|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/jaktestowac/awesome-copilot-for-testers --skill testing-llm-features-jaktestowac
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: testing-llm-features
Source: https://github.com/jaktestowac/awesome-copilot-for-testers/tree/main/plugins/testing-llm-features/skills/testing-llm-features
Command: npx skills add https://github.com/jaktestowac/awesome-copilot-for-testers --skill testing-llm-features-jaktestowac

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires promptfoo, vitest, and includes references (resource) components.

What problem does it solve? LLM-powered features produce non-deterministic output, so prompt, model, or retrieval changes can silently degrade quality while every normal test stays green. This Skill replaces eyeballing output with an automated eval suite that catches regressions before they ship. ## Core Features & Use Cases - Eval Case Design: Builds golden, edge, negative, regression, and adversarial case sets per prompt template, with justified expectations and per-capability tagging. - Scoring Strategies: Selects the cheapest assertion that can actually fail, from schema validation and deterministic checks up to rubric-based LLM judges validated against human labels. - CI Regression Gating: Implements the suite in promptfoo or Vitest with pinned model versions, frozen retrieval snapshots, committed baselines, and a gate that blocks on cases that used to pass. - Use Case: A team upgrading a model version for a ticket-summarization feature runs the suite in CI and catches an 11-point drop in summary faithfulness plus an invented owner name before merging. ## Quick Start Use the testing-llm-features skill to build an eval suite with golden cases and a CI regression gate for my prompt-based feature.

Frequently Asked Questions about testing-llm-features

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test an LLM feature with non-deterministic output?▼

Build an eval suite with fixed golden cases, pinned model versions, temperature 0, and frozen retrieval snapshots so runs are reproducible. Score each case with the cheapest assertion that can fail, starting with schema validation and deterministic checks before LLM judges.

promptfoo vs Vitest for LLM evals, which should I use?▼

Use promptfoo when the suite will grow and needs matrix runs across prompts and models with built-in assertion types. Use Vitest when evals must share fixtures and helpers with the application, or when the team will not adopt another tool.

How do I gate CI on LLM output regressions?▼

Commit a baseline result file and compare each run against it, blocking only when a case that previously passed now fails. Measure the noise band by running the unchanged suite three times so the gate does not fire on ordinary variance.

When should I use an LLM-as-judge for eval scoring?▼

Use an LLM judge only for genuinely subjective properties like tone or faithfulness, with a written rubric, a different model than the one under test, and validation against 30-50 human-labeled outputs. Below roughly 80% agreement with humans, the judge is noise.

Why does my RAG eval fail after prompt changes?▼

The failure may be in retrieval rather than generation, since a RAG answer is wrong when the right document was never retrieved. Score retrieval independently by snapshotting documents into fixtures so you do not tune the prompt to fix an indexing problem.

What are the limitations of embedding similarity for eval scoring?▼

Embedding similarity measures semantic closeness, not correctness, so a fluent but wrong answer can score high against a right one. Negation is nearly invisible to embeddings, so use it only as a smoke check, never as the sole assertion on factual claims.