/github-prs:pr-merge-conflictsfrom github-prs
Enumerate a GitHub pull request's actual merge conflicts against its base — the conflicting files and hunks — by trial-merging in a throwaway worktree that is aborted and removed afterwards. Resolves, commits and pushes nothing; in the primary clone it fetches the head and base into the origin/* refs — or, for another repository's PR, into refs of its own that it deletes — and runs git worktree prune, and leaves its tracked files and index as it found them.
Ships in github-prs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Enumerate the conflicts a pull request's branch has with its base
branch, and nothing else. GitHub reports mergeStateStatus: DIRTY
without saying which files or hunks conflict; this skill performs the
merge in a throwaway worktree, collects what conflicts, then aborts
the merge and removes the worktree. It resolves nothing, commits
nothing, pushes nothing, and leaves the primary clone's tracked files
and index as it found them; what it does change there is the fetched
origin/* refs and the git worktree prune described below.
A PR of another repository than the checkout's is fetched from that
repository's https://<host>/<owner>/<repo>.git into
refs/pr-merge-conflicts/<host>+<owner>+<repo>/<N>/head and
refs/pr-merge-conflicts/<host>+<owner>+<repo>/<N>/base, the names
lowercased, which the script deletes on every exit, so no origin/*
ref changes for it. The fetch authenticates as git does for that
URL.
/pr-merge-conflicts <PR>
<PR> (required): the pull request, in any form
skills/lib/pr-reference.md lists.Run the bundled script from inside a git checkout, spelled as a bare name:
pr-merge-conflicts <PR>
The script reads the PR's head and base branches, fetches both, and
adds a detached worktree at the head under
.claude/worktrees/pr-merge-conflicts-<N> — for another repository's
PR, .claude/worktrees/pr-merge-conflicts-<host>+<owner>+<repo>-<N>,
lowercased — so no branch claim is taken and nothing lands in the
primary clone's working tree. It trial-merges
the base there without committing, collects the conflicting files and
each one's hunks, then aborts the merge and removes the worktree on
every exit, so a failed run leaves nothing for the next one to trip
on. A worktree an interrupted earlier run left at that path is cleared
before the add, and git worktree prune runs there too, dropping every
registration in the clone whose directory is gone — not only this
skill's own.
DIRTY against this base at this moment — or
the conflicting files, one per line, followed by a === <file>
section per file holding that file's conflicting hunks verbatim.
Report it back as it stands: what to do about each conflict is the
caller's to decide, and the resolution is whoever the caller hands it
to.git step failed. Stderr
names the step, with the tool's own error above it where the tool
printed one. Surface it verbatim.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin github-prs14 skills in this plugin
/pr-closing-issuesReport the set of issues a GitHub pull request's body closes, by relaying the line the bundled script prints. The parse is gp_closing_issues, shared by the pr-closing-issues and pr-link-issue scripts; every skill and agent outside github-prs reads a body's closing set by invoking this skill./pr-commentPost a comment on a GitHub pull request from a file, then verify the comment GitHub holds carries that file's text./pr-createOpen a draft GitHub PR for a branch against the configured base, with one closing keyword per issue in the branch's own issue set in the PR body.Other plugins' skills for the same job