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.
Commit, push, branch, and manage version control with GitButler.
$ npx skills add gitbutlerapp/grit --skill but -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install gitbutlerapp/grit but --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/gitbutlerapp/grit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/gitbutler .claude/skills/but && 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 "but" agent skill from https://github.com/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutler into .claude/skills/but/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "but", 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/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutlerType 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 gitbutlerapp/grit --skill but -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install gitbutlerapp/grit but --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gitbutlerapp/grit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/gitbutler .agents/skills/but && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "but" agent skill from https://github.com/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutler into .agents/skills/but/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "but", 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 gitbutlerapp/grit --skill but -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install gitbutlerapp/grit but --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gitbutlerapp/grit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/gitbutler .cursor/skills/but && 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 "but" agent skill from https://github.com/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutler into .cursor/skills/but/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "but", 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/gitbutlerapp/grit.git --path .cursor/skills/gitbutler--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 gitbutlerapp/grit --skill but -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install gitbutlerapp/grit but --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gitbutlerapp/grit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/gitbutler .gemini/skills/but && 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 "but" agent skill from https://github.com/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutler into .gemini/skills/but/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "but", 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 gitbutlerapp/grit butInstalls 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 gitbutlerapp/grit --skill but -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/gitbutlerapp/grit.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/gitbutler .github/skills/but && 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 "but" agent skill from https://github.com/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutler into .github/skills/but/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "but", 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 gitbutlerapp/grit --skill but -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install gitbutlerapp/grit but --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/gitbutlerapp/grit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/gitbutler .opencode/skills/but && 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 "but" agent skill from https://github.com/gitbutlerapp/grit/tree/main/.cursor/skills/gitbutler into .opencode/skills/but/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "but", 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.
butCommit, push, branch, and manage version control with GitButler.
But is an agent skill from gitbutlerapp/grit. Commit, push, branch, and manage version control with GitButler. Use for: commit my changes, check what changed, create a PR, push my branch, view diff, create branches, stage files, edit commit history, squash commits, amend commits, undo commits, pull requests, merge, stash work. Replaces git - use 'but' instead of git commit, git status, git push, git checkout, git add, git diff, git branch, git rebase, git stash, git merge. Covers all git, version control, and source control operations.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/concepts.md`, `references/examples.md` and `references/reference.md`).
It sits in Development, covering Git workflow. It works with Git. The repository describes itself as: Reimplementing Git in Rust. Like a boss. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit cb1d966. 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:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, 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.
But loads about 1.9k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 125 tokens; SKILL.md has 961 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 gitbutlerapp/grit at commit cb1d966, republished under its MIT licence (© gitbutlerapp). 961 words, ~1,910 tokens.
.claude/skills/but/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Use GitButler CLI (but) as the default version-control interface.
but for all write operations. Never run git add, git commit, git push, git checkout, git merge, git rebase, git stash, or git cherry-pick. If the user says a git write command, translate it to but and run that.--status-after to mutation commands.but status -fv / but diff / but show; never hardcode IDs.but status -fv before mutations so IDs and stack state are current.but branch new <name> when needed.Every write task should follow this sequence.
# 1. Inspect state and gather IDs
but status -fv
# 2. If new branch needed:
but branch new <name>
# 3. Edit files (Edit/Write tools)
# 4. Refresh IDs if needed
but status -fv
# 5. Perform mutation with IDs from status/diff/show
but <mutation> ... --status-afterbut commit <branch> -m "<msg>" --changes <id>,<id> --status-afterbut commit <branch> -c -m "<msg>" --changes <id> --status-afterbut amend <file-id> <commit-id> --status-afterbut move <source-commit-id> <target-commit-id> --status-after (commit IDs, not branch names)but move <branch-name-or-id> <target-branch-name-or-id> --status-after (branch names or branch CLI IDs)but move <branch-name-or-id> zz --status-after (zz = unassigned; branch name or branch CLI ID)but push or but push <branch-id>but pull --check then but pull --status-afterbut status -fvbut commit <branch> -m "<msg>" --changes <id1>,<id2> --status-after
Use -c to create the branch if it doesn't exist. Omit IDs you don't want committed.--status-after output for remaining uncommitted changes. If the file still appears as unassigned or assigned to another branch after commit, it may be dependency-locked. See "Stacked dependency / commit-lock recovery" below.but status -fv (or but show <branch-id>)but amend <file-id> <commit-id> --status-afterbut move supports both commit reordering and branch stack operations. Use commit IDs when reordering commits.
but status -fvbut move <commit-a> <commit-b> --status-after — uses commit IDs like c3, c5but move <commit-b> <commit-a> --status-afterTo make one existing branch depend on (stack on top of) another, use top-level move:
but move feature/frontend feature/backendThis moves the frontend branch on top of the backend branch in one step.
DO NOT use uncommit + branch delete + branch new -a to stack existing branches. That approach fails because git branch names persist even after but branch delete. Always use but move <branch> <target-branch>.
To unstack (make a stacked branch independent again):
but move feature/logging zzNote: branch stack/tear-off operations use branch names (like feature/frontend) or branch CLI IDs, while commit reordering uses commit IDs (like c3). Do NOT use but undo to unstack — it may revert more than intended and lose commits.
A dependency lock occurs when a file was originally committed on branch A, but you're trying to commit changes to it on branch B. Symptoms:
but commit succeeds but the file still appears in unassignedChanges in the --status-after outputRecovery: Stack your branch on the dependency branch, then commit:
but status -fv — identify which branch originally owns the file (check commit history).but move <your-branch-name> <dependency-branch-name> — stack your branch on the dependency. Uses full branch names, not CLI IDs.but status -fv — the file should now be assignable. Commit it.but commit <branch> -m "<msg>" --changes <id> --status-afterIf but move <branch> <target-branch> fails: Do NOT try uncommit, squash, or undo to work around it — these will leave the workspace in a worse state. Instead, re-run but status -fv to confirm both branches still exist and are applied, then retry with exact branch names from the status output.
NEVER use git add, git commit, git checkout --theirs, git checkout --ours, or any git write commands during resolution. Only use but resolve commands and edit files directly with the Edit tool.
If but move causes conflicts (conflicted commits in status):
but status -fv — find commits marked as conflicted.but resolve <commit-id> — enter resolution mode. This puts conflict markers in the files.<<<<<<< / ======= / >>>>>>> markers.but resolve finish — finalize. Do NOT run this without editing the files first.Common mistakes: Do NOT use but amend on conflicted commits (it won't work). Do NOT skip step 4 — you must actually edit the files to remove conflict markers before finishing.
| git | but |
|---|---|
git status | but status -fv |
git add + git commit | but commit ... --changes ... |
git checkout -b | but branch new <name> |
git push | but push |
git rebase -i | but move, but squash, but reword |
git rebase --onto | but move <branch> <new-base> |
git cherry-pick | but pick |
--changes accepts comma-separated values (--changes a1,b2) or repeated flags (--changes a1 --changes b2), not space-separated.git log, git blame, git show --stat) is allowed.--status-after, don't run a redundant but status -fv unless you need new IDs.but show <branch-id> to see commit details for a branch, including per-commit file changes and line counts.but status does NOT include per-commit file counts. Use but show <branch-id> or git show --stat <commit-hash> to get them.--help probes; use this skill and references/reference.md first. Only use --help after a failed attempt.but skill check only when command behavior diverges from this skill, not as routine preflight.references/reference.mdreferences/concepts.mdreferences/examples.md© gitbutlerapp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in .cursor/skills/gitbutler of gitbutlerapp/grit.
Open the folder on GitHubat commit cb1d966
But 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 |
|---|---|---|---|---|---|---|
| But this skillgitbutlerapp/grit | 538 | — | ~1.9k | Automated safety check: Pass | MIT | |
| 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.
Works with
Categories
Commit, push, branch, and manage version control with GitButler. But is an agent skill from gitbutlerapp/grit. Commit, push, branch, and manage version control with GitButler.
But fits situations like: : commit my changes; check what changed; create branches; edit commit history.
Run `npx skills add gitbutlerapp/grit --skill but -a claude-code`. Or copy the skill folder (.cursor/skills/gitbutler in gitbutlerapp/grit) into .claude/skills/but in your project. Claude Code loads it when a task matches its description.
Run `npx skills add gitbutlerapp/grit --skill but -a codex`. Or copy the skill folder (.cursor/skills/gitbutler in gitbutlerapp/grit) into .agents/skills/but 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 gitbutlerapp/grit --skill but -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/but, .gemini/skills/but, .github/skills/but and .opencode/skills/but in your project.
Going by SKILL.md and its folder, But needs the command-line tools its instructions call (git).
SKILL.md contains no URLs. Its commands use git, 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.
But is published under the MIT 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.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with But: 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.
gitbutlerapp (a GitHub organization) maintains it in gitbutlerapp/grit, which has 538 GitHub stars. The repository was last updated on October 8, 2026.
Source: gitbutlerapp/grit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.