testing-llm

testing-llm is a skill for Claude Code, Codex from yonatangross/orchestkit. It costs 55 tokens per session (2,493 once invoked), scanned A, original, MIT.

A set of patterns for testing software that uses large language models, including fixed sample replies, output checks, and quality evaluations. It also covers tests for AI agents, which are programs that plan and act through several steps.

In plain words
What is it for?
Use it to mock model replies, validate structured results, measure AI output with DeepEval or RAGAS, and check agent workflows.
Why use it?
AI replies can change between runs and may not follow the required format, making tests unreliable or hard to run in continuous integration. These patterns help make checks repeatable and expose quality and timing problems.

Skill for Claude CodeCodex

Part of the ork plugin — 106 skills, 35 commands, 36 agents, 32 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yonatangross/orchestkit/testing-llm
Any agent
npx skills add yonatangross/orchestkit --skill testing-llm
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code, Codex.

Or install ork, the plugin that ships this one along with the rest of its 106 skills, 35 commands, 36 agents, 32 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing-llm

README.md
[![agentmods](https://agentmods.dev/badge/skills/yonatangross/orchestkit/testing-llm.svg)](https://agentmods.dev/skills/yonatangross/orchestkit/testing-llm)
Your own site
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/testing-llm"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/testing-llm.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.02493
Opus 5 $0.00028 $0.01247
Sonnet 5 $0.00011 $0.00499
Haiku 4.5 $0.00006 $0.00249

Measured today against content hash 001e87ede389, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

testing-llm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ork/skills/testing-llm/SKILL.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLM & AI Testing Patterns

Patterns and tools for testing LLM integrations, evaluating AI output quality, mocking responses for deterministic CI, and applying agentic test workflows (planner, generator, healer). Of that trio only the healer keeps a local reference here; the planner and generator stages belong to the testing-e2e skill.

Quick Reference

Area File Purpose
Rules rules/llm-evaluation.md DeepEval quality metrics, Pydantic schema validation, timeout testing
Rules rules/llm-mocking.md Mock LLM responses, VCR.py recording, custom request matchers
Reference references/ork-delta.md House rules the vendor docs do not carry: GEval and RAGAS API corrections, threshold direction, cassette path, golden-dataset and latency budgets
Reference references/healer-agent.md Auto-fixes failing tests (selectors, waits, dynamic content)
Checklist checklists/llm-test-checklist.md Complete LLM testing checklist (setup, coverage, CI/CD)

Upstream coverage (do not restate)

DeepEval, RAGAS, VCR.py and Playwright document themselves. This skill carries only the OrchestKit delta (references/ork-delta.md) plus the house subsets in rules/ and checklists/. Fetch the source below instead of expecting the material here.

Topic Source
Full DeepEval metric catalog and per-metric constructor arguments (the house threshold table and the two-metric quick start stay in this file, rules/llm-evaluation.md and checklists/llm-test-checklist.md) https://deepeval.com/docs/metrics-introduction
GEval custom criteria: evaluation_params, evaluation_steps, criteria (the house import correction stays in references/ork-delta.md) https://deepeval.com/docs/metrics-llm-evals
HallucinationMetric arguments (the house 0.3 ceiling and the inverted-direction warning stay in references/ork-delta.md) https://deepeval.com/docs/metrics-hallucination
RAGAS metric catalog (Faithfulness, LLMContextRecall, FactualCorrectness) https://docs.ragas.io/en/stable/concepts/metrics/available_metrics/
EvaluationDataset construction (the house note on the post-0.2 field names stays in references/ork-delta.md) https://docs.ragas.io/en/stable/concepts/components/eval_dataset/
VCR.py configuration keys (the house record-mode gate and header filters stay in rules/llm-mocking.md) https://vcrpy.readthedocs.io/en/latest/configuration.html
Playwright Planner and Generator agents, init-agents CLI and generated files (the house healer subset stays in references/healer-agent.md) https://playwright.dev/docs/test-agents
Playwright semantic locator ladder used by generated tests testing-e2e skill (rules/e2e-playwright.md) plus https://playwright.dev/docs/locators
Confidence intervals over metric score samples https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.t.html

Read the full file on GitHub · 244 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 244 lines · 55 tokens per session scan A 001e87ede389

Subscribe to this mod's changes

testing-llm is a skill published in the GitHub repository yonatangross/orchestkit (228 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 2,493 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

deepeval

Use when discussing or working with DeepEval (the python AI evaluation framework).

sammcj/agentic-coding · 19 tokens

ai-engineer

Builds production AI/ML systems — model training, fine-tuning, MLOps pipelines, model serving, evaluation frameworks, RAG optimization, and agent orchestration at scale. Use when the user asks to build, train, or deploy ML models, set up MLOps pipelines, optimize RAG systems, create inference endpoints, or design…

buiphucminhtam/forgewright · 78 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

pinkpixel-dev/skills-collection-1 · 47 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

marysatasselshaped667/skills-collection-1 · 47 tokens

data-quality-frameworks

Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.

wshobson/agents · 37 tokens

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens