用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/raine/skills --skill rebase命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Autonomously create a plan, consult Gemini and Codex for improvements, apply feedback, and implement. No user interaction - uses best judgment throughout.
Turn an idea into a concrete design through structured dialogue.
Gemini and Codex collaboratively brainstorm solutions, building on each other's ideas across rounds. Agent synthesizes the best ideas into a plan.
基于 SOC 职业分类
正在显示 SKILL.md
| name | rebase |
| description | Rebase the current branch. |
| allowed-tools | Bash |
| disable-model-invocation | true |
Rebase the current branch.
Arguments: $ARGUMENTS
Behavior:
Steps:
git status --porcelaingit stash push -m "rebase-temp"git fetch <remote>git rebase <target> (or git rebase --onto if stale commits found)git config branch.<branch>.workmux-base main
git stash popDetecting already-merged base branches:
When a branch was based on another branch that was squash-merged into the
target, the old commits still appear in the branch history but their changes are
already in the target. A plain git rebase will try to replay them all, causing
repeated conflicts that need to be skipped one by one.
Before rebasing, detect this situation and use --onto to skip stale commits:
base=$(git config --get branch.$(git branch --show-current).workmux-base)
analytics-app-detail but we're rebasing onto origin/main):
git merge-base --is-ancestor <base> <target>
fork_point=$(git merge-base <base> HEAD)
# The tip of the old base branch in our history
last_stale=$(git rev-list --ancestry-path $fork_point..HEAD \
--not <target> | tail -1)^
Or more simply: the merge-base between the base branch tip and HEAD gives
the fork point, and all commits between that and the first commit unique to
our branch are stale. Use:
git rebase --onto <target> <base> HEAD
This replays only commits after the base branch tip onto the target.git diff --quiet. Find the last stale commit and use
git rebase --onto <target> <last-stale-commit>.git rebase <target>.Handling conflicts:
git log -p -n 3 <target> -- <file> to see
recent changes to that file in the target branchgit rebase --continue