원클릭으로
git-rebase
// Interactive git rebase workflow with conflict-by-conflict review. Use when the user asks to rebase a branch, rebase onto main, resolve rebase conflicts, or update a branch with upstream changes.
// Interactive git rebase workflow with conflict-by-conflict review. Use when the user asks to rebase a branch, rebase onto main, resolve rebase conflicts, or update a branch with upstream changes.
Bump YugabyteDB latest_stable in yb-versions.json, coordinate Jenkins migtest cluster upgrades, fix version-gated issue/integration tests, and open a PR only after all GitHub Actions pass. Use when updating latest stable YB version, yb-versions.json, Jenkins YB cluster, or Voyager supported YB versions.
Generate yb-voyager release notes from a commit range, formatted like the YugabyteDB Voyager release-notes docs page. Use when the user asks to draft release notes, summarize a release, or write what's-new entries for a voyager version.
Review all code changes on the current branch compared to main, applying hierarchical BUGBOT.md and .cursor/BUGBOT.md guidelines from each changed file's directory up to the repo root. Use when the user asks to review a branch, review changes, compare against main, do a code review, or check branch diff.
Post a single non-blocking GitHub PR review with inline line-anchored comments generated by the agent. Every comment is prefixed with `[cursor]` so reviewers can tell they are AI-generated. Only Critical and Warning findings are posted; Suggestions / Nice-to-haves / Good-to-haves are never sent. Use when the user asks to "post the review on GitHub", "post these comments on the PR", "post the findings as PR comments", or otherwise wants an in-chat code review persisted on a GitHub pull request. Typically runs as a follow-up to the `branch-review` skill but does not require it.
Create and update GitHub pull request descriptions using the project PR template. Use when the user asks to create a PR, write a PR description, update a PR description, or manage pull requests.
| name | git-rebase |
| description | Interactive git rebase workflow with conflict-by-conflict review. Use when the user asks to rebase a branch, rebase onto main, resolve rebase conflicts, or update a branch with upstream changes. |
This skill performs a git rebase interactively, pausing at every conflict to show the user exactly what happened and waiting for explicit approval before resolving. The user stays in control at every step.
First, update the local main branch so the rebase uses the latest upstream:
git fetch origin main
git branch -f main origin/main
Then run these commands in parallel to gather context:
git branch --show-current — current branch namegit log --oneline main..HEAD — commits on this branch (ahead of main)git log --oneline HEAD..origin/main — commits on main not yet in branchgit diff --stat origin/main...HEAD — files changed on this branchPresent a summary to the user:
Branch:
feature-branchCommits ahead of main: N Commits behind main: M Files changed on branch: (list)
Ask the user to confirm before starting the rebase.
Start the rebase:
git rebase origin/main 2>&1
Report success and show final git log --oneline -5.
STOP immediately. Do NOT resolve anything yet. Follow the conflict review workflow below.
For EVERY conflict, follow this exact sequence:
Run:
git diff --name-only --diff-filter=U — list conflicting filesReport which commit caused the conflict (shown in rebase output) and how far along the rebase is (e.g., "Conflict at commit 8/22").
For each conflicting file, search for conflict markers and show them with surrounding context (10+ lines on each side):
grep -n "^<<<<<<<\|^=======\|^>>>>>>>" <file>
For every conflict hunk, explain clearly:
For binary files, show git show <commit> --stat and explain what each side
changed.
For each conflict hunk, propose a specific resolution and explain the reasoning. Use precise language:
CRITICAL: Ask the user for explicit approval before resolving.
Use the AskQuestion tool or ask conversationally. Present options like:
Do NOT proceed until the user responds.
Only after approval:
git add <file>GIT_EDITOR=true git rebase --continue 2>&1If the continue triggers another conflict, go back to Step 1.
git status --short to check for any unstaged changes (e.g., from hooks)git log --oneline -5 to show the resultIf there are unstaged changes from hooks, inform the user and ask whether to commit or discard them.