mcpbeat

Resolve Merge Conflicts

github/resolve-merge-conflicts

Merge a base ref and safely regenerate compiled workflow lock-file conflicts.

1k tokens
context cost
the whole folder, loaded on every use
2
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
4864
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/github/gh-aw --skill resolve-merge-conflicts

What comes with it

2 799 bytes besides the instruction
resolve.sh

The instruction itself

3 sections, as written by the author

Resolve Merge Conflicts

Use this skill when merging origin/main into a branch, especially when the

only conflicts are generated .github/workflows/*.lock.yml files.

One-step path

From the repository root, run:

./.github/skills/resolve-merge-conflicts/resolve.sh origin/main

The command works both before a merge and after another command has stopped on

conflicts. It:

  • Starts the merge with --no-commit, or resumes the current merge.
  • Refuses to auto-resolve if any conflict is not a workflow .lock.yml.
  • Runs make recompile once so generated files come from the merged Markdown.
  • Stages the regenerated conflicting lock files.
  • Verifies that no unresolved paths or whitespace errors remain.

The script does not fetch, commit, push, abort, or edit workflow Markdown.

Refresh origin/main first only when credentials are available. After success,

review the staged merge, run the repository's final validation gate, then

commit and push.

Safety rules

  • Never choose ours or theirs for compiled lock files; regenerate them.
  • Never manually remove conflict markers from .lock.yml files.
  • Never auto-resolve a source .md, Go, JavaScript, or other mixed conflict.
  • If the script refuses a mixed conflict, resolve source conflicts on their

merits, stage them, and rerun the same command. It will regenerate the

remaining lock conflicts.

  • Do not abort an existing merge unless the user explicitly requests it.

How to use it

Copy the folder

Take github/resolve-merge-conflicts from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.