跳到正文
Skillpedia
智能体48k · #3670

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-qa-debug-fix/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Start with evidence collection:
    • agent_qa_get_run
    • agent_qa_get_run_steps
    • agent_qa_get_run_artifact
    • agent_qa_get_run_logs
    • agent_qa_get_run_execution_logs
  2. Call agent_qa_classify_failure and treat its category as a hypothesis, not a verdict.
  3. Identify the failing surface: test definition, hook, application under test, runtime infrastructure, or agent behavior.
  4. Inspect the relevant local files directly. Do not infer patches from artifacts alone.
  5. Explain the evidence-to-change link, then apply the smallest code or YAML change that accounts for the evidence.
  6. Validate any changed Agent QA definition before execution.
  7. Re-run the narrowest affected Agent QA test, suite, hook, or unit test within the approved environment.
  8. 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, and agent_qa_validate_definition before rerunning edited YAML.
  • When MCP is unavailable, use dashboard REST APIs or local .agent-qa artifacts 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#3670
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能