Run any Skill in Manus
with one click
with one click
Run any Skill in Manus with one click
Get Started$pwd:
$ git log --oneline --stat
stars:0
forks:0
updated:May 6, 2026 at 05:03
SKILL.md
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | git-rebase |
| description | PRのベースブランチへrebaseし、コンフリクトが発生したら自動解消 |
| disable-model-invocation | true |
PRのベースブランチへrebaseし、コンフリクトが発生したら自動解消
/git-rebase
@~/.claude/skills/understand-pr/SKILL.md に従ってPRの目的・変更内容・現状を把握する。
PR文脈はコンフリクト解消時の判断材料として使用。
gh pr view --json baseRefName --jq '.baseRefName' でPRのベースブランチを取得gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' でデフォルトブランチを取得origin/[branch-name] 形式で使用git fetch origin [branch-name] でベースブランチを最新化git status で未コミット変更がないことを確認(あればユーザーに確認)git rebase origin/[branch-name] を実行コンフリクトが発生した場合、以下を繰り返す:
git status でコンフリクトファイルを特定<<<<<<<, =======, >>>>>>>)を確認git log --oneline origin/[branch-name] -- [file] でmain側の変更履歴を確認(必要に応じて)git log --oneline HEAD -- [file] でPR側の変更履歴を確認(必要に応じて)git add [file] でステージングgit rebase --continue で次のコミットへ進むgit status でクリーンな状態を確認git log --oneline -10 でrebase後の履歴を確認/git-pr または git push --force-with-lease で別途実行)基本的に自動解消するが、以下のケースは判断が困難なため、ユーザーに確認する:
判断に自信がある場合は自動で進め、解消内容を報告する。
git rebase --abort で元の状態に戻せることを把握しておく--force-with-lease を使用(--force は避ける)