
Skill
resolve-github-pr-merge-conflicts
resolve GitHub pull request merge conflicts
Description
Resolve GitHub pull-request merge conflicts by merging the base branch into the PR branch, applying intent-aware conflict resolution, and running an integrated safety review before the merge commit is finalized.
SKILL.md
<shared_core_loading>
implement-changes skill is not currently loaded into your context, load that skill before deeper execution.implement-changes from this child skill, inherit only the core-contract section and the parent resolve-github-pr-merge-conflicts child-path contract.implement-changes's default workflow from this child skill unless the caller explicitly instructed the parent default path to run first.
<resolution_principles>
<severity_definitions>
<resolution_heuristics>
<pre_resolution_checklist>
<completion_criteria>
git merge --continue runs.
<git_command_reference>
gh pr view <N> --json title,body,headRefName,baseRefNamegh pr checkout <N> --forcegit fetch origin <headRefName> then git checkout -B <headRefName> origin/<headRefName>git fetch origin <baseRefName>GIT_EDITOR=true git merge --no-ff --no-edit origin/<baseRefName>git diff --name-only --diff-filter=Ugit blame -L <start>,<end> HEAD -- <file>git show --format="%H%n%s%n%b" --no-patch <sha>git show <sha> -- <file>git add <file>git diff origin/<baseRefName> --check plus syntax, typecheck, lint, or targeted test commands where practicalGIT_EDITOR=true git merge --continuegit merge --abortgit reset --hard ORIG_HEADgit rebase --abortgit diff origin/<baseRefName> --checkgit push
<editing_guidance>
git diff origin/<baseRefName> --check.
<error_handling>
git push when the merge created a commit, or report Already up to date when no push was needed.git status and the current branch first. Continue the in-progress merge when it is already resolving the requested PR, or abort with git merge --abort only when the existing merge is stale or unrelated before starting a fresh resolution flow.git merge --continue already created the merge commit, reset the branch to the pre-merge tip with git reset --hard ORIG_HEAD and report the failure honestly.git rebase --abort before starting the merge flow.git checkout --theirs or git checkout --ours based on the actual PR intent, then stage the file.git diff --check to distinguish real conflict markers from legitimate source content.
<common_pitfalls>
git blamegit merge --continue and block the merge commit on HIGH-severity findings.</correct_approach>
<quality_checklist>
<before_resolution>
git blame on conflicting sections.git diff origin/<baseRefName> --check.origin/<baseRefName>.
<final_response_format>
Resolved merge conflicts in: followed by one - \path/to/file`item per resolved file. If no files required manual resolution, start withResolved merge conflicts.instead.</rule> <rule>If there are controversial decisions, include aDecisions I'm not 100% sure:section with one- bullet per decision.</rule> <rule>If there are warnings, include aWarnings:section with one- ` bullet per warning.
More skills from the Roomote repository
View all 32 skillsaddress-pr-feedback
address unresolved GitHub PR feedback
Jul 19Code ReviewGitHubPull Requestsagent-browser
automate browser interactions for agents
Jul 16Browser AutomationCLITestingcapture-visual-proof
capture visual proof of browser tasks
Jul 16AutomationBrowser AutomationScreenshotsci-failure-triage
triage failed CI workflows
Jul 23CI/CDDebuggingGitHub Actionscode-quality-auditor
audit code quality in merged pull requests
Jul 26Code AnalysisCode ReviewQAcodeql-triage
triage and remediate CodeQL security alerts
Jul 19Code AnalysisCodeQLDebuggingGitHub +2
More from Roo Code
View publishercreate-draft-pr
create draft pull requests
Roomote
Jul 16AutomationGitHubPull Requestscreate-pr
create pull requests for pending changes
Roomote
Jul 16GitHubPull Requestsdebug-reported-bug
reproduce and debug reported bugs
Roomote
Jul 16DebuggingGitTestingdependabot-triage
triage GitHub Dependabot alerts
Roomote
Jul 26AutomationGitHubSecurityTriageenvironment-setup
configure local development environments
Roomote
Jul 19ConfigurationLocal Developmentexplain-repo-code
explain repository code and architecture
Roomote
Jul 16Code AnalysisDocumentation