github/resolve-merge-conflicts
Merge a base ref and safely regenerate compiled workflow lock-file conflicts.
npx skills add https://github.com/github/gh-aw --skill 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.
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:
--no-commit, or resumes the current merge..lock.yml.make recompile once so generated files come from the merged Markdown.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.
ours or theirs for compiled lock files; regenerate them..lock.yml files..md, Go, JavaScript, or other mixed conflict.merits, stage them, and rerun the same command. It will regenerate the
remaining lock conflicts.
Take github/resolve-merge-conflicts from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
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.