agents/skills/rebase/SKILL.md
Rebase current branch onto latest upstream default branch and force-push to update PR. Use when updating a branch, rebasing onto main, or resolving conflicts.
npx skillsauth add drn/dots rebaseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
git branch --show-currentgit status --shortgit remote -v 2>/dev/null | head -10git rev-parse --abbrev-ref HEAD 2>/dev/null | head -1gh pr view --json number,url,headRefName 2>/dev/null | head -10git branch -r 2>/dev/null | grep -oE 'origin/(main|master)' | head -1git log origin/main..HEAD --oneline 2>/dev/null | head -20git log origin/master..HEAD --oneline 2>/dev/null | head -20Rebase the current branch onto the latest upstream default branch and force-push to update the remote PR branch.
git remote to list remotes.upstream exists, use upstream as the target remote.If the user passed --onto <branch> in the arguments, use that branch as the rebase target instead of the default branch. Otherwise:
git symbolic-ref refs/remotes/<remote>/HEAD 2>/dev/null (where remote is from Step 1) and extract the branch name.<remote>/main exists with git rev-parse --verify <remote>/main 2>/dev/null.<remote>/master exists with git rev-parse --verify <remote>/master 2>/dev/null.If the current branch IS the default branch, stop and tell the user: "You are on the default branch. Rebase is not needed."
git fetch <remote> <default-branch>.git merge-base --is-ancestor <remote>/<default-branch> HEAD to check if already up to date.git log <remote>/<default-branch>..HEAD --onelinegit rebase <remote>/<default-branch>.git diff --name-only --diff-filter=U).git add <file>.git rebase --continue.git rebase --abort, report the issue, and stop. Do not guess at resolutions that could lose work.git rev-parse --abbrev-ref @{upstream} 2>/dev/null.mcp__github__list_pull_requests (with head set to <owner>:<branch>, state: "open") to check if there is an open PR.git push --force-with-lease to update the PR branch.git push --force-with-lease to update the remote branch.Print a concise summary of what happened:
development
Build a self-contained, single-file HTML presentation deck from talking points or a source doc, using a terminal/TUI-styled template with keyboard, tap, and swipe navigation. Use when the user wants to create slides, build a presentation or deck, turn talking points or a doc into a talk, make an HTML slideshow, or produce a presentation as a shareable artifact (instead of Google Slides).
development
Render a Markdown file to GitHub-flavored HTML and open a styled local preview (light + dark) in the browser. Use when the user wants to preview markdown, see how a README renders on GitHub, check that relative screenshots or images display correctly, or get a GitHub-like local preview without installing grip or glow.
tools
Mark the current Argus task as complete. Use when the work for the current worktree is done and the user wants the task to transition to the "complete" status.
development
Launch a dynamic Workflow where the top-tier session model (Fable) handles planning and orchestration while implementation subagents run on Sonnet for routine tasks and Opus for complex ones. Use when the user wants to orchestrate a build, a dynamic workflow, a model-tiered build, fable planning with sonnet and opus implementation, or tiered agents.