902 vostride
agent-qa-authoring Skill
用于创建、编辑、验证或运行 agent-qa 的测试、套件或 hooks。优先使用 agent-qa MCP 工具,强制使用规范的 agent-qa ID,并参考内置的 schema 文档,避免凭空捏造配置键或 YAML 字段。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
agent-qa Authoring
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 you need exact schema fields or ID contracts. - Generate every new ID with agent-qa tooling:
- MCP:
agent_qa_generate_id - CLI fallback:
agent-qa ids generate - npx fallback:
npx --yes agent-qa ids generate
- Never hand-write IDs. Validate existing IDs with
agent_qa_validate_idoragent-qa ids validate --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"
- 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
- Use CLI/YAML fallback only when MCP is unavailable. Keep file paths matched by
workspace.testMatchorworkspace.suiteMatch.
Required ID Contracts
- Test IDs:
t_+ 10 id-agent words. - Suite IDs:
s_+ 10 id-agent words. - Hook IDs:
h_+ 10 id-agent words. - Run IDs:
r_+ 10 id-agent words. - Observation IDs:
obs_+ 10 id-agent words.
Before Running
- Validate YAML first.
- Prefer
agent_qa_enqueue_test_runandagent_qa_enqueue_suite_runover shelling out. - If using CLI fallback, run only after validation succeeds.
Do Not
- Do not invent config keys.
- Do not use legacy root config buckets.
- Do not hand-write IDs.
- Do not mutate files outside the configured workspace patterns.