Agent Skills
› Tracer-Cloud/opensre
› github-ci-fix
github-ci-fix
GitHub用于修复 GitHub CI、Actions 检查失败及 PR 分支问题的技能,支持处理冲突和自动推送修复。
Trigger Scenarios
GitHub CI 检查失败
Pull Request 状态异常
Install
npx skills add Tracer-Cloud/opensre --skill github-ci-fix -g -y
SKILL.md
Frontmatter
{
"name": "github-ci-fix",
"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."
}
GitHub CI Fix
Use fix_github_pr_ci for GitHub CI remediation requests, not
github_cli or shell_run.
Rules:
- Pass
pr_urlwhen the user provides a GitHub pull request URL. - Pass
owner,repo, andpr_numberwhen 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 — usebranchfor failures already on the base branch. - If no repo is named, omit
ownerandrepo; 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
mainare never pushed directly; OpenSRE pushes a freshopensre/ci-fix-*repair branch. - When GitHub reports the PR as conflicted with its base branch (checks never
start), the tool merges the base branch into the PR branch first, resolves
the conflicts, regenerates lockfiles, and pushes. A conflict it cannot resolve
safely is reported with the exact files and what a person must decide; the
merge is aborted and nothing is pushed. Do not run
git mergearound it. - The tool owns CI log inspection, fix execution, branch checkout, commit, and
push plus post-push check verification. Do not run a raw
ghworkflow 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
-
f22b81d
Current 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


