skills/rebased/SKILL.md
Rebase the current branch onto origin/main and intelligently resolve any conflicts that arise. Use when the user invokes /rebased or asks to rebase the current branch on main and resolve conflicts.
npx skillsauth add dupe-com/skills rebasedInstall 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.
Rebases the current branch onto origin/main and resolves conflicts as they appear, one rebase step at a time.
The user typed /rebased, or asked something like "rebase me on main", "rebase and fix conflicts", "get this branch up to date with main".
Before touching anything, gather state:
git status --porcelain=v1 -b
git rev-parse --abbrev-ref HEAD
git rev-parse --git-dir # to detect in-progress rebase via $GIT_DIR/rebase-merge or rebase-apply
Decision matrix:
git stash — that hides their work.main/master → stop and ask. Rebasing main onto itself is almost never what they want..git/rebase-merge or .git/rebase-apply exists) → skip the fetch/rebase-start step and jump straight to the conflict-resolution loop.git fetch origin main
git rebase origin/main
If it returns clean ("Successfully rebased"), report that and stop.
If it stops with conflicts, proceed to the loop.
Repeat until rebase is complete or the user tells you to stop.
a. Identify what's conflicted:
git status --porcelain=v1
git diff --name-only --diff-filter=U
b. Understand the current rebase step. This is critical — the conflict is between their commit (the one being replayed, marked <<<<<<< HEAD in working-tree convention during rebase is actually the upstream / main side; >>>>>>> commit-sha is the branch side being replayed). Get context:
git log --oneline -1 REBASE_HEAD # the commit being applied
git show --stat REBASE_HEAD # what it tried to change
git log --oneline origin/main -5 # recent main commits for context
c. For each conflicted file:
Read the file to see the conflict markers.git log -1 -p origin/main -- <file> for the most recent main change to this file)git show REBASE_HEAD -- <file>)bun.lockb, package-lock.json, yarn.lock) → regenerate (bun install / npm install / yarn) rather than hand-merge<<<<<<<, =======, >>>>>>> markers.git add <file>.d. Sanity-check the resolution before continuing:
e. Continue the rebase:
git -c core.editor=true rebase --continue
The -c core.editor=true skips the commit-message editor. If a commit becomes empty (all its changes are now upstream), use git rebase --skip instead.
f. If --continue produces another conflict, loop back to step (a). Each rebase step is one commit being replayed, so you may go through this several times.
When rebase finishes:
git status
git log --oneline origin/main..HEAD # show what was replayed
Report back: how many commits replayed, how many files had conflicts, anything you regenerated (lock files, migrations).
Do not push. Pushing a rebased branch requires a force-push, which is destructive — confirm with the user first, and use --force-with-lease not --force.
git rebase --skip or --abort without asking — these throw away work.git checkout --theirs/--ours blindly — these discard one side wholesale and almost always lose intent.git log --diff-filter=D).--no-verify. If a pre-commit hook blocks --continue, fix the underlying issue.git status will show "both modified" vs "added by us/them". For a rename conflict, find the new path with git log --follow --name-status and apply the change there.git checkout --theirs <lockfile> && <install-command> && git add <lockfile> (using "theirs" = the branch being replayed onto, i.e. main's lockfile as the base).git rebase --abort. Their working tree will return to pre-rebase state.End with a one-line summary: Rebased <branch> onto origin/main: N commits replayed, M files had conflicts (resolved). Run tests before pushing.
development
Pull down GitHub PR reviews and inline comments for the current branch (or a given PR number / URL / branch name), address them with code changes, reply where clarification helps other reviewers, resolve handled threads, and post a summary comment. Use when the user invokes /reviews or asks to address PR feedback.
data-ai
Pin a short personal reminder to the agent's status line. Use when the user types "/note", or says "remind me", "note to self", "pin a note", "set a reminder", or "clear my note". The note is synthesized into a terse line and shown on its own status-line row with a bold sticky-note background, scoped to the current session, until cleared.
development
Error prevention and best practices enforcement for agent-assisted coding. Use when writing code to catch common mistakes, enforce patterns, prevent bugs, validate inputs, handle errors, follow coding standards, avoid anti-patterns, and ensure code quality through proactive checks and guardrails.
development
Uses dupe.com APIs in order to find similar products for the product found in the input URL given by the user.