managing-workspaces
Manage the lifecycle of isolated task checkouts and their build storage.
Skill by dwin
Chalk Labs
Need help deploying managing-workspaces?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dwin-managing-workspaces
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/managing-workspaces
What's inside
- Skill name
managing-workspaces- Description
- 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.
- License
- MIT
- Instructions
- 101 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- openai.yaml · agents/
- isolation.md · references/
- storage.md · references/
SKILL.md (first lines)
# Managing workspaces
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.
## Choose isolation
1. Reuse the workspace already assigned to this task, then continue from
step 3.
2. For new isolation, match the environment:
- **Cloud agent environments**, such as Cursor cloud agents, Codex cloud,
or Claude Code on the web, already give each task its own sandbox. Work
in it; Rift and extra worktrees add nothing there.
- **On a local machine**, prefer Rift: load the `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](references/isolation.md) for Rift blockers, seeds, and the
fallbacks.
3. Name a new workspace and its branch for the task, and start the branch from
the requested base. For an existing PR, fetch its branch and compare it with
the workspace HEAD before switching. Report commits that only HEAD has, and
keep them on a branch, before checking out the PR branch. Push to that branch
so the PR updates. A read-only review can use a detached checkout at the
fetched PR SHA.
4. Record the source path, base commit, and any inherited staged, unstaged, or
untracked changes, so task commits include only task-owned edits.
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.
## Respect ownership
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.
## Keep storage bounded
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](references/storage.md#disk-space) 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](references/storage.md) before configuring caches or lanes,
choosing build profiles, running containerized builds, running long test
loops, or keeping evidence.
## Clean up
Remove a task-created workspace and its lanes when the user or repository
instructions authorize cleanup and one of these holds:
- the task's PR merged;
- a review-only task has reported its review; or
- the user asks.
Without that authorization, list the candidates with their paths and sizes and
ask. `rift gc`, shared caches, Docker volumes, retained evidence, and anything
this task did not create always need the user's approval.
Keep a workspace that existed before the task, an implementation workspace
while its PR is open, and anything under an explicit retention hold, such as a
snapshot the user asked for.
Before removing anything, confirm all three:
- The tree is clean: `git status --porcelain` prints nothing. 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.
- Every commit the task made is pushed or merged, or the task made no commits,
as in a read-only review.
- Nothing is held for someone else, such as an untracked probe a reviewer told
an implementer to adopt, a running service, or a stash.
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.
## Hand off
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.From dwin/skills, MIT.
More from dwin/skills
- 0.570score
file-pr
dwin
Create, open, file, or submit a pull request with an outcome-focused title and description.
SkillAFreshness: AClaude Code +9 - 0.570score
autopilot
dwin
Drive a branch to a ready pull request.
SkillAFreshness: AClaude Code +9 - 0.567score
engineering-principles
dwin
Apply simple, type-safe engineering practices while implementing, refactoring, testing, or reviewing TypeScript, Go, or C#.
SkillAFreshness: AClaude Code +9 - 0.565score
grilling
dwin
Interview the user rigorously about a plan, design, decision, or idea until consequential assumptions and branches are resolved.
SkillAFreshness: AClaude Code +9 - 0.565score
babysit-pr
dwin
Monitor or babysit an open pull request through CI, mergeability changes, and review feedback.
SkillAFreshness: AClaude Code +9 - 0.563score
sprites
dwin
Run builds, tests, data jobs, development services, or agent tasks on Fly.io Sprites when local CPU, memory, disk, or Linux compatibility is a constraint.
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
dwin
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.539score
code-review
dwin
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding…
SkillAFreshness: AClaude Code +9 - 0.533score
implement
dwin
Implement a piece of work based on a spec or set of tickets.
SkillAFreshness: AClaude Code +9 - 0.533score
handoff
dwin
Compact the current conversation into a handoff document for another agent to pick up.
SkillAFreshness: AClaude Code +9 - 0.530score
retro
dwin
Conduct a retrospective on a coding session.
SkillAFreshness: AClaude Code +9 - 0.524score
focus-output
dwin
Keep responses action-first, low-distraction, and easy to resume for the rest of the session.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 20, 2026 (10 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dwin/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dwin
- 0.570score
autopilot
dwin
Drive a branch to a ready pull request.
SkillAFreshness: AClaude Code +9 - 0.570score
file-pr
dwin
Create, open, file, or submit a pull request with an outcome-focused title and description.
SkillAFreshness: AClaude Code +9 - 0.567score
engineering-principles
dwin
Apply simple, type-safe engineering practices while implementing, refactoring, testing, or reviewing TypeScript, Go, or C#.
SkillAFreshness: AClaude Code +9 - 0.565score
babysit-pr
dwin
Monitor or babysit an open pull request through CI, mergeability changes, and review feedback.
SkillAFreshness: AClaude Code +9 - 0.565score
grilling
dwin
Interview the user rigorously about a plan, design, decision, or idea until consequential assumptions and branches are resolved.
SkillAFreshness: AClaude Code +9 - 0.563score
sprites
dwin
Run builds, tests, data jobs, development services, or agent tasks on Fly.io Sprites when local CPU, memory, disk, or Linux compatibility is a constraint.
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get managing-workspaces running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
managing-workspaces skill. Agent Mart. https://agentmart.dev/skills/dwin-managing-workspaces (last updated 2026-10-24)