ワンクリックで
remote-diff
Compare local branch changes against the remote branch to detect rebase/merge mistakes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Compare local branch changes against the remote branch to detect rebase/merge mistakes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Show pull requests that need review, ranked by ease of review. Displays PRs as clickable links with line counts, grouped as a dependency tree when PRs build on each other.
Interactive rebase onto a base branch, resolving conflicts along the way and verifying tests pass. Compares against remote when done.
Evaluate unresolved review comments on the current branch's PR and, after user confirmation, address each in a separate sub-agent and separate commit.
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Like grill-me, but asks one structured, numbered question at a time with multiple-choice options. Use when the user wants a disciplined interview to stress-test a plan or design, or mentions "interview me".
Evaluate pending (unsubmitted) review comments on the current branch's PR and, after user confirmation, address each in a separate sub-agent and separate commit.
Run bin/claude-review --print and automatically fix all reported issues, committing each fix individually.
| name | remote-diff |
| description | Compare local branch changes against the remote branch to detect rebase/merge mistakes. |
| user-invocable-only | true |
| allowed-tools | Bash, Read, Glob, Grep, Agent |
| argument-hint | ["base-branch"] |
Compare local branch changes against the remote branch to detect rebase/merge mistakes.
Determine the base branch in this order:
$ARGUMENTS if the user specifies a branchgit config branch.$(git branch --show-current).parent, if set and it still resolves to a commitbin/base-branch if the script exists and is executabledevelopVerify the upstream tracking branch exists:
git rev-parse --verify @{u}
If this fails, report that there's no remote branch to compare against and stop. The user needs to push their branch first.
Ensure the tmp directory exists:
mkdir -p tmp
Fetch the latest remote refs, generate both diffs with zero context lines and ignoring whitespace changes, strip metadata lines, then compare:
git fetch origin
git diff -b --unified=0 <base-branch>...HEAD > tmp/local_branch_diff.patch
git diff -b --unified=0 origin/<base-branch>...@{u} > tmp/remote_branch_diff.patch
grep -v -E '^(index |@@ |diff --git)' tmp/local_branch_diff.patch > tmp/local_stripped.patch
grep -v -E '^(index |@@ |diff --git)' tmp/remote_branch_diff.patch > tmp/remote_stripped.patch
diff tmp/local_stripped.patch tmp/remote_stripped.patch > tmp/diff_comparison.patch || true
Read tmp/diff_comparison.patch.
If it's empty, report: Clean rebase — no issues detected. The local and remote branches make identical code changes relative to the base branch.
If there are differences, read the relevant source files for context and report:
Any difference warrants review. Read the source files to assess each one.
Signs of trouble:
+ line present in the remote diff but missing from local → an addition was lost during rebase- line present in the remote diff but missing from local → a deletion was lost, meaning removed code came backFor each difference:
rm -f tmp/local_branch_diff.patch tmp/remote_branch_diff.patch tmp/local_stripped.patch tmp/remote_stripped.patch tmp/diff_comparison.patch