Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Fetch the latest default branch and rebase the current branch on top of it, resolving any merge conflicts automatically.
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install deadlock-mod-manager/deadlock-mod-manager rebase --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rebase .claude/skills/rebase && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rebase" agent skill from https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebase into .claude/skills/rebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rebase", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebaseType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install deadlock-mod-manager/deadlock-mod-manager rebase --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/rebase .agents/skills/rebase && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rebase" agent skill from https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebase into .agents/skills/rebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rebase", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install deadlock-mod-manager/deadlock-mod-manager rebase --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/rebase .cursor/skills/rebase && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rebase" agent skill from https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebase into .cursor/skills/rebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rebase", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/deadlock-mod-manager/deadlock-mod-manager.git --path .agents/skills/rebase--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install deadlock-mod-manager/deadlock-mod-manager rebase --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/rebase .gemini/skills/rebase && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rebase" agent skill from https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebase into .gemini/skills/rebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rebase", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install deadlock-mod-manager/deadlock-mod-manager rebaseInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/rebase .github/skills/rebase && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rebase" agent skill from https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebase into .github/skills/rebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rebase", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install deadlock-mod-manager/deadlock-mod-manager rebase --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/deadlock-mod-manager/deadlock-mod-manager.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/rebase .opencode/skills/rebase && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rebase" agent skill from https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/rebase into .opencode/skills/rebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rebase", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rebaseFetch the latest default branch and rebase the current branch on top of it, resolving any merge conflicts automatically.
Rebase is an agent skill from deadlock-mod-manager/deadlock-mod-manager. Fetch the latest default branch and rebase the current branch on top of it, resolving any merge conflicts automatically. Use when asked to "rebase", "rebase on main", "update branch with main", "sync with main", "rebase onto latest", or "/rebase".
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Git workflow. It works with Git. The repository describes itself as: A mod manager for the Valve game Deadlock. The licence is GPL-3.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8bb56d1. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitcargopnpmghnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, pnpm, gh and npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rebase loads about 1.9k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 832 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from deadlock-mod-manager/deadlock-mod-manager at commit 8bb56d1, republished under its GPL-3.0 licence (© deadlock-mod-manager). 832 words, ~1,937 tokens.
.claude/skills/rebase/SKILL.md (or your agent's skills folder).Fetch the latest default branch from origin and rebase the current branch on top of it, resolving conflicts as they appear. Do not push unless the user asks.
Before doing anything, verify the working tree state:
git status --porcelain=v1 --branch. Confirm there are no uncommitted changes. If there are:git stash push -u -m "rebase-skill autostash") or abortgit rev-parse --abbrev-ref HEAD to capture the current branch name. If it is main, master, or the default branch, stop and tell the user there is nothing to rebase.gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git symbolic-ref refs/remotes/origin/HEAD --short | sed 's@^origin/@@' if gh is unavailable. Cache the result as $BASE.origin remote exists with git remote get-url origin.Fetch only what is needed and prune stale refs:
git fetch --prune origin "$BASE"If the fetch fails (network/auth), report the exact error and stop. Do not start a rebase against stale refs.
Run:
git rebase "origin/$BASE"Capture both stdout and stderr. There are three outcomes:
| Outcome | How to Detect | Action |
|---|---|---|
| Clean rebase | Exit 0, no CONFLICT lines | Go to Step 5 |
| Conflicts | Exit non-zero, output contains CONFLICT or could not apply | Go to Step 4 |
| Other failure | Exit non-zero without conflict markers | Run git rebase --abort, restore any stash from Step 1, report error, stop |
Repeat this loop until git status reports the rebase is no longer in progress.
Run git status --porcelain=v1. Conflicted files are marked UU, AA, DU, UD, AU, UA, or DD.
For each conflicted file:
<<<<<<< markers alone for context)<<<<<<<, =======, >>>>>>>git rebase, "ours" is the upstream base and "theirs" is the commit being replayed — this is the opposite of git merge. Verify with git log --oneline -1 HEAD and git log --oneline -1 REBASE_HEAD if unsure.Apply this decision logic per conflict region:
| Situation | Resolution |
|---|---|
Lockfiles (pnpm-lock.yaml, Cargo.lock, package-lock.json, yarn.lock, bun.lockb, uv.lock) | Take the base branch version, then regenerate (pnpm install, cargo build, npm install, etc.) at the end of the rebase, not per-step |
| Generated files (build output, snapshots, codegen) | Take the base branch version and regenerate after the rebase completes |
| Both sides changed unrelated lines in the same hunk | Combine both changes, preserving intent from each |
| Same line changed differently with clear semantic conflict | Read surrounding code, infer intent, prefer the change that is consistent with the rest of the diff being replayed; if ambiguous, ask the user |
Import/export lists, CHANGELOG.md, version bumps | Merge by union (keep entries from both sides, deduplicated, sorted as the file dictates) |
| Whitespace-only / formatting-only conflicts | Take whichever side matches the project's formatter; run the formatter after if needed |
| Truly ambiguous business logic | Stop, present both versions to the user with file paths and line ranges, and ask which to keep |
After editing, ensure no <<<<<<<, =======, or >>>>>>> markers remain:
git grep -nE '^(<{7}|={7}|>{7})( |$)' -- ':(exclude)*.md'git add <resolved files>
git rebase --continueIf the rebase reports "No changes - did you forget to use 'git add'?", the commit became empty after resolution. Run git rebase --skip.
If new conflicts appear on the next commit, return to step 4a.
If at any point you are stuck (more than 2 attempts on the same file produce conflict markers, or the user asked to stop), run git rebase --abort, restore the stash, and report.
Once the rebase completes:
git status should show "nothing to commit, working tree clean" and the branch ahead of origin/$BASE.pnpm install if pnpm-lock.yaml was touchedcargo build (or cargo check) if Cargo.lock was touchedgit stash pop).Tell the user:
git rev-parse --short "origin/$BASE")git rev-list --count "origin/$BASE..HEAD")git push --force-with-lease) — but do not push unless explicitly askedgit push --force (without --with-lease) on the user's behalfgit rebase --skip to bypass conflicts you do not understand — only for genuinely empty commits© deadlock-mod-manager, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/rebase of deadlock-mod-manager/deadlock-mod-manager.
Open the folder on GitHubat commit 8bb56d1
Rebase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rebase this skilldeadlock-mod-manager/deadlock-mod-manager | 473 | — | ~1.9k | Automated safety check: Pass | GPL-3.0 | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 10k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Migrate Internal Package into GhostTryGhost/Ghost | 55k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
TryGhost/Ghost
Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
tailcallhq/forgecode
Resolves Git merge conflicts with a plan-first workflow that keeps both sides' intent, regenerates lock files and backs up deleted-but-modified files.
deadlock-mod-manager/deadlock-mod-manager
Create new agent skills following the Agent Skills specification.
deadlock-mod-manager/deadlock-mod-manager
Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth.
deadlock-mod-manager/deadlock-mod-manager
Fetch source code for npm, PyPI, or crates.io packages and GitHub/GitLab repos to provide AI agents with implementation context beyond types and docs.
deadlock-mod-manager/deadlock-mod-manager
Security code review for Tauri/Rust/TypeScript desktop apps and Hono/oRPC APIs.
deadlock-mod-manager/deadlock-mod-manager
Stay on one pull request until it is merge-ready, fixing the highest-priority blocker and waiting when nothing is actionable.
deadlock-mod-manager/deadlock-mod-manager
Generate a changeset file describing the current PR's changes.
Works with
Categories
Fetch the latest default branch and rebase the current branch on top of it, resolving any merge conflicts automatically. Rebase is an agent skill from deadlock-mod-manager/deadlock-mod-manager. Fetch the latest default branch and rebase the current branch on top of it, resolving any merge conflicts automatically.
Rebase fits situations like: asked to rebase; update branch with main; rebase onto latest.
Run `npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a claude-code`. Or copy the skill folder (.agents/skills/rebase in deadlock-mod-manager/deadlock-mod-manager) into .claude/skills/rebase in your project. Claude Code loads it when a task matches its description.
Run `npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a codex`. Or copy the skill folder (.agents/skills/rebase in deadlock-mod-manager/deadlock-mod-manager) into .agents/skills/rebase in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add deadlock-mod-manager/deadlock-mod-manager --skill rebase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rebase, .gemini/skills/rebase, .github/skills/rebase and .opencode/skills/rebase in your project.
Going by SKILL.md and its folder, Rebase needs the command-line tools its instructions call (git, cargo, pnpm, gh and npm). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use git, gh and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Rebase is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Rebase: Finishing a Development Branch (obra/superpowers, 296k stars), Code Design Rationale Investigator (cursor/plugins, 10k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Migrate Internal Package into Ghost (TryGhost/Ghost, 55k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
deadlock-mod-manager (a GitHub organization) maintains it in deadlock-mod-manager/deadlock-mod-manager, which has 473 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on October 6, 2026.
Source: deadlock-mod-manager/deadlock-mod-manager on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.