Agent Native

stack

This skill creates a new stacked workspace branched from the current branch, enabling parallel work where the new branch targets the current branch as its base.

by ImbueOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (imbue-ai)

Agents
Claude Code
License
MIT (permissive)
Pin
f847102pinned Oct 9, 2026
Context cost
about 670 tokenswhen the skill loads
GitHub stars
236on imbue-ai/sculptor
Scripts
None found

What it does

“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.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill creates a new stacked workspace branched from the current branch, enabling parallel work where the new branch targets the current branch as its base. It uses git worktree to set up the workspace and hands off to a new agent focused on dependent work. The new workspace's diff is scoped to only changes made on top of the current branch.

When to use it

  • Split current work into a parallel branch for dependent tasks
  • Create a fresh agent to tackle follow-up work stacked on this branch
  • Keep one agent focused while another handles related parallel work
  • Isolate changes that build directly on the current branch

When not to

  • Using clone or in-place workspaces instead of worktree strategy
  • When no git worktree support is available in your setup

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add imbue-ai/sculptor --skill stack

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install imbue-ai/sculptor stack@f847102ada1d6896bf6a3a5eccde996760526d9e

Installs the commit we checked (f847102).

Copy by hand

Download the folder at f847102 and put it in .claude/skills/stack for Claude Code and in .agents/skills/stack for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at f847102

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "stack" by Imbue.

Source, pinned to commit f847102ada1d6896bf6a3a5eccde996760526d9e:
https://github.com/imbue-ai/sculptor/tree/f847102ada1d6896bf6a3a5eccde996760526d9e/sculptor/sculptor-experimental/skills/stack

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/stack/ for Claude Code and .agents/skills/stack/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/imbue/stack

SKILL.md at the pin

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

# 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 "..."`.

From imbue-ai/sculptor at f847102, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.md.

View SKILL.md on GitHub at f847102

Files

1 file, 3.4 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at f847102
All 50 skills from Imbue

More from Imbue

  • architect

    Generates an architecture document for a feature by reading the existing spec, analyzing the codebase deeply, and conducting guided Q&A with the user to…

    Claude Code · about 4K tokens · pinned 6 days ago

  • build

    This skill executes a multi-step implementation plan by working through task files sequentially.

    Claude Code · about 1.1K tokens · pinned 6 days ago

  • build-sculptor-extension

    Build or modify Sculptor extensions, which are runtime ES modules that add panels, overlays, widgets, home views, or settings UI to the Sculptor frontend.

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 3.3K tokens · pinned 6 days ago

  • fix-bug

    Fixes bugs using test-driven development with an interactive or autonomous workflow.

    Claude Code · about 9.8K tokens · pinned 6 days ago

  • handoff

    This skill hands off ongoing work to a fresh agent, either in the same workspace or a new isolated workspace, while preserving context through a synthesized…

    Claude Code · about 1.1K tokens · pinned 6 days ago

  • help

    This skill fetches the latest Sculptor documentation from GitHub and answers user questions about how to use Sculptor's features, including workspaces…

    Claude Code · about 880 tokens · pinned 6 days ago

All Coding workflow skills
  • planning

    This skill orchestrates multi-workflow projects with dependencies and shared data tables by creating a task graph in the orchestrator via the create-tasks tool.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 6 days ago

  • progressive-building

    This skill implements incremental workflow development for agents building or extending workflows.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 6 days ago

  • workflow-builder

    Builds and edits n8n workflows using the TypeScript SDK.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 14.2K tokens · pinned 6 days ago

  • remotion-upgrade

    This skill upgrades Remotion and its related packages to the latest stable version.

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago

  • remotion-upgrade

    This skill upgrades Remotion and related packages across a project, automatically detecting the package manager and workspaces.

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago

  • final-release-review

    Audits Python SDK release candidates or plans against the previous release, comparing diffs for regressions, API changes, and version compatibility.

    by OpenAIOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 5.4K tokens · pinned 6 days ago

Open roles at Imbue

No open roles at Imbue on the Agent Native jobs board right now.

Browse the jobs board

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use