Index of every page on this site: llms.txt
All skills
tracer-cloud avatar

/fixing-github-merge-conflicts

@df137ad
by Tracertracer-cloud/opensre15k stars
1,982
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/tracer-cloud/opensre/fixing-github-merge-conflicts

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈72 tokens for metadata: the name and description. ≈347 when used: this file.

Description uses 3.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈290 characters, or 3.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning4d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    The skill automates the resolution of GitHub merge conflicts by identifying conflicting pull requests and merging the base branch into them using specialized tools. A potential surface for indirect prompt injection was identified as the agent processes data from external pull requests, but the skill is well-constrained and avoids direct shell command execution.

  • Socket4d

    No alerts

  • Snyk4d

    Risk: MEDIUM · 1 issue

Signed by skilld at df137ad. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "owner": "Vincent",
  "last_changed_by": "Vincent",
  "last_changed_at": "2026-10-04",
  "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."
  ],
  "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."
  ],
  "version": "1.1"
}

README badge

README badge for tracer-cloud/opensre/fixing-github-merge-conflicts