902 vostride
agent-qa-debug-fix Skill
在 agent-qa 运行失败后使用,借助 MCP 证据、日志、artifacts 和本地代码修改来调试、修补并验证问题,而非依赖自动生成的修复建议。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
agent-qa Debug Fix
Workflow
- Start with evidence collection:
agent_qa_get_runagent_qa_get_run_stepsagent_qa_get_run_artifactagent_qa_get_run_logsagent_qa_get_run_execution_logs
- Call
agent_qa_classify_failureand treat its category as a hypothesis, not a verdict. - Identify the failing surface: test definition, hook, application under test, runtime infrastructure, or agent behavior.
- Inspect the relevant local files directly. Do not infer patches from artifacts alone.
- Apply the smallest code or YAML change that explains the evidence.
- Re-run the narrowest affected agent-qa test, suite, hook, or unit test.
- Report the root cause, changed files, verification command, and any remaining risk.
Fix Rules
- Do not invent selectors, screen states, screenshots, logs, or source files.
- Do not rewrite a test just to make it pass if the artifact shows a product or runtime defect.
- Preserve canonical agent-qa IDs when editing tests, suites, hooks, or memory files.
- Prefer
agent_qa_validate_test,agent_qa_validate_suite, andagent_qa_validate_definitionbefore re-running edited YAML. - When MCP is unavailable, use dashboard REST APIs or local
.agent-qaartifacts and state that MCP evidence was unavailable.