socle-cli
3
总安装量
2
周安装量
#62334
全站排名
安装命令
npx skills add https://github.com/benekuehn/socle --skill socle-cli
Agent 安装分布
amp
2
opencode
2
kimi-cli
2
codex
2
gemini-cli
2
Skill 文档
Socle CLI
Overview
Enable consistent, step-by-step guidance for using the so CLI to manage stacked Git branches and pull requests.
Quick start
- Install
sowith Homebrew (brew install benekuehn/tap/socle). - Verify installation with
so --version. - Work inside a Git repository before running stack commands.
Core tasks
Create and track a stack
- Create a new stacked branch from the current branch with
so create <branch-name>. - If there are uncommitted changes, pass
-m "commit message"to include them on the new branch. - Set stack relationships by running
so trackon each branch in order from the base branch upward.
Navigate the stack
- Move one branch up or down:
so up,so down. - Jump to the base-adjacent or top branch:
so bottom,so top. - Review the current stack and rebase status:
so log.
Update a stack
- Rebase the stack onto updated parents with
so restack. - Use
--no-fetchto skip fetching the remote base branch. - Use
--force-pushor--no-pushto control pushing rebased branches.
Submit or sync PRs
- Create or update stacked PRs with
so submit(requires GitHub auth viaGITHUB_TOKENorgh auth login). - Use
--no-draftto create non-draft PRs and--forceto force-push before submitting. - Keep branches in sync with the remote using
so sync(use--no-restackto skip restacking).
Notes and gotchas
- Stack metadata is stored locally in
.git/configunderbranch.<branch-name>.socle-parentandbranch.<branch-name>.socle-base. socommands assume the stack is tracked; runso trackfirst if navigation or restack commands fail.- If
so restackstops due to conflicts, resolve via standard Git rebase commands, then rerunso restack. - Keep stacks as independent as possible; avoid mixing unrelated work in the same stack.
- Keep each branch in a stack focused and small to reduce rebase conflicts and review overhead.