一键导入
stack
Stack a new workspace on top of the current branch — a handoff into a NEW workspace whose new branch is based off, and targets, the current branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Stack a new workspace on top of the current branch — a handoff into a NEW workspace whose new branch is based off, and targets, the current branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build or modify a Sculptor extension — a runtime ESM module loaded into the Sculptor UI. Use when asked to write an extension (or "plugin") for Sculptor, add a panel, overlay, workspace widget, home view, or settings UI to Sculptor, or to iterate on an extension with `sculpt extension`. Works from any repo; this file is a self-contained reference (the Sculptor source code is optional).
Interact with Sculptor programmatically using the sculpt CLI. Use this skill when using `sculpt`, or when designing or planning a workflow that would benefit from understanding the structural capabilities of `sculpt` (workspaces, agents, isolation, and how code flows between them).
Live, hot-reloading preview of the Sculptor WEB frontend from a phone or any browser, served through the OpenHost nginx /proxy front. ONLY relevant when running INSIDE the openhost-deployed Sculptor (the container fronted by nginx on :5050, reachable at https://sculptor.<zone>/) — NOT for local or Electron dev. Frontend-only: it reuses the single shared backend, so it previews UI/frontend changes, not a per-workspace backend. Invoke when iterating on the web UI and wanting to see it live in a browser through the OpenHost SSO front.
How this OpenHost-hosted Sculptor environment works — storage and what survives restarts, where/how to add repositories and authorize gh, and the /proxy/<port>/ capability for previewing loopback web apps from a browser. ONLY relevant when running inside an OpenHost deployment (detect via the OPENHOST_* env vars, e.g. OPENHOST_APP_NAME). Ships with the deploy image and is refreshed every release.
Test a pull request by creating a shallow clone at the PR's commit and launching Sculptor. Use when you need to test changes from a specific PR in isolation.
QA the Sculptor mobile web UI on a real iOS Simulator, driven headlessly from a Mac. A single CLI boots a notched iPhone, launches the local frontend server (parsing its port — no hardcoding), opens the app in MobileSafari, taps/swipes via idb, and screenshots each step. Includes the Add-to-Home-Screen standalone flow — the only way to verify notch / status-bar / home-indicator safe-area rendering (env(safe-area-inset-*) is 0 everywhere except real iOS). Use when visually verifying mobile/responsive changes on an iPhone.
| name | stack |
| description | Stack a new workspace on top of the current branch — a handoff into a NEW workspace whose new branch is based off, and targets, the current branch. |
| when_to_use | Invoke when the user wants to branch off the current work into a separate, parallel workspace stacked on the current branch — e.g. "stack a new agent on this", "spin off a follow-up based on this branch", or to keep the current agent focused while a fresh agent tackles a dependent piece of work. The new branch is based off the current branch AND targets it, so its diff and any MR are scoped to just the changes made on top of the current work. |
| user_invocable | true |
ARGUMENTS: $ARGUMENTS
Stacking is only supported in worktree workspaces. The stacked workspace is
created via git worktree add in the project's on-disk git repo, and only
worktree source workspaces share that git (so the current branch is locally
resolvable). From a clone or in-place workspace, the stacked workspace cannot
find the current branch as a ref — pushing to origin doesn't help because
git worktree add doesn't DWIM a bare branch name to origin/<branch>.
Check the strategy first:
sculpt workspace show "$SCULPT_WORKSPACE_ID" --json | jq -r .strategy
If the result is not WORKTREE, stop and tell the user (using their
strategy name):
Stacking isn't supported from a
<strategy>workspace — the stacked workspace wouldn't be able to base off your current branch. Use/sculptor-experimental:handoff(new agent in the same workspace) to continue this work, or move it into a worktree workspace first.
Only proceed if the strategy is WORKTREE.
Stacking is a handoff into a new workspace, specialized for building on top
of the current branch. Follow the /sculptor-experimental:handoff skill — invoke
it and do what its "new workspace" path does (run the pre-flight commit
check, compose a self-contained context-summary prompt, create the workspace +
agent with sculpt run, then report the new IDs) — with these differences:
--target-branch <current-branch> in
addition to --branch <current-branch>. This scopes the new workspace's
diff/MR to only the changes stacked on top of the current branch, instead of
the repo's default target (e.g. main). This is the defining trait of a
stack.So the create command (handoff's Step 4 new-workspace command, with --target-branch added) is:
git rev-parse --abbrev-ref HEAD # current branch = source AND target
sculpt run \
--strategy worktree \
--branch "<current-branch>" \
--target-branch "<current-branch>" \
--name "<short task name>" \
--json \
"<context-summary prompt>"
Use
sculpt run, notsculpt workspace create.sculpt runcreates the workspace, its agent, and the git worktree in one step.sculpt workspace createonly registers a workspace record — no agent, no checkout — so it renders as a blank screen in the UI. To add an agent to an already-empty workspace, runsculpt agent create -w <ws_id> -p "...".