Install any skill in seconds. Free to start, no credit card required.
Get Started Free →joshukraine/merge-pr
Merge a pull request with status checks, squash merge, and branch cleanup. Handles worktree contexts.
Passed 3 of 9 test cases with the skill, and 6 of 9 without it.
1 fixed6 passed either way12 still failing4 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I just merged PR #20 from inside a secondary git worktree where `feature/ui` is checked out, and `main` is checked out in the primary worktree at `/Users/dev/repo`. I want to update `main`. Should I run `git switch main` inside this worktree?
| Checked | Without skill | With skill |
|---|---|---|
| Avoids running git switch main inside the secondary worktree context | Passed | Passed |
| Pulls updates inside primary worktree using git -C with primary worktree path | Missed | Passed |
The instructions your model reads when the skill loads.
Merge a pull request with consistent practices: verify checks, squash merge, clean up the branch, and pull the latest base branch.
$ARGUMENTS: PR number (optional — defaults to the PR for the current branch)gh pr view --json number,title,state,headRefName,baseRefNameCheck each of the following and report status:
gh pr checks to verify all required checks have passedgh pr view --json mergeable to verify no conflictsgh pr view --json reviewDecision,reviews to surface any unresolved review threads or a pending "changes requested" — advisory, not a hard gate. (Carries over the review-thread awareness from the retired /review-pr.)If CI has not passed, stop and report. Do not proceed with the merge.
gh pr merge --squash--delete-branch — GitHub is configured to auto-delete remote branches on merge. Local branch cleanup is handled in Step 4.Before updating local state, determine whether you are inside a git worktree:
git rev-parse --git-dir
git rev-parse --git-common-dir
test cases passed, vs 6 / 9 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.