rebase-parent — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited rebase-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 the current branch onto a parent branch that has been updated.
/rebase-parent
/rebase-parent feature/parent-branch # Explicit parent branchIf not provided, try to determine the parent:
# Get current branch
git branch --show-currentCheck PR base branch:
~/.claude/skills/rebase-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 main, this skill doesn't apply - use /rebase-main instead.
Ask the user to confirm the parent branch if uncertain.
# Check for uncommitted changes
git status --porcelain
# Get current branch
git branch --show-currentStash or commit uncommitted changes before proceeding.
git fetch origin {parent-branch}The tricky part with rebasing onto an updated parent is finding where your branch originally diverged. If the parent was rebased, the old base commits are gone.
# Get the merge base (may be outdated if parent was rebased)
git merge-base HEAD origin/{parent-branch}
# Count commits unique to your branch
git rev-list --count origin/{parent-branch}..HEADUse --onto to rebase only your commits onto the new parent:
# Find how many commits are yours (after the original fork point)
# Then rebase those commits onto the updated parent
git rebase --onto origin/{parent-branch} $(git merge-base HEAD origin/{parent-branch}) HEADIf that doesn't work cleanly (merge-base is stale), try:
# Interactive rebase to select only your commits
git rebase -i origin/{parent-branch}If conflicts occur:
git diff --name-only --diff-filter=Ugit add {file}git rebase --continueIf stuck, abort and ask for guidance: git rebase --abort
After the rebase completes (especially if conflicts were resolved), run the project's tests to confirm nothing was broken by the rebase or conflict resolution.
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-leaseIf the PR base branch needs updating:
~/.claude/skills/rebase-parent/scripts/gh-pr-edit-base.sh {parent-branch}If the script is unavailable, fall back to:
gh pr edit --base {parent-branch}Inform the user:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.