ai-system-testing
БесплатноЗапускает вложенные скриптыНе проверенTest AI/LLM features that ship in your product. Covers prompt regression testing, response quality evaluation, tool-call validation, hallucination and RAG…
от petrkindlmann★ 317 звёзд на GitHubОб этом скилле
Quick Route
| Situation | Go to |
|---|---|
| Prompt changed, need to catch quality regressions | Prompt Regression Testing → references/prompt-regression.md |
| Run the same prompt across providers/models and compare | Cross-Provider Regression → references/tooling-evals.md |
| Score open-ended output (relevance/completeness/safety) | Response Quality Evaluation → references/eval-framework.md |
| Agent calls tools/functions — verify selection and args | Tool-Call Validation → references/tooling-evals.md |
| Output is nondeterministic and exact-match keeps flaking | Nondeterminism Strategies |
| AI states facts / cites sources / runs over RAG | Hallucination & Grounding |
| Pre-launch jailbreak, injection, PII, system-prompt leak | AI Safety Testing → references/tooling-evals.md |
| An AGENT (test harness, coding agent) reads tool output / RAG / scan reports / logs | Agent-as-Target Injection → references/injection-detector.md |
Discovery Questions
Check .agents/qa-project-context.md first. If it exists, use it as context and skip questions already answered there.
AI features under test:
- What AI features exist? (Chat, summarization, classification, code gen, recommendations, search) — determinism expectations differ per type.
- Which provider/model? (Anthropic, OpenAI, Google, open-source) — drives the eval harness and red-team backend.
- Are prompts hardcoded, template-based, or dynamically constructed? — only versioned prompts are regression-testable.
- Is RAG involved, and what is the knowledge source? — RAG needs grounding tests, not just output checks.
Determinism requirements:
- Which outputs must be deterministic (classification, extraction) vs. creative (chat)? — decides exact-match vs. property vs. statistical assertions.
- What temperature runs in production? — test there, not at 0 "to make tests pass."
- Can the output be constrained to a JSON schema? — schema-constrained extraction is testable with a plain validator, no LLM judge.
Quality requirements:
- How is quality defined? (Accuracy, relevance, completeness, safety, tone) — these become eval metrics with weights and thresholds.
- Is there a golden dataset of inputs and acceptable outputs? — the anchor for every regression check.
- Who evaluates quality today? (Humans, metrics, nobody) — if an LLM judges, it must be calibrated against humans.
Safety requirements:
- Does the AI process user-generated input? — prompt-injection surface.
- Are there content-policy or PII constraints, or a regulated domain? — drives the red-team probe set.
Core Principles
Nondeterminism is inherent, not a bug. LLMs are stochastic; the same prompt yields different outputs across runs. Assert on properties and boundaries, never exact strings.
expect(output).toBe("The answer is 42")breaks the next run when the model says "42 is the answer."Test properties, not exact outputs. A good assertion asks: does the response contain the required information, stay in the length range, exclude prohibited content, match the expected format? When you can constrain output to a JSON schema, do that and validate with a plain schema validator — it converts a statistical check into a deterministic one.
Evals are the test suite for AI. An eval defines inputs, runs them through the system, and scores outputs against quality criteria. Invest in evals the way you invest in test infrastructure: version them, run them in CI, gate merges on them.
Safety testing is non-negotiable. AI can produce harmful content, leak the system prompt, echo PII, or be steered by adversarial input. Safety tests are the security tests of AI features — run them on every prompt change, and red-team before launch.
A judge you have not calibrated proves nothing. LLM-as-judge scales evaluation, but a judge that disagrees with humans just launders a wrong answer. Measure judge-vs-human agreement on a labeled held-out set and set a minimum bar before trusting it (see Response Quality Evaluation).
Tooling
Pick the layer that fits the job. Don't reach for hand-rolled TS unless none of these match.
| Tool | Best for | Notes |
|---|---|---|
| Promptfoo | Prompt regression, A/B + cross-provider tests, redteam scans | OSS Apache-2.0 CLI; YAML-defined suites; MCP target support. Acquired by OpenAI (Mar 2026) but st |
Установить ai-system-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ai-system-testing?
Test AI/LLM features that ship in your product. Covers prompt regression testing, response quality evaluation, tool-call validation, hallucination and RAG grounding checks, nondeterministic-output strategies, red-team/safety scans, eval frameworks, and agent-as-target injection (indirect injection via tool output / RAG / scan reports, self-propagating payloads, data exfiltration via an agent) plus a bundled detector for untrusted content. Use when: "test our LLM feature," "prompt regression test," "eval framework," "hallucination test," "RAG grounding," "nondeterministic output," "AI feature testing," "red-team our chatbot," "indirect prompt injection," "agent reading untrusted tool output," "production AI quality." Not for: using AI to generate your own test code — use ai-test-generation. Not for: classifying CI failures with AI — use ai-bug-triage. Not for: EU AI Act / GDPR conformity of an AI feature — use compliance-testing. Not for: canary/flag rollout of an AI feature — use testing-in-production. Related: ai-test-generation, ai-qa-review, api-testing, compliance-testing, security-testing, risk-based-testing, test-data-management.
Как установить скилл ai-system-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-system-testing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic