Agent SkillsCopilotKit/OpenTag › fix-tests

fix-tests

GitHub

自动修复 GitHub 仓库或 PR 中的失败测试。通过定位测试命令、分析错误并最小化修改代码,直至测试通过并发布更改。

agent/coding/skills/fix-tests/SKILL.md CopilotKit/OpenTag

触发场景

用户请求修复失败的测试 触发 brief 中名为 fix-tests 的场景

安装

npx skills add CopilotKit/OpenTag --skill fix-tests -g -y
更多选项

非标准路径

npx skills add https://github.com/CopilotKit/OpenTag/tree/main/agent/coding/skills/fix-tests -g -y

不安装直接使用

npx skills use CopilotKit/OpenTag@fix-tests

指定 Agent (Claude Code)

npx skills add CopilotKit/OpenTag --skill fix-tests -a claude-code -g -y

安装 repo 全部 skill

npx skills add CopilotKit/OpenTag --all -g -y

预览 repo 内 skill

npx skills add CopilotKit/OpenTag --list

SKILL.md

Frontmatter
{
    "name": "fix-tests",
    "description": "Fix failing tests in a GitHub repo or PR. Use when the brief skill is fix-tests or the user wants the named test command to exit 0."
}

fix-tests

Fix failing tests in the repo from the brief.

  1. Call prepare_repository, including pr_number when kind is pr.
  2. Work on the returned branch; otherwise request opentag/fix-tests-<short-id>.
  3. Find the test command: the brief, then package.json test/ci, then pytest or go test ./... if those files exist.
  4. Run the command. Read the failure. Edit the smallest set of files that fixes it.
  5. Re-run until exit 0 or you cannot fix it.
  6. If green, commit locally and call publish_changes.
  7. If red, do not call publish_changes. Return the log tail.

版本历史

  • 6a770d8 当前 2026-08-19 13:54

同 Skill 集合

agent/coding/skills/fix-ci/SKILL.md
agent/coding/skills/implement-issue/SKILL.md
agent/coding/skills/merge-main/SKILL.md

元信息

文件数
0
版本
6a770d8
Hash
e4ded192
收录时间
2026-08-19 13:54

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 23:17
浙ICP备14020137号-1 $访客地图$