/soong:rebasefrom soong
Rebase the current feature branch onto a new base branch, keeping only the changes made on the feature branch and dropping any commits inherited from the old base. Use when the user asks to "rebase", change a feature branch's base, move a branch onto a different base, or re-point a branch at a new base branch without carrying over the previous base's history.
Ships in soong. 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.
Move the current feature branch onto a new base branch so it carries only the commits that were authored on the feature branch — not the commits it inherited from its old base. The result: your changes replayed cleanly on top of the new base.
This is git rebase --onto, not a plain git rebase. A plain rebase would try to
replay every commit that is not on the new base, which can drag in the old base's
history. --onto lets you keep exactly the feature commits and nothing else.
You need three things. Resolve them and report all three before rebasing.
gh pr view --json baseRefName -q .baseRefName (if a PR exists).git rev-parse --abbrev-ref --symbolic-full-name @{u}.development.git merge-base HEAD origin/<old-base>. This commit is the cutoff; everything
after it on the current branch is "our changes" and gets replayed.If the resolved old base and new base are the same branch, there is nothing to do — stop and tell the user.
Figure out how this repo installs dependencies and verifies a build before running anything — do not assume a language or tool. Look at the project's CLAUDE.md / README, the build config, and lockfiles to find the right commands (e.g. dependency install, type/compile check, build). Prefer whatever the project documents.
Track these as todos and do them in order.
git status. If the working tree is dirty, stash everything (including untracked):
git stash push -u -m "pre-rebase". Note that a stash was created so you pop it later.git fetch origin <old-base> <new-base>.git merge-base HEAD origin/<old-base>.git log --oneline <fork-point>..HEAD. These are the only commits that should
survive. Confirm they are all yours and none belong to the old base.git rebase --onto origin/<new-base> <fork-point> <current-branch>.git add the resolved files and git rebase --continue. Repeat until the rebase
finishes. Check for leftover markers in the resolved files only:
grep -rn '<<<<<<<\|>>>>>>>' <resolved-paths> (these markers are unambiguous;
======= alone produces false positives, so don't grep for it).git stash pop now.git log --oneline origin/<new-base>..HEAD should show only
your feature commits sitting on top of the new base, with no commits from the
old base.git push --force-with-lease. A rebase rewrites history, so a force push is
required — but use --force-with-lease, never a plain --force, so you do not
clobber commits someone else pushed.git rebase --onto. A plain git rebase <new-base> can replay the old
base's commits onto the new base — exactly what we are avoiding.--no-verify, and never use blanket
-X ours / -X theirs strategies.--force-with-lease, never plain --force.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub konvoulgaris/soong --plugin soong9 skills in this plugin
/developTake a Notion roadmap item and build its whole task stack as stacked pull requests, one pull request per task, asking any questions the task cards leave open before writing code. Use when the user runs /develop, or asks to implement a roadmap item, build out a stack of tasks, or start development from prepared task cards. Requires the repo to be configured via soong-setup first./manage-prUse for any work on a pull request — writing or rewriting its title and description when creating or editing a PR, and responding to reviewers on your own open PR. Enforces the Conventional-Commits-with-scope title format, an optional Notion ticket id suffix, and a simple-prose description style. Walks unresolved review threads one-by-one with the user, then posts all replies in one batch after approval. Forbids generated-by footers and Claude attribution tags on both. Also persists a project/branch -> notion card + last commit record outside the repo for later querying. Triggers on "open a PR", "create a pull request", "write the PR title/description", "address the PR feedback", "reply to the reviewers", "go through the review comments", "respond to the PR comments", or any `gh pr create` / `gh pr edit` / `gh pr comment`./mergeMerge a base branch into the current feature branch and push the result, resolving conflicts file-by-file. Use when the user asks to "merge", "merge back", catch a feature branch up with its base, or pull base-branch changes into the current branch. "Base" most likely means the branch the feature was cut from or the PR's base branch, not necessarily a branch literally named "development"./polishRun a code review with autofix, then a simplification pass, then commit the result. Use when the user runs /polish, or asks to review and clean up the current changes in one shot, autofix the review findings, or "review and simplify and commit". Runs unattended - it applies fixes and commits without asking./soong-setupRecord what this repo needs for soong's skills to run - whether it uses Notion at all and which roadmap and task databases it maps to, and whether its commits carry a Conventional Commits scope. Use when the user runs /soong-setup, when another skill reports the repo is not configured, or when the user wants to change what a repo is configured for. A repo can record that it does not use Notion, which settles that capability for good. Stops without writing anything if the user says the repo uses Notion but does not supply valid databases./sync-pr-to-notionUse when asked to sync a branch's changes into its linked Notion card, or to update the Notion ticket for a PR. Looks up the card from the PR record written by manage-pr (keyed by project and branch), asks the user for the card if none is recorded, then writes a high-level architecture-style description of the branch's changes to the card via the write-notion-content skill. Never edits code, tests, or verification steps. Triggers on "sync the PR to notion", "update the notion card for this branch", "describe these changes on notion".