rebase-downstream
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Rebase Downstream Tree
Rebase a tree of dependent branches after upstream changes have been made. Auto-detects the downstream branch tree (including sibling branches), rebases each branch in order, resolves conflicts when possible, and runs preflight checks on each branch.
Current State
- Branch: !
git branch --show-current - Status: !
git status --short
Steps
1. Detect current branch
Get the current branch name. This is the branch that was just modified and whose changes need to propagate downstream.
More from brave/brave-core
clean-branches
Delete local branches whose PRs have been merged upstream. Checks GitHub PR
2pr
Create a pull request for the current branch using `gh`.
1review
Review code for quality, root cause analysis, and fix confidence. Supports PR
1prs-reviewed
Get PRs a user reviewed on brave/brave-core. Shows PR number, title, author,
1fix-bp-docs
Audit and fix best practices docs for stale references, duplicates, obsolete
1preflight
Run all preflight checks (format, gn_check, presubmit, build, tests) to make
1