agent-qa-authoring
它能做什么
这个工具可以帮你创建和管理 AI 智能体的测试。它能确保测试遵循正确的规则,并且可以稳定地运行。
适用场景
- ✓为 AI 智能体创建新测试时。
- ✓修改现有测试时。
- ✓在运行测试之前,检查它的编写是否正确时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-qa-authoring/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个测试,检查 AI 智能体能否正确回复问候语“Hello”。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会依据一套规则和参考资料来确保测试被正确创建。在保存或运行之前,它会检查所有必要字段是否齐全,以及标识符是否唯一。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent QA Authoring
Overview
Author Agent QA tests, suites, and hooks without inventing schema fields or identifiers. Prefer Agent QA's MCP tools, use the bundled contract reference for exact fields, and validate every definition before saving or running it.
When to Use
- Creating or editing an Agent QA test, suite, or hook.
- Validating Agent QA YAML or canonical IDs.
- Running a newly authored Agent QA definition through MCP or CLI.
- Investigating which Agent QA configuration fields or workspace patterns apply.
Preconditions and Approval Boundary
- Work only in a configured Agent QA workspace that the user has authorized.
- Inspect the requested scope before any create, update, delete, or test-run operation.
- Obtain explicit confirmation before deleting a definition or running a test that can change external application state.
- Keep credentials out of definitions and output; use the workspace's configured secret handling.
Workflow
- Discover the local surface with
agent_qa_discover. - Inspect active config with
agent_qa_get_config, especially targets, devices, providers, andservices.mcp. - Load
references/agent-qa-contracts.jsonwhen exact schema fields or ID contracts are needed. - Generate every new ID with Agent QA tooling:
- MCP:
agent_qa_generate_id - CLI fallback:
agent-qa ids generate <test|suite|hook|run|observation> - If neither surface is already installed, stop and ask the user to approve
an exact Agent QA installation. Do not fetch and execute the package at
runtime through
npxor another moving package reference.
- MCP:
- Never hand-write IDs. Validate existing IDs with
agent_qa_validate_idoragent-qa ids validate <type> <id> --json. - Validate definitions before saving:
- Tests:
agent_qa_validate_testoragent_qa_validate_definitionwithkind: "test" - Suites:
agent_qa_validate_suiteoragent_qa_validate_definitionwithkind: "suite" - Hooks:
agent_qa_validate_definitionwithkind: "hooks"
- Tests:
- Prefer MCP authoring mutations:
- Tests:
agent_qa_create_test,agent_qa_update_test,agent_qa_delete_test - Suites:
agent_qa_create_suite,agent_qa_update_suite,agent_qa_delete_suite - Hooks:
agent_qa_create_hook,agent_qa_update_hook,agent_qa_delete_hook
- Tests:
- Use CLI or YAML fallback only when MCP is unavailable. Keep file paths matched by
workspace.testMatchorworkspace.suiteMatch.
Required ID Contracts
- Test IDs:
t_plus 10 id-agent words. - Suite IDs:
s_plus 10 id-agent words. - Hook IDs:
h_plus 10 id-agent words. - Run IDs:
r_plus 10 id-agent words. - Observation IDs:
obs_plus 10 id-agent words.
Before Running
- Validate YAML first.
- Prefer
agent_qa_enqueue_test_runandagent_qa_enqueue_suite_runover shelling out. - If using the CLI fallback, run only after validation succeeds.
- Reconfirm the target and environment when a test may mutate real data or trigger external actions.
Example
User: Add an Agent QA checkout test for the staging target and validate it, but do not run it yet.
Expected handling: discover the workspace, inspect the staging target, generate the test ID,
create the smallest valid definition, validate it, and stop before enqueueing a run.
Limitations
- Requires an installed and configured Agent QA workspace plus any browser, mobile, model-provider, or application dependencies used by the selected target.
- Does not infer undocumented config keys, selectors, UI states, credentials, or test data.
- MCP availability and permissions vary by workspace; state which CLI or YAML fallback was used.
- Validation proves schema compatibility, not that the application behavior or external environment is safe to exercise.
Do Not
- Do not invent config keys or use legacy root config buckets.
- Do not hand-write IDs.
- Do not mutate files outside configured workspace patterns.
- Do not run destructive or production-facing scenarios without the user's explicit scope and confirmation.
常见问题
“Agent QA 测试、套件和钩子”是什么意思?
它们是你可以创建的不同类型的检查,用来确保 AI 智能体按预期工作。测试用于检查具体功能,套件用于把多个测试组合在一起,钩子则是在测试前后执行的操作。
为什么不应该手动编写 ID?
手动编写 ID 容易出错,也可能产生冲突。这个工具会自动生成唯一且正确的 ID,从而避免这些问题。
如果我想运行一个可能会修改真实数据的测试,会发生什么?
在运行可能修改真实数据或影响外部系统的测试之前,工具会请你明确确认,确保你知情并同意这一操作。
详情
作者的原始描述
Create, edit, validate, and run Agent QA tests, suites, and hooks through MCP or CLI while preserving canonical IDs and schema contracts.
热度
- GitHub 星标
- 48k
- 排名
- #3669
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。