Agent Skills › Tracer-Cloud/opensre › fixing-github-merge-conflicts

fixing-github-merge-conflicts

GitHub

自动扫描并修复仓库中因基础分支变更导致的 Pull Request 合并冲突。通过逐个合并基础分支到 PR,等待 CI 检查并报告结果,需人工介入决策时暂停。

core/agent_harness/prompts/skills/fixing-github-merge-conflicts/SKILL.md Tracer-Cloud/opensre

触发场景

用户请求修复仓库中的 PR 合并冲突 执行定时冲突修复循环

安装

npx skills add Tracer-Cloud/opensre --skill fixing-github-merge-conflicts -g -y
更多选项

非标准路径

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

不安装直接使用

npx skills use Tracer-Cloud/opensre@fixing-github-merge-conflicts

指定 Agent (Claude Code)

npx skills add Tracer-Cloud/opensre --skill fixing-github-merge-conflicts -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": "fixing-github-merge-conflicts",
    "metadata": {
        "owner": "Vincent",
        "version": "1.1",
        "requires": [
            "GitHub authentication with write access to the pull request branches.",
            "An installed and authenticated coding agent for conflicts git cannot merge on its own.",
            "The summarize_github_pr_status and fix_github_pr_ci tools."
        ],
        "usecases": [
            "For a scheduled loop that keeps a repository's open pull requests free of merge conflicts.",
            "For maintainers asking OpenSRE to fix the merge conflicts on a repository's open pull requests."
        ],
        "last_changed_at": 1791072000,
        "last_changed_by": "Vincent"
    },
    "description": "Merge the base branch into open pull requests that conflict with it, one at a time with fix_github_pr_ci, and report the merges a person must decide. Use when asked to fix the merge conflicts on a repository's pull requests, and for scheduled conflict loops."
}

Fixing GitHub merge conflicts

Merge the base branch into each open, same-repository, non-draft pull request that conflicts with it.

Plan

Only when step 1 finds a target, list update_plan before the first fix_github_pr_ci call: step 1 completed, step 2 in_progress with verifies: true, step 3 pending.

  • Step 1. Find the conflicting pull requests with summarize_github_pr_status.
  • Step 2. Merge the base branch into each one with fix_github_pr_ci.
  • Step 3. Reply with one line per new result.

Workflow

1. Find the conflicting pull requests

Call summarize_github_pr_status(owner, repo, conflicts_only=true); the targets have repairable: true and either mergeable: false or mergeable_state: "dirty". Complete when the scan has returned.

2. Merge the base branch into each target

Call fix_github_pr_ci(owner, repo, pr_number) once per target, one at a time; it merges, pushes, waits for the checks, and comments on the pull request when a person must decide. Never run git or gh around it, and never merge a pull request. Complete when every target has a result.

3. Reply

Write one line per target whose result is new (one with already_reported: true is not): its link, then checks_state and any error_kind and error, as returned; with no line left, reply with only the note line. Complete when the reply is sent.

版本历史

  • 88dba66 当前 2026-10-19 05:34

同 Skill 集合

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/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/analyzing-local-repositories/SKILL.md
core/agent_harness/prompts/skills/cicd_analytics_demo/SKILL.md

元信息

文件数
0
版本
ebf81cd
Hash
14bfa395
收录时间
2026-10-19 05:34

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 22:25
浙ICP备14020137号-1