Agent Skills › Tracer-Cloud/opensre › operating-github-ci-fixer

operating-github-ci-fixer

GitHub

自动化修复 GitHub CI/Actions 失败。支持 PR URL、仓库+PR号或分支名,自动检查日志、解决冲突、提交推送并验证结果。

integrations/github/tools/ci_fix/SKILL.md Tracer-Cloud/opensre

Trigger Scenarios

GitHub Actions 检查失败 Pull Request 状态异常 主分支 CI 报错

Install

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

Non-standard path

npx skills add https://github.com/Tracer-Cloud/opensre/tree/main/integrations/github/tools/ci_fix -g -y

Use without installing

npx skills use Tracer-Cloud/opensre@operating-github-ci-fixer

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill operating-github-ci-fixer -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
{
    "name": "operating-github-ci-fixer",
    "tools": [
        "fix_github_pr_ci"
    ],
    "description": "Use when the user asks OpenSRE to fix failing GitHub CI, GitHub Actions checks, failing pull request checks, a broken PR branch, or CI on a named branch such as main."
}

operating-github-ci-fixer

Use fix_github_pr_ci for GitHub CI remediation requests, not github_cli or shell_run.

Rules:

  • Pass pr_url when the user provides a GitHub pull request URL.
  • Pass owner, repo, and pr_number when the user names a repo and PR number.
  • Pass branch (e.g. branch="main") when the user asks to fix a branch's failing CI itself; never combine it with a PR selector. Merged or closed PRs are refused — use branch for failures already on the base branch.
  • Omit workspace for a named repository or PR URL; the tool creates an isolated checkout. Pass a path only to edit that specific matching checkout.
  • If no repo is named, omit owner and repo; the tool uses the current checkout's GitHub origin.
  • The tool inspects failing GitHub Actions checks, fixes the local checkout or a temporary linked git worktree, commits, pushes the PR branch or fresh repair branch, and waits for the checks triggered by that push. It does not open a new PR.
  • Fork PR branches are refused by the tool because OpenSRE only pushes to branches in the same repository.
  • Branch targets such as main are never pushed directly; OpenSRE pushes a fresh opensre/ci-fix-* repair branch.
  • When the PR branch is behind its base branch, or GitHub reports it as conflicted (checks never start), the tool merges the base branch into the PR branch first, resolves the conflicts, regenerates lockfiles, and pushes. If the pushed fix itself turns out to conflict, it merges the base once more and re-verifies. A conflict it cannot resolve safely is reported with the exact files and what a person must decide. Do not run git merge around it.
  • The tool owns CI log inspection, fix execution, branch checkout, commit, and push plus post-push check verification. Do not run a raw gh workflow around it.
  • If the tool returns response_text, output exactly that text and stop.
  • If no fix is produced, keep the reply to one short line from error; do not say "next steps", add numbered options, list example commands, or ask a broad follow-up question.

Version History

  • 4303874 Current 2026-09-22 10:48

    新增前置合并逻辑:若 PR 落后于基线则先合并;增强后置冲突恢复能力:推送后冲突时再次合并并重新验证。

  • f22b81d 2026-09-09 05:05

    新增在修复 CI 前将基础分支合并到存在冲突的 PR 中的功能。

  • 48aed16 2026-08-28 08:04

    支持通过链接工作树修复命名分支(如 main)的 CI 失败,改为推送到新的修复分支而非直接写入受保护分支。

  • 087938e 2026-08-27 19:28

    新增分支模式,支持直接修复基础分支(如 main)的 CI 失败并推送;增加对已合并/关闭 PR 的拒绝逻辑;优化错误日志提取和受保护分支推送权限控制。

  • 8bfe7b1 2026-08-19 21:46

Same Skill Collection

core/agent_harness/prompts/skills/architecture_audit/SKILL.md
core/agent_harness/prompts/skills/delivering-morning-briefings/SKILL.md
core/agent_harness/prompts/skills/fixing-github-security-alerts/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix_onboarding/SKILL.md
core/agent_harness/prompts/skills/github_ci_fix/SKILL.md
core/agent_harness/prompts/skills/github_ci_health/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/investigating-incidents-with-runbooks/SKILL.md
core/agent_harness/prompts/skills/morning_report/SKILL.md
core/agent_harness/prompts/skills/onboarding-github-ci/SKILL.md
core/agent_harness/prompts/skills/repair-github-ci/SKILL.md
core/agent_harness/prompts/skills/reporting-github-ci-failures/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/posthog/tools/skills/summarizing-posthog-analytics/SKILL.md
integrations/sentry/tools/skills/sentry-summary/SKILL.md
integrations/sentry/tools/skills/summarizing-sentry-issues/SKILL.md
integrations/yandex_cloud/tools/SKILL.md
tools/github_cli/SKILL.md
tools/system/python_execution_tool/skills/github-star-velocity/SKILL.md
tools/system/python_execution_tool/skills/measuring-github-star-velocity/SKILL.md
core/agent_harness/prompts/skills/cicd_analytics_demo/SKILL.md

Metadata

Files
0
Version
4303874
Hash
be3a31cd
Indexed
2026-08-19 21:46

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-27 07:22
浙ICP备14020137号-1