agent-qa-debug-fix
它能做什么
这个智能体用于修复未通过的程序测试。它会分析失败测试留下的证据,例如日志和文件,并以最小的代码改动解决问题,同时不掩盖真正的缺陷。
适用场景
- ✓当程序测试失败、需要修复时。
- ✓当日志和文件显示测试、程序或运行环境存在错误时。
- ✓在运行全部测试之前,想先验证一个小修复是否有效时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-qa-debug-fix/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请利用现有信息,修复 staging 环境中失败的测试。”
每周 5 个新技能,1 分钟读完。
工作原理
这个智能体会先收集关于失败测试的全部信息,然后分析这些信息,找出错误的原因,并对代码或配置做出尽可能小的改动来修复问题,同时避免引入新的问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent QA Debug Fix
Overview
Repair a failed Agent QA run from recorded evidence and the relevant local source. Treat the classifier as a hypothesis, make the smallest justified change, and verify the narrowest affected behavior without rewriting a test merely to conceal a real defect.
When to Use
- A failed Agent QA run has already been triaged and now requires a code or YAML repair.
- Artifacts and logs point to a test, hook, product, runtime, or agent-behavior defect.
- A proposed fix must be verified with the narrowest Agent QA or unit-test rerun.
- The user asks to self-heal or update a stale Agent QA definition from evidence.
Preconditions and Approval Boundary
- Confirm the repository, workspace, target environment, and files the user authorizes you to modify.
- Inspect the planned test's external side effects before rerunning it; obtain explicit confirmation for production-facing, destructive, or irreversible actions.
- Preserve unrelated user changes and keep the patch limited to the evidenced failure.
- Do not expose credentials or sensitive application data from artifacts and logs.
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.
- Explain the evidence-to-change link, then apply the smallest code or YAML change that accounts for the evidence.
- Validate any changed Agent QA definition before execution.
- Re-run the narrowest affected Agent QA test, suite, hook, or unit test within the approved environment.
- Report the root cause, changed files, verification command or MCP action, result, and remaining risk.
Fix Rules
- Do not invent selectors, screen states, screenshots, logs, or source files.
- Do not rewrite a test merely to make it pass when 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 rerunning edited YAML. - When MCP is unavailable, use dashboard REST APIs or local
.agent-qaartifacts and state that MCP evidence was unavailable. - Stop and report the blocker when evidence cannot distinguish between materially different fixes.
Example
User: Fix the failed staging checkout run, but do not touch production.
Expected handling: collect the failed run evidence, classify it, inspect the implicated local
definition and application code, patch only the evidenced cause, validate, rerun the single
staging test, and report changed files plus remaining uncertainty.
Limitations
- Requires access to the relevant run evidence and local source; artifacts alone may not establish root cause.
- Cannot guarantee that an intermittent browser, device, network, or provider failure is fixed after one successful rerun.
- Does not authorize production changes, data mutation, dependency installation, or broader refactoring beyond the user's approved scope.
- A passing narrow rerun does not replace the repository's normal test suite or human review.
常见问题
“Agent QA 运行”是什么意思?
指自动执行的测试,用来检查程序是否正常工作。
“debug”和“patch”是什么意思?
“debug”指查找并修复错误,“patch”指对程序进行小范围的修复。
我可以用这个智能体对程序做大改动吗?
不可以。这个智能体只针对某个失败的测试做必要的最小修复,不会改动程序的其他部分。
详情
作者的原始描述
Debug, patch, and verify failed Agent QA runs from MCP evidence, artifacts, logs, and local code without hiding product or infrastructure defects.
热度
- GitHub 星标
- 48k
- 排名
- #3670
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。