but
Installation
SKILL.md
GitButler CLI Skill
Help users work with GitButler CLI (but command) in workspace mode.
New Session Workflow
EVERY new agent session that involves code changes MUST follow this flow:
- Sync first →
but pullto get latest upstream changes (prevents conflicts and stale base) - Check state →
but statusto see existing branches and unstaged changes - Decide branch →
- If an existing branch matches the task → reuse it (it's already applied)
- If this is new work →
but branch new <task-name>(e.g.feat/add-auth,fix/login-bug) - If you need to resume unapplied work →
but apply <branch>
- Make changes → Edit files as needed
- Stage & commit →
but commit <branch> -m "message" --changes <id>,<id> - Refine → Use
but absorborbut squashto clean up history - Push when ready →
but push <branch> - Create PR →
but pr new <branch> -t(uses default target branch)