agentsclimarketplace

Resolve conflicts

Skill ForeverAProgrammer/claude-devflow/skills/resolve-conflicts

Claude Code plugin with skills for daily dev workflows — commits, standups, PRs, design docs, and GitHub automation.

Install
npx -y skills add ForeverAProgrammer/claude-devflow --skill resolve-conflicts

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Rebase the current branch onto the target branch to resolve PR conflicts.

SKILL.md

2.0 KB, 458 tokens by cl100k_base, as published. Nobody here has run it

Rebase the current branch onto the target branch to resolve PR conflicts.

Steps:

  1. Determine the target branch using the first method that succeeds:
    • Run gh pr view --json baseRefName,url 2>/dev/null to get the PR's target branch and URL (requires gh and 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, or develop exist on the remote with git branch -r.
    • If none of the above work, ask the user to specify the target branch and stop until they do.
  2. Run git fetch origin to ensure the latest remote changes are available.
  3. Run git rebase origin/<target-branch>.
  4. If the rebase succeeds with no conflicts, confirm to the user and skip to step 8.
  5. If the rebase stops with conflicts:
    • Run git diff --name-only --diff-filter=U to 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.
    • After editing each file, run git add <file> to mark it resolved.
  6. Once all conflicts are resolved, run git rebase --continue to proceed. If more conflicts arise, repeat step 5.
  7. 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.
  8. Run git push --force-with-lease to update the remote branch.
  9. 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.