llm-testing
Skill1 starsChanged 53 days agoMITView on GitHub
Use when testing LLM-powered features — prompt testing, hallucination/faithfulness checks, RAG evaluation, agent/tool-use testing, prompt injection and LLM security, regression testing across model/prompt versions, and cost/latency/token budget testing.
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Eyadkelleh/awesome-claude-skills-securitytheir own version, first seen Oct 8, 2026
- mejbaurbahar/fagunedited, first seen Jul 5, 2026
- Eyadkelleh/awesome-skills-securitytheir own version, first seen Jun 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- mejbaurbahar/fagun★ 193% same
Wrote their own version · 2
- Eyadkelleh/awesome-claude-skills-security★ 388same name
- Eyadkelleh/awesome-skills-security★ 384same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository98 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 42crunch-api-security-testingSkill
- a-b-testingSkill
- acceptance-testingSkill
- accessibility-testingSkill
- ai-agent-evaluationSkill
- ai-code-securitySkill
- ai-ml-testingSkill
- analytics-tracking-testingSkill
- api-testingSkill
- authn-authz-testingSkill
- autonomous-qa-orchestrationSkill
- bdd-gherkin-testingSkill
- blockchain-smart-contract-testingSkill
- bug-reportingSkill
- chaos-resilience-testingSkill
- chatbot-voice-agent-testingSkill
- cicd-testingSkill
- cli-testingSkill
- cloud-infrastructure-testingSkill
- code-coverage-analysisSkill
- compatibility-testingSkill
- compliance-testingSkill
- concurrency-race-condition-testingSkill
- configuration-feature-flag-testingSkill
- contract-testingSkill
- cross-browser-testingSkill
- database-testingSkill
- data-migration-testingSkill
- data-pipeline-etl-testingSkill
- date-time-timezone-testingSkill
- desktop-app-testingSkill
- disaster-recovery-backup-testingSkill
- e2e-testingSkill
- email-notification-testingSkill
- event-driven-messaging-testingSkill
- exploratory-testingSkill
- flaky-test-managementSkill
- functional-testingSkill
- fuzz-testingSkill
- game-testingSkill
- graphql-testingSkill
- iac-container-security-testingSkill
- installation-upgrade-testingSkill
- integration-testingSkill
- iot-embedded-testingSkill
- llm-security-auditSkill
- localization-testingSkill
- manual-testingSkill
- mcp-testingSkill
- memory-leak-resource-testingSkill
- microservices-testingSkill
- mobile-testingSkill
- mutation-testingSkill
- observability-testingSkill
- payment-ecommerce-testingSkill
- performance-testingSkill
- production-monitoring-synthetic-testingSkill
- property-based-testingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
LLM-as-judge: use a second LLM call to score the output against a rubric (relevance, correctness, tone) when no single reference answer …
- Distinctive: line 33
Chunking/embedding sensitivity: test whether chunk boundaries split relevant information awkwardly, causing retrieval misses.
- Distinctive: line 34
Stale/conflicting sources: if the corpus has outdated or contradictory documents, does the system surface the most authoritative/recent …
- Distinctive: line 38
Error recovery: when a tool call fails or returns unexpected output, does the agent retry sensibly, ask for clarification, or does it …
- Distinctive: line 40
Multi-agent handoff: if multiple agents/subagents collaborate, verify context is correctly passed at handoff and no information is silently …
- Distinctive: line 43
Test with adversarial inputs attempting to override system instructions ("ignore previous instructions...") embedded in user input and in …
- Distinctive: line 44
Verify the model doesn't leak its system prompt or internal tool definitions when asked directly or indirectly.
- Distinctive: line 45
Verify untrusted external content (search results, fetched pages, uploaded documents) is treated as data, never as instructions — this …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LLM Testing
This machine already has MLflow tooling for parts of this
For trace instrumentation and scored evaluation runs, use an evaluation toolkit such as MLflow, promptfoo, DeepEval or LangSmith (see ai-agent-evaluation and rag-evaluation-testing). This skill covers the testing methodology; those tools cover the execution mechanics.
What's fundamentally different from classical software testing
Non-determinism (same input can produce different output) and no single "correct" output for open-ended generation — you're testing distributions and properties, not exact-match assertions, most of the time.
Evaluation approaches
- Golden dataset with reference answers: for tasks with a knowable correct answer (extraction, classification via LLM, structured output), compare against references using exact match, semantic similarity (embedding cosine similarity), or a rubric.
- LLM-as-judge: use a second LLM call to score the output against a rubric (relevance, correctness, tone) when no single reference answer exists — but validate the judge itself against human-labeled examples periodically, since a miscalibrated judge silently produces meaningless scores. See
mlflow:build-a-scorer. - Human evaluation: still the ground truth for subjective quality — sample a subset for human review even when automated scoring runs at scale, to catch judge drift.
Core properties to test
- Faithfulness/groundedness (especially for RAG): does the answer only state what's actually supported by the retrieved/provided context, or does it add unsupported claims? Test by deliberately checking claims against source documents, not just "does it sound plausible."
- Hallucination: probe with questions where the honest answer is "I don't know" or "not in the provided context" — a model that confidently fabricates rather than admitting uncertainty is a specific, testable failure mode.
- Consistency: same/paraphrased input should produce semantically consistent output across repeated calls — flag if answers meaningfully contradict each other across runs on the same question.
- Instruction adherence: does it actually follow format constraints (JSON schema, length limits, required fields)? Validate programmatically (schema validation), don't eyeball it.
- Context handling / long-context: for long-context use cases, test "needle in a haystack" style — put a specific fact at various positions in a long context and confirm retrieval doesn't degrade in the middle (a documented failure mode across many models).
RAG-specific testing
- Retrieval quality: are the retrieved chunks actually relevant to the query (precision), and does retrieval find the right chunk when it exists (recall)? Test retrieval in isolation from generation — a good generator can't fix bad retrieval.
- Chunking/embedding sensitivity: test whether chunk boundaries split relevant information awkwardly, causing retrieval misses.
- Stale/conflicting sources: if the corpus has outdated or contradictory documents, does the system surface the most authoritative/recent one, or does it get confused?
Agent / tool-use testing
- Tool selection correctness: given a task, does the agent call the right tool with correctly-formed arguments? Test against a set of tasks with known-correct tool call sequences.
- Error recovery: when a tool call fails or returns unexpected output, does the agent retry sensibly, ask for clarification, or does it hallucinate a fake result and proceed?
- Multi-step planning: for tasks requiring multiple tool calls, verify the agent doesn't skip a required step or loop unproductively (see repetition/looping as a real failure mode, not just a hypothetical).
- Multi-agent handoff: if multiple agents/subagents collaborate, verify context is correctly passed at handoff and no information is silently dropped.
Prompt injection & LLM security
- Test with adversarial inputs attempting to override system instructions ("ignore previous instructions...") embedded in user input and in any external content the model reads (documents, web pages, tool results) — injection via untrusted retrieved content is a distinct, often-overlooked attack surface from direct user-prompt injection.
- Verify the model doesn't leak its system prompt or internal tool definitions when asked directly or indirectly.
- Verify untrusted external content (search results, fetched pages, uploaded documents) is treated as data, never as instructions — this should be an explicit design property, testable by trying to get injected content to trigger an unintended action.
- See [[security-testing]] for the broader security-testing discipline this sits under.
Regression testing across prompt/model versions
- Maintain a fixed eval set and re-run on every prompt change or model version bump — a "small prompt tweak" can silently regress an unrelated capability.
- Track cost and latency alongside quality — a prompt/model change that improves quality 2% but doubles token usage or latency is a real tradeoff to surface explicitly, not silently accept.
Tools
- promptfoo — prompt regression testing/comparison across models and prompt versions, CLI-friendly.
- DeepEval / Ragas — RAG and LLM output evaluation metrics (faithfulness, answer relevancy, context precision/recall).
- LangSmith — tracing + eval dataset management for LangChain-based apps.
- MLflow (already set up here) — tracing, evaluation runs, and scorer definitions; use the local
mlflowskills directly.
Reporting
Report failures with the exact prompt, model/version, retrieved context (for RAG), and the specific property violated (hallucination, off-format, injection-succeeded) — see [[bug-reporting]]. Treat a successful prompt-injection or system-prompt leak as a Critical security finding, not a quality nit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

