Agent skill

Stack

by imbue-ai in imbue-ai/sculptor

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.

MITAuto-check passedDevelopment

Install Stack

skills CLI
$ npx skills add imbue-ai/sculptor --skill stack -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install imbue-ai/sculptor stack --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/imbue-ai/sculptor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/sculptor/sculptor-experimental/skills/stack .claude/skills/stack && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
stack
GitHub stars
236
Token cost
~841 tokens
SKILL.md length
347 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

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.

  • Works in 2 steps: Don't ask which destination. Stacking… → Target the current branch. Pass…
  • Tasks that involve Git worktrees
  • SKILL.md covers Step 0 — Refuse if not in a… and Steps 1–4 — Hand off into a…
  • Calls git and jq

What it does

Stack is an agent skill from imbue-ai/sculptor. 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.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git worktrees. It works with Git. The repository describes itself as: Build product with grounded, parallel coding agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/stack”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Don't ask which destination. Stacking always creates a new workspace, so
  2. Target the current branch. Pass --target-branch in

What it can do on your machine

Read from SKILL.md and the folder at commit f847102. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Stack loads about 841 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 347 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~841

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from imbue-ai/sculptor at commit f847102, republished under its MIT licence (© imbue-ai). 347 words, ~841 tokens.

Download SKILL.mdSave it as .claude/skills/stack/SKILL.md (or your agent's skills folder).
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…
user_invocable
true

Stack

ARGUMENTS: $ARGUMENTS

Step 0 — Refuse if not in a worktree workspace

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:

bash
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.

Steps 1–4 — Hand off into a new workspace

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:

  1. Don't ask which destination. Stacking always creates a new workspace, so skip handoff's Step 1 question entirely.
  2. Target the current branch. Pass --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:

bash
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, not sculpt workspace create. sculpt run creates the workspace, its agent, and the git worktree in one step. sculpt workspace create only 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, run sculpt agent create -w <ws_id> -p "...".

© imbue-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in sculptor/sculptor-experimental/skills/stack of imbue-ai/sculptor.

Open the folder on GitHubat commit f847102

Compare with similar skills

Stack next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Stack compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stack this skillimbue-ai/sculptor236—~841Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k33 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Pre-Release PR Triagejamiepine/voicebox57k—~3.1kAutomated safety check: PassMIT
Ccmanager Configkbwo/ccmanager1.3k—~1.5kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 33 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Ccmanager Config

    kbwo/ccmanager

    Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.

    1.3k GitHub stars~1.5k tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Builds a Cap feature in an isolated Git worktree with disposable dev resources, verification, a recorded demo and a neutral pull request, started with /building.

    23k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check: warnings

More from imbue-ai/sculptor

All 29 skills in this repo
  • Auto QA Iphone

    imbue-ai/sculptor

    QA the Sculptor mobile web UI on a real iOS Simulator, driven headlessly from a Mac.

    236 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Measure React Renders

    imbue-ai/sculptor

    Compare React component render counts between origin/main and the current branch during a user-defined UI scenario (e.g.

    236 GitHub stars~603 tokensUpdated yesterday
    Auto-check passed
  • Post PR To Slack

    imbue-ai/sculptor

    Post a one-line PR announcement to a Slack channel, and mark it :merged: when the PR merges.

    236 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Batch Claude Runner

    imbue-ai/sculptor

    Run Claude programmatically against collections of files in the codebase.

    236 GitHub stars~308 tokensUpdated yesterday
    Auto-check passed
  • Build Sculptor Extension

    imbue-ai/sculptor

    Build or modify a Sculptor extension — a runtime ESM module loaded into the Sculptor UI.

    236 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Code Review Checklist

    imbue-ai/sculptor

    Review a set of code changes against Sculptor's review categories and produce a markdown findings table.

    236 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Stack

What does Stack do?

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. Stack is an agent skill from imbue-ai/sculptor. 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 should I use Stack?

Stack fits situations like: tasks that involve Git worktrees.

How do I install Stack in Claude Code?

Run `npx skills add imbue-ai/sculptor --skill stack -a claude-code`. Or copy the skill folder (sculptor/sculptor-experimental/skills/stack in imbue-ai/sculptor) into .claude/skills/stack in your project. Claude Code loads it when a task matches its description.

How do I install Stack in Codex?

Run `npx skills add imbue-ai/sculptor --skill stack -a codex`. Or copy the skill folder (sculptor/sculptor-experimental/skills/stack in imbue-ai/sculptor) into .agents/skills/stack in your project. Codex loads it when a task matches its description.

Can I use Stack in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add imbue-ai/sculptor --skill stack -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stack, .gemini/skills/stack, .github/skills/stack and .opencode/skills/stack in your project.

What does Stack need to run?

Going by SKILL.md and its folder, Stack needs the command-line tools its instructions call (git and jq).

Does Stack access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Stack safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Stack use?

Stack is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Stack use?

About 841 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Stack?

Skills that share tags, products or a category with Stack: Finishing a Development Branch (obra/superpowers, 296k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars) and Pre-Release PR Triage (jamiepine/voicebox, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stack?

imbue-ai (a GitHub organization) maintains it in imbue-ai/sculptor, which has 236 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 6, 2026.

Source: imbue-ai/sculptor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.