rebase-merged-parent — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited rebase-merged-parent (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Rebase your branch onto main after the parent PR it was based on has been merged.
/rebase-merged-parent
/rebase-merged-parent feature/old-parent # Specify the old parent branchYour branch was based on a parent branch (not main). That parent PR has now been merged to main. You need to:
If not provided:
~/.claude/skills/rebase-merged-parent/scripts/gh-pr-base-branch.shIf the script is unavailable, fall back to:
gh pr view --json baseRefName --jq '.baseRefName'If the base is already main, ask the user which branch was the old parent.
git status --porcelain
git branch --show-currentStash or commit uncommitted changes.
git fetch origin mainIdentify which commits are uniquely yours (not from the merged parent):
# List commits on your branch not in main
git log origin/main..HEAD --oneline
# These should only be YOUR commits if parent was merged properly
# If you see parent's commits too, we need to be more selectiveUse git rebase --onto to take only the commits between the old parent tip and HEAD, and replay them onto main. This is robust to squash-merges (where patch-id dedup fails because the squashed commit on main doesn't match the original parent commits).
Pick the ref for the old parent's tip, in this order of preference:
# If the local parent branch still exists
git rebase --onto origin/main <old-parent>
# Otherwise, if origin still has it
git rebase --onto origin/main origin/<old-parent>If both are gone (branch was deleted after merge), find the old parent tip from the reflog or the PR's merge commit on main:
# Inspect the merge commit on main for the parent PR to find its tip SHA
gh pr view <parent-pr-number> --json mergeCommit --jq '.mergeCommit.oid'
# Then use that SHA as the upstream
git rebase --onto origin/main <sha>--onto only replays your commits, so "already applied" skips should be rare. If you do hit conflicts:
git add {file}git rebase --continueAfter the rebase completes (especially if conflicts were resolved or commits were skipped as already-applied), run the project's tests to confirm nothing was broken.
Try the project's standard test command in this order:
# Prefer Makefile target if present
make test
# Otherwise the project's package manager
npm test
# or
npx <test-runner>
# or
sbt testIf tests fail, stop and report to the user before pushing. Do not force-push a broken rebase.
git push --force-with-lease~/.claude/skills/rebase-merged-parent/scripts/gh-pr-edit-base.sh mainIf the script is unavailable, fall back to:
gh pr edit --base mainInform the user:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.