Smart Rebase

現在の作業ブランチを origin/main などのベースブランチに rebase し、コンフリクトを解決して --force-with-lease で force push する。Use this skill whenever the user asks to rebase or sync/update/refresh their branch against main — "リベースして", "smart rebase", "/smart-rebase", "mainを取り込んで", "main の最新に追いつかせて", "rebase して force push", "最新mainに乗せて", "PRが遅れてる/behind", "rebase onto main" — even if they don't spell out every step. Also use it when a PR shows conflicts with its base branch and the fix is to rebase. Prefers existing GitHub tooling when it applies — `gh pr update-branch --rebase` for a server-side rebase with no local force-push, and `gh stack sync` on stacked branches — so also use it for "update branch", "PRのブランチを更新", "スタックを最新にして", "stack sync", "スタックPRをrebase", or updating a chain of stacked PRs against main.

tonkotsuboy df7858e 2 files · 32.7 KB Updated

File contents

tonkotsuboy/smart-rebase-skill/tree/main/skills/smart-rebase commit df7858e0e6

Frequently asked questions

npx skillmds@latest add tonkotsuboy/smart-rebase