Help us improve
Share bugs, ideas, or general feedback.
From gitbutler-cli
MANDATORY when on 'gitbutler/workspace' branch. Use `but` commands instead of git for commits, pushes, staging. Key commands: `but status -v`, `but stage <file> <branch>`, `but commit -m 'msg' <branch>`, `but push <branch>`. Invoke this skill BEFORE any git commit/push when gitbutler/workspace is the current branch.
npx claudepluginhub amitkot/claude-code-tools --plugin gitbutler-cliHow this skill is triggered — by the user, by Claude, or both
Slash command
/gitbutler-cli:gitbutler-cliThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Always pass `--json` (or `-j`) to `but` commands unless a human is reading the
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
--jsonAlways pass --json (or -j) to but commands unless a human is reading the
output directly. The default human tree output uses unicode box-drawing
characters (┊╭├┄┴) that break common grep/sed patterns, and tail -N on a
long status hides entire stacks — leading to wrong conclusions about workspace
state. Pipe --json through jq instead.
but status --json | jq '.unassigned[].path'
but status --json | jq '.stacks[].branches[].name'
but show <id> --json | jq '.commits[]'
but oplog list --json
Reserve plain output for the user-facing summary at the end of a turn.
but is NOT gitbut has its own flags and syntax. Git flags DO NOT work with but.
Common mistakes to NEVER make:
but show <commit> --stat - WRONG (--stat is a git flag, not a but flag)but show <commit> --patch - WRONG (--patch is a git flag)but show <commit> --oneline - WRONG (--oneline is a git flag)but diff --cached - WRONG (--cached is a git flag)but diff --stat - WRONG (--stat is a git flag)but branch -a - WRONG (-a is a git flag)Rule: Only use flags that appear in the help output below. When unsure, run but <cmd> --help first.
Use this skill when on gitbutler/workspace branch - use but instead of git for:
but commit not git commit)but push not git push)but stage)but show)but diff)Do NOT use for repositories NOT on gitbutler/workspace branch.
Note: Read-only git operations like git log, git show still work alongside but.
The following is live help output from the installed but CLI. Use ONLY these flags.
but top-level help!but --help 2>&1
but status help!but status --help 2>&1
but show help!but show --help 2>&1
but diff help!but diff --help 2>&1
but commit help!but commit --help 2>&1
but branch help!but branch --help 2>&1
but push help!but push --help 2>&1
but pr help!but pr --help 2>&1
Multiple branches active simultaneously. Changes belong to different virtual branches without switching contexts.
A series of commits on a virtual branch. Squash, amend, move, and reorder easily.
but CommandAll GitButler operations use but. It is simpler and safer than complex Git commands, but has different flags.
but status -v to see workspace statebut undo to revert any mistakebut <cmd> --help when unsure about flags--help--json (see the CRITICAL section at the top of this skill).