/dwin-skills:managing-workspacesfrom Dwin Skills
Manage the lifecycle of isolated task checkouts and their build storage. Use when creating or removing a Rift, Git worktree, or task clone; when a task needs a different branch than a shared checkout has; or when sizing build lanes, caches, or disk for a long build or test run.
Ships in Dwin Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A workspace is the checkout a task edits, plus the build lanes, temp data, and evidence it creates. The task cleans up only the workspaces and lanes it created. Shared stores and anything another task or session created belong to someone else.
rift skill for its
commands. Create from a clean seed checkout, unless the user explicitly
requests a snapshot of a current workspace. When Rift is unavailable or
blocked, fall back to a Git worktree, then a fresh clone. Read
Isolation for Rift blockers, seeds, and the
fallbacks.Use a second workspace or lane in the same task when the work needs another repository, revision, toolchain, or concurrent writer.
The step is done when the workspace path, branch or SHA, base, and inherited changes are recorded.
Change branches only inside the task's own workspace. A shared or regular checkout keeps its branch: other sessions, editors, and builds read its files. When the task needs another branch, create a workspace for it.
Act only on what this task created. Workspaces, lanes, caches, volumes, containers, and evidence from another agent or session stay untouched, even when they look stale. When ownership is unclear, treat the item as someone else's and report it.
Share package stores and compiler caches outside checkouts, and reuse one compatible build lane for the task's builds. On a local machine, check free space against the disk floor before storage-heavy runs, such as large builds, long test loops, and benchmarks. Tests clean up the databases, clusters, and fixture directories they create.
Read Storage before configuring caches or lanes, choosing build profiles, running containerized builds, running long test loops, or keeping evidence.
Remove a task-created workspace and its lanes as soon as one of these holds:
A merge is the authorization: remove then, without asking. User or repository instructions that say to keep workspaces take precedence.
Keep a workspace that existed before the task, an implementation workspace while its PR is open, a workspace that planned follow-up work will reuse, and anything under an explicit retention hold, such as a snapshot the user asked for.
rift gc, shared caches, Docker volumes, retained evidence, and anything this
task did not create always need the user's approval. List them with their
paths and sizes and ask.
When the user asks to reclaim space or clear out old workspaces, audit first.
Build the list from the tools' own listings, such as git worktree list,
because paths recalled from memory miss workspaces. For each one, record its
size, age, branch, whether that branch is merged, its PR state, and its
tracked and untracked changes. For Git worktrees,
scripts/worktree-audit.sh [-b <base>] [repo]
prints these columns for every worktree, plus unpushed commits, and removes
nothing; its --help explains each column. It writes a control character in a path as an escape such as \t, \n,
or \x1b: for such a row, take the real path from
git worktree list --porcelain -z before acting on it. Then sort the rows: merged, clean, and used by
no session may go; uncommitted tracked changes wait for the user's decision; a
workspace another session is using stays, and so does a locked worktree. Show the table with the proposed
action for each row before removing anything.
Before removing anything, confirm all three:
git status --porcelain --untracked-files=all --ignore-submodules=none prints
nothing, and so does git ls-files -v | LC_ALL=C grep '^[a-zS]', which lists the
files the index hides from status. Discarding
uncommitted files needs the user's explicit authorization. Check ignored
files with git status --ignored, move anything worth keeping out first,
and ask before removing evidence or anything whose disposability is unclear.Then use each tool's own remove or clean command, so its bookkeeping stays
consistent: the rift skill's removal steps for a Rift,
git worktree remove <path> for a worktree, and the build tool's clean command
for the task's lane. Delete a directory directly only for a standalone clone
the task created, after all three checks pass.
git worktree remove --force discards uncommitted and untracked files. Use
it only with the user's approval for that one workspace, given after you
showed what it would discard: the git status --porcelain output and the
diff of the tracked changes. Approval for one workspace does not carry to the
next.
Report the workspace path, branch or SHA, head commit, and whether it is pushed; what was kept and why; what was removed and with which commands; storage that removal did not reclaim, such as Rift trash; and any storage concern found, such as a leaking test or a nearly full disk.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dwin/skills --plugin dwin-skills52 skills in this plugin
/arenaHave several agents attempt the same task, pick the strongest attempt as the base, and graft the best parts of the others into it. Use for "arena this" or when one attempt at an artifact would lock in the wrong shape./autopilotDrive a branch to a ready pull request. Keeps it current with its base, gets local review from a different model family, marks it ready, and handles CI and AI-reviewer feedback. With `merge`, also merges it. Use when the user invokes autopilot./babysitMonitor or babysit an open pull request through CI, mergeability changes, and review feedback. Use when the user asks to watch a PR, keep checking it, diagnose checks, address in-scope findings, or stay with it until it is merged, closed, or genuinely needs user input.