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

repair-github-ci

GitHub

修复 GitHub PR 或分支上失败的 CI/Actions 检查。自动处理冲突、提交并推送,无需用户干预,确保构建通过。

core/agent_harness/prompts/skills/repair-github-ci/SKILL.md Tracer-Cloud/opensre

Trigger Scenarios

修复 PR 失败检查 修复分支 CI 失败

Install

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

Non-standard path

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

Use without installing

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

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill repair-github-ci -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": "repair-github-ci",
    "metadata": {
        "owner": "Vaibhav",
        "version": "2.0",
        "requires": [
            "GitHub authentication with write access to the target repository.",
            "A local checkout whose origin matches the target repository.",
            "An installed and authenticated coding agent.",
            "The fix_github_pr_ci tool and its supported local execution environment."
        ],
        "usecases": [
            "For repository contributors repairing failed CI on a pull request.",
            "For maintainers repairing a named branch through a linked local worktree."
        ],
        "last_changed_at": 1789344000,
        "last_changed_by": "Jan"
    },
    "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

Use fix_github_pr_ci to repair failing checks on a pull request or a named branch.

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.

Related workflows

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

Workflow 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.
  • A PR that is behind its base branch, or conflicts with it (GitHub shows it as not mergeable and starts no checks), is handled by the tool: it merges the base branch into the PR branch, resolves conflicts, regenerates lockfiles, pushes, and waits for the checks — also when the conflict only appears after its own push. Never run git merge, git rebase, or conflict edits around it. If it reports blocked files, relay that one line and stop.
  • 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.

Examples

  • "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")
    
  • "fix failing checks on Tracer-Cloud/opensre#4597"

    fix_github_pr_ci(owner="Tracer-Cloud", repo="opensre", pr_number=4597)
    
  • "fix CI on main in Tracer-Cloud/opensre and push"

    fix_github_pr_ci(owner="Tracer-Cloud", repo="opensre", branch="main")
    
  • "the current PR CI is failing, fix and push"

    fix_github_pr_ci()
    
  • "fix the CI on main"

    fix_github_pr_ci(branch="main")
    

Version History

  • 4303874 Current 2026-09-22 10:48

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/reporting-github-ci-failures/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/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
806f4c09
Indexed
2026-09-22 10:48

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 06:45
浙ICP备14020137号-1