Agent SkillsCopilotKit/OpenTag › fix-tests

fix-tests

GitHub

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

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

Trigger Scenarios

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

Install

npx skills add CopilotKit/OpenTag --skill fix-tests -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 6a770d8 Current 2026-08-19 13:54

Same Skill Collection

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

Metadata

Files
0
Version
6a770d8
Hash
e4ded192
Indexed
2026-08-19 13:54

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-02 06:37
浙ICP备14020137号-1 $bản đồ khách truy cập$