Agent SkillsTracer-Cloud/opensre › github-ci-fix

github-ci-fix

GitHub

修复 GitHub CI/Actions 检查失败。支持针对 PR 或指定分支(如 main)自动定位失败原因、生成修复代码并提交推送,无需人工干预。

core/agent_harness/prompts/skills/github_ci_fix/SKILL.md Tracer-Cloud/opensre

Trigger Scenarios

用户要求修复 PR 的 CI 检查失败 用户提供 GitHub PR URL 并要求修复 CI 用户要求修复特定分支(如 main)的 CI 状态

Install

npx skills add Tracer-Cloud/opensre --skill github-ci-fix -g -y
More Options

Non-standard path

npx skills add https://github.com/Tracer-Cloud/opensre/tree/main/core/agent_harness/prompts/skills/github_ci_fix -g -y

Use without installing

npx skills use Tracer-Cloud/opensre@github-ci-fix

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill github-ci-fix -a claude-code -g -y

安装 repo 全部 skill

npx skills add Tracer-Cloud/opensre --all -g -y

预览 repo 内 skill

npx skills add Tracer-Cloud/opensre --list

SKILL.md

Frontmatter
{
    "demo": "Find open PRs with failing CI and fix them",
    "name": "github-ci-fix",
    "description": "Fix failing GitHub CI \/ Actions checks via fix_github_pr_ci and push to the existing PR head, or fix a branch's failing CI via a linked repair worktree"
}

══════════════════════════════════════════════════════════ GITHUB CI FIX SKILL — interactive-shell action agent: ══════════════════════════════════════════════════════════

WHEN TO USE:

  • The user asks to fix failing CI, broken GitHub Actions checks, failing PR checks, a red pull request branch, or CI on a named branch such as main.
  • The user says "fix CI on this PR", "fix the CI of PR 123 and push", "repair the failing checks on owner/repo#123", or provides a GitHub pull request URL and asks for CI/check fixes.
  • The user asks to fix failing CI on a branch itself — "fix the CI on main", "main is red, fix it", or "fix CI on the default branch and push" — with no PR involved.

USE THIS TOOL:

  • fix_github_pr_ci

DO NOT USE THIS SKILL FOR:

  • Ordinary PR reads, comments, closes, merges, labels, or issue work. Use github_cli.
  • Security alert remediation. Use fix_github_security_alert.
  • Live incident RCA. Use investigation_start.

HARD RULES:

  • For a GitHub PR URL, call: fix_github_pr_ci(pr_url="<url>")
  • For owner/repo#123 or "PR 123 in owner/repo", call: fix_github_pr_ci(owner="owner", repo="repo", pr_number=123)
  • For "fix the CI on main" (or any named branch with no PR), call: fix_github_pr_ci(branch="main") Never pass branch together with a PR selector, and never invent a branch the user did not name.
  • If no owner/repo is named, omit both and let the tool use the current checkout's GitHub origin.
  • Never use github_cli or shell_run to run raw gh pr checks, gh run view, checkout, commit, or push for this workflow. The CI fixer owns PR metadata, failing-check log inspection, fix execution, branch safety, commit, and push.
  • The tool pushes to the existing PR head branch after approval. Do not ask the user whether to open a new PR.
  • For branch targets such as main, the tool creates a separate linked git worktree, commits on a fresh opensre/ci-fix-* branch, and pushes that branch. It never pushes directly to protected branches.
  • If the tool returns response_text, output exactly that text and stop.
  • If error_kind is set, reply in one short line from error. Do not say "next steps", do not add numbered options, do not list example commands, and do not ask a broad follow-up question.

Compact examples:

  1. "fix CI on https://github.com/Tracer-Cloud/opensre/pull/4597 and push" → fix_github_pr_ci(pr_url="https://github.com/Tracer-Cloud/opensre/pull/4597")
  2. "fix failing checks on Tracer-Cloud/opensre#4597" → fix_github_pr_ci(owner="Tracer-Cloud", repo="opensre", pr_number=4597)
  3. "fix CI on main in Tracer-Cloud/opensre and push" → fix_github_pr_ci(owner="Tracer-Cloud", repo="opensre", branch="main")
  4. "the current PR CI is failing, fix and push" → fix_github_pr_ci()
  5. "fix the CI on main" → fix_github_pr_ci(branch="main")

Version History

  • 48aed16 Current 2026-08-28 08:04

    新增通过关联 worktree 修复非 PR 分支(如 main)CI 的功能,避免直接推送到受保护分支。

  • 087938e 2026-08-27 19:28

    新增直接针对分支(如 main)修复 CI 的功能,解决此前仅支持 PR 的局限;增加对已合并 PR 的防护及日志去重优化。

  • 8bfe7b1 2026-08-19 21:46

Same Skill Collection

core/agent_harness/prompts/skills/architecture_audit/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix_onboarding/SKILL.md
core/agent_harness/prompts/skills/github_cli/SKILL.md
core/agent_harness/prompts/skills/github_security_fix/SKILL.md
core/agent_harness/prompts/skills/morning_report/SKILL.md
integrations/github/tools/ci_fix/SKILL.md
integrations/github/tools/github_cli/SKILL.md
integrations/github/tools/security_fix/SKILL.md
integrations/github/tools/workflow/SKILL.md
integrations/posthog/tools/skills/posthog-summary/SKILL.md
integrations/sentry/tools/skills/sentry-summary/SKILL.md
integrations/yandex_cloud/tools/SKILL.md
tools/github_cli/SKILL.md
tools/system/python_execution_tool/skills/github-star-velocity/SKILL.md

Metadata

Files
0
Version
48aed16
Hash
19fe4dda
Indexed
2026-08-19 21:46

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 02:56
浙ICP备14020137号-1 $Map of visitor$