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

fixing-github-merge-conflicts

GitHub

自动修复GitHub仓库中拉取请求的合并冲突。通过扫描并逐个将基础分支合并到存在冲突的非草稿PR,处理CI检查及后续决策报告。

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

Trigger Scenarios

用户要求修复仓库中拉取请求的合并冲突 执行计划内的冲突修复循环任务

Install

npx skills add Tracer-Cloud/opensre --skill fixing-github-merge-conflicts -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 88dba66 Current 2026-10-19 05:34

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/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

Metadata

Files
0
Version
88dba66
Hash
14bfa395
Indexed
2026-10-19 05:34

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-21 20:28
浙ICP备14020137号-1