resolve-conflicts
Skill0 starsChanged 9 months agoMITView on GitHub
Rebase the current branch onto the target branch to resolve PR conflicts.
- Deletes or force-pushes
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- mthines/agent-skillstheir own version, first seen Sep 25, 2026
- nielsmadan/skillstheir own version, first seen Sep 5, 2026
- fuadnafiz98/skillstheir own version, first seen Aug 3, 2026
- loremaster-ai/loremastertheir own version, first seen Jul 21, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- domengabrovsek/agent-config★ 17same name
- mthines/agent-skills★ 13same name
- fmind/dot★ 10same name
- loremaster-ai/loremaster★ 4same name
- ralphkrauss/agent-orchestrator★ 4same name
- Pradnyeshp/Claude-Skills★ 2same name
- nielsmadan/skills★ 1same name
- fuadnafiz98/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- action-itemsSkill
- add-spikeSkill
- changelogSkill
- commitSkill
- create-branchSkill
- create-issue-branch-githubSkill
- create-issue-githubSkill
- create-mr-gitlab-gitSkill
- create-pr-github-gitSkill
- create-pr-githubSkill
- decisionSkill
- emailSkill
- fix-issue-github-autoSkill
- fix-issue-githubSkill
- hldSkill
- implement-lldSkill
- jira-ticket-gitSkill
- jira-ticketSkill
- lldSkill
- prSkill
- reconcileSkill
- resolve-open-questionsSkill
- reviewSkill
- spikeSkill
- standup-gitSkill
- standupSkill
- syncSkill
- tag-release-ansibleSkill
- tag-release-npmSkill
- tag-releaseSkill
- tldrSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run gh pr view --json baseRefName,url 2>/dev/null to get the PR's target branch and URL (requires gh and GitHub).
- Very specific: line 11
Run git remote show origin 2>/dev/null | grep 'HEAD branch' to detect the default branch from the remote config (works with any git host).
- Very specific: line 12
Check which of main, master, or develop exist on the remote with git branch -r.
- Distinctive: line 13
If none of the above work, ask the user to specify the target branch and stop until they do.
- Distinctive: line 14
Run git fetch origin to ensure the latest remote changes are available.
- Distinctive: line 16
If the rebase succeeds with no conflicts, confirm to the user and skip to step 8.
- Distinctive: line 17
If the rebase stops with conflicts:
- Very specific: line 18
Run git diff --name-only --diff-filter=U to list conflicting files.
- Very specific: line 21
Prefer the incoming change (theirs) if it supersedes the current change.
- Very specific: line 22
Prefer the current change (ours) if the incoming change is unrelated.
- Very specific: line 24
After editing each file, run git add <file> to mark it resolved.
- Distinctive: line 26
If at any point a conflict is too ambiguous to resolve safely, run git rebase --abort, explain what was ambiguous, and ask the user to …
- Distinctive: line 27
Run git push --force-with-lease to update the remote branch.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rebase the current branch onto the target branch to resolve PR conflicts.
Steps:
- Determine the target branch using the first method that succeeds:
- Run
gh pr view --json baseRefName,url 2>/dev/nullto get the PR's target branch and URL (requiresghand GitHub). - Run
git remote show origin 2>/dev/null | grep 'HEAD branch'to detect the default branch from the remote config (works with any git host). - Check which of
main,master, ordevelopexist on the remote withgit branch -r. - If none of the above work, ask the user to specify the target branch and stop until they do.
- Run
- Run
git fetch originto ensure the latest remote changes are available. - Run
git rebase origin/<target-branch>. - If the rebase succeeds with no conflicts, confirm to the user and skip to step 8.
- If the rebase stops with conflicts:
- Run
git diff --name-only --diff-filter=Uto list conflicting files. - For each conflicting file, read the file and show the conflict markers clearly.
- Resolve each conflict by choosing the correct code based on context:
- Prefer the incoming change (
theirs) if it supersedes the current change. - Prefer the current change (
ours) if the incoming change is unrelated. - Merge both sides if both changes are needed.
- Prefer the incoming change (
- After editing each file, run
git add <file>to mark it resolved.
- Run
- Once all conflicts are resolved, run
git rebase --continueto proceed. If more conflicts arise, repeat step 5. - If at any point a conflict is too ambiguous to resolve safely, run
git rebase --abort, explain what was ambiguous, and ask the user to resolve it manually. - Run
git push --force-with-leaseto update the remote branch. - Report the result: confirm the branch is rebased and print the PR URL if one was found in step 1, otherwise just confirm the branch is up to date with the target.
$ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

