From git-plugin
Resolves Git merge conflicts in pull requests by merging JSON/YAML configs (e.g., higher versions) and Markdown. Use for PR-base conflicts, rebasing issues, or failed automated merges.
npx claudepluginhub laurigates/claude-plugins --plugin git-pluginThis skill is limited to using the following tools:
Resolve merge conflicts in pull requests automatically.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Resolve merge conflicts in pull requests automatically.
| Use this skill when... | Use git-ops agent instead when... |
|---|---|
| PR has merge conflicts with base branch | Complex multi-branch rebase workflows |
| Automated merge failed due to conflicts | Cherry-pick conflicts across many commits |
| Config files (JSON, YAML) diverged | Conflicts require deep business logic understanding |
| Base branch updates caused conflicts | Interactive rebase with squash/fixup needed |
git branch --show-currentgit status --porcelain=v2 --branchgit diff --name-only --diff-filter=Ugit log --format='%h %s' --max-count=5Parse these from $ARGUMENTS:
$1: PR number (if not provided, detect from current branch)--push: Push resolved conflicts after committingExecute this conflict resolution workflow:
gh pr view <number> --json headRefName,baseRefName,mergeablegh pr list --head $(git branch --show-current) --json number,baseRefName,mergeablegit fetch origin <base-branch>git merge origin/<base-branch> --no-ffFor each file listed by git diff --name-only --diff-filter=U:
<<<<<<<, =======, >>>>>>>)| File Type | Strategy |
|---|---|
| JSON config (package.json, plugin.json, marketplace.json) | Merge objects/arrays, take higher versions |
| YAML config | Merge keys from both sides |
| Markdown (CHANGELOG, README) | Include content from both sides |
| Source code | Integrate both changes preserving logic |
| Lock files | Regenerate after resolving other conflicts |
git add <file><<<<<<<git commit --no-edit--push flag provided: git push origin <branch>Comment on the PR with resolution summary:
gh pr comment <number> --body "Merge conflicts with <base-branch> resolved automatically.
Resolved files:
- file1.json (merged entries from both sides)
- file2.md (combined changelog entries)
"
Abort with git merge --abort if:
--push after regenerating)| Context | Command |
|---|---|
| List conflicts | git diff --name-only --diff-filter=U |
| Conflict details | git diff --diff-filter=U |
| PR mergeable state | gh pr view N --json mergeable |
| Check markers remain | grep -rn '<<<<<<<' <files> |
| Porcelain status | git status --porcelain=v2 |