Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/raine/skills --skill rebaseコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
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