Individual skill
merge-contributor-pr
Take a contributor's pull request that cannot be merged as-is — usually a conflict with main — resolve the blocker without rewriting their commits, and merge it with a merge commit so their authorship survives. Detects the case where the conflict exists because the same feature already landed through another PR, and closes it as superseded (a credit-only merge only on request) instead of merging a no-op. Use when the user wants a PR fixed up and merged while keeping the original author's commits.
.rulesync/skills/merge-contributor-pr/SKILL.md
Source commit 2d5bbc81aa01346601fcb2d1e18c71af07a02728
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,591
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytesSKILL.mdcore · 35,575 bytes
Read excerpt
# Merge a Contributor PR Without Losing Their Commits
target_pr = the user's request
If `target_pr` is not provided, use the PR of the current branch. Whichever way
it is resolved, confirm it matches `^[0-9]+$` before putting it in a command —
every other PR-derived value below is quoted and validated, and the PR number
should not be the one exception.
This skill exists for the case where a PR is good but not mergeable — most often
it conflicts with `main` because something else landed first. The goal is to
clear the blocker and merge, while the contributor's commits stay in the history
exactly as they wrote them.