ai-system-testing

仓库创建 2026年3月24日最近提交 1 个月前SkillHot 收录 2 天前
▸ 精选理由

专为 AI 功能独有的非确定性与注入攻击等故障模式设计的测试工具箱。

▸ 风险提示

可能产生大量模型调用成本并涉及敏感数据处理

这个 Skill 做什么

针对 AI/LLM 功能的系统化测试框架,涵盖提示回归、幻觉检测与安全红队策略。

帮你给产品里的 AI/LLM 功能做一套系统化的测试,检验提示回归、响应质量、tool-call 行为、幻觉(hallucination)和 RAG 归因等问题。上线新模型、改 prompt、怀疑模型静默降级或要做红队/安全扫描时会用。特点是考虑非确定性输出、支持评估框架和红队注入场景,还带有对不可信内容的检测能力,方便把 AI 特有的失败模式找出来并回归测试。

▸ 展开 SKILL.md 英文原文

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 testi

开发编程AI 测试提示回归幻觉检测安全通用
47
Stars
10
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/petrkindlmann/qa-skills/main/skills/ai-system-testing/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/petrkindlmann/qa-skills/main/skills/ai-system-testing/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
<objective>
AI features fail differently from deterministic software. The same input produces different outputs, correctness is subjective, and failure modes include hallucination, prompt injection, and silent quality decay. A chatbot that confidently cites a fabricated URL passes every `toBeDefined()` check. This skill covers how to test AI features rigorously despite nondeterminism: versioned prompts, eval suites scored against golden datasets, statistical and property-based assertions, tool-call validation, grounding checks, and red-team safety scans.
</objective>

---

## Quick Route

| Situation | Go to |
|-----------|-------|
| Prompt changed, need to catch quality regressions | Prompt
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有