git-spice
Installation
SKILL.md
git-spice
git-spice manages a stack of dependent branches and their change requests (CRs: pull or merge requests) on GitHub, GitLab, Bitbucket, Gitea, Forgejo, Codeberg and Azure DevOps. It records each branch's base, so it can restack the branches above one you changed and update all their CRs at once.
This skill holds what an agent gets wrong when driving git-spice. For commands and flags, the installed binary is the authority:
git-spice <command> -hdocuments every flag, its config key (🔧) and its default for the version you have.- The docs are at https://abhinav.github.io/git-spice/, and https://abhinav.github.io/git-spice/llms.txt indexes them for fetching page by page.
Written against git-spice v0.33.0, the latest at the time of writing (2026-11-15). Check the installed version with git-spice --version.
Run it without prompts
- Call the binary
git-spice. Thegsbinary no longer exists. A user who typesgshas a shell alias for it. - Name every branch, base and commit yourself, and pass
--no-prompt. Left out, git-spice would open an interactive picker. Without a terminal it fails instead ("cannot proceed without a branch name: not allowed to prompt for input"), and--no-promptmakes that hold under a terminal too, so a call never waits on a picker nobody sees. - Always supply the commit message. With
--no-promptand no-m, git-spice opens no editor and stops with "Aborting commit due to empty commit message". Repeat-mfor more paragraphs, or pass a file with-F <file>for a long message. - Read stack state as JSON.
git-spice ls --json(one object per tracked branch, on stdout) beats parsing the tree drawing, which goes to stderr.