Rebase

From drn/dots · View interactive version

Rebase is an AI agent skill from the GitHub repository drn/dots. 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.

How to use this skill

Skill file

Context

Your task

Rebase the current branch onto the latest upstream default branch and force-push to update the remote PR branch.

Step 0: Validate state

Step 1: Determine the target remote

Step 2: Determine the default branch

If the user passed --onto <branch> in the arguments, use that branch as the rebase target instead of the default branch. Otherwise:

If the current branch IS the default branch, stop and tell the user: "You are on the default branch. Rebase is not needed."

Step 3: Fetch

Step 4: Check if rebase is needed

Step 5: Rebase

Step 6: Force push (conditional)

Step 7: Report summary

Print a concise summary of what happened:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.