[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AQ86FEEF6RGTJDYC1KJQXV":3,"skill-same:01M7AQ86FEEF6RGTJDYC1KJQXV":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7AQ86FEEF6RGTJDYC1KJQXV","managing-workspaces",null,"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.","dwin\u002Fskills","dwin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F172265?v=4","01M7AQ5KDX3MR3GYQMSCGSZCSA","Darwin Smith","01M7AQ5KEHZ1XC28H2ZW0BFAXF",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-workspaces\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: managing-workspaces\ndescription: 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.\n---\n\n# Managing workspaces\n\nA **workspace** is the checkout a task edits, plus the build lanes, temp data,\nand evidence it creates. The task cleans up only the workspaces and lanes it\ncreated. Shared stores and anything another task or session created belong to\nsomeone else.\n\n## Choose isolation\n\n1. Reuse the workspace already assigned to this task, then continue from\n   step 3.\n2. For new isolation, match the environment:\n   - **Cloud agent environments**, such as Cursor cloud agents, Codex cloud,\n     or Claude Code on the web, already give each task its own sandbox. Work\n     in it; Rift and extra worktrees add nothing there.\n   - **On a local machine**, prefer Rift: load the `rift` skill for its\n     commands. Create from a clean seed checkout, unless the user explicitly\n     requests a snapshot of a current workspace. When Rift is unavailable or\n     blocked, fall back to a Git worktree, then a fresh clone. Read\n     [Isolation](references\u002Fisolation.md) for Rift blockers, seeds, and the\n     fallbacks.\n3. Name a new workspace and its branch for the task, and start the branch from\n   the requested base. For an existing PR, fetch its branch and compare it with\n   the workspace HEAD before switching. Report commits that only HEAD has, and\n   keep them on a branch, before checking out the PR branch. Push to that branch\n   so the PR updates. A read-only review can use a detached checkout at the\n   fetched PR SHA.\n4. Record the source path, base commit, and any inherited staged, unstaged, or\n   untracked changes, so task commits include only task-owned edits.\n\nUse a second workspace or lane in the same task when the work needs another\nrepository, revision, toolchain, or concurrent writer.\n\nThe step is done when the workspace path, branch or SHA, base, and inherited\nchanges are recorded.\n\n## Respect ownership\n\nChange branches only inside the task's own workspace. A shared or regular\ncheckout keeps its branch: other sessions, editors, and builds read its files.\nWhen the task needs another branch, create a workspace for it.\n\nAct only on what this task created. Workspaces, lanes, caches, volumes,\ncontainers, and evidence from another agent or session stay untouched, even\nwhen they look stale. When ownership is unclear, treat the item as someone\nelse's and report it.\n\n## Keep storage bounded\n\nShare package stores and compiler caches outside checkouts, and reuse one\ncompatible build lane for the task's builds. On a local machine, check free\nspace against the [disk floor](references\u002Fstorage.md#disk-space) before\nstorage-heavy runs, such as large builds, long test loops, and benchmarks. Tests clean up the databases,\nclusters, and fixture directories they create.\n\nRead [Storage](references\u002Fstorage.md) before configuring caches or lanes,\nchoosing build profiles, running containerized builds, running long test\nloops, or keeping evidence.\n\n## Clean up\n\nRemove a task-created workspace and its lanes as soon as one of these holds:\n\n- the task's PR merged and no follow-up work will reuse the workspace;\n- a review-only task has reported its review; or\n- the user asks.\n\nA merge is the authorization: remove then, without asking. User or repository\ninstructions that say to keep workspaces take precedence.\n\nKeep a workspace that existed before the task, an implementation workspace\nwhile its PR is open, a workspace that planned follow-up work will reuse, and\nanything under an explicit retention hold, such as a snapshot the user asked\nfor.\n\n`rift gc`, shared caches, Docker volumes, retained evidence, and anything this\ntask did not create always need the user's approval. List them with their\npaths and sizes and ask.\n\nWhen the user asks to reclaim space or clear out old workspaces, audit first.\nBuild the list from the tools' own listings, such as `git worktree list`,\nbecause paths recalled from memory miss workspaces. For each one, record its\nsize, age, branch, whether that branch is merged, its PR state, and its\ntracked and untracked changes. For Git worktrees,\n[`scripts\u002Fworktree-audit.sh`](scripts\u002Fworktree-audit.sh) `[-b \u003Cbase>] [repo]`\nprints these columns for every worktree, plus unpushed commits, and removes\nnothing; its `--help` explains each column. It writes a control character in a path as an escape such as `\\t`, `\\n`,\nor `\\x1b`: for such a row, take the real path from\n`git worktree list --porcelain -z` before acting on it. Then sort the rows: merged, clean, and used by\nno session may go; uncommitted tracked changes wait for the user's decision; a\nworkspace another session is using stays, and so does a locked worktree. Show the table with the proposed\naction for each row before removing anything.\n\nBefore removing anything, confirm all three:\n\n- The tree is clean: `git status --porcelain --untracked-files=all --ignore-submodules=none` prints\n  nothing, and so does `git ls-files -v | LC_ALL=C grep '^[a-zS]'`, which lists the\n  files the index hides from status. Discarding\n  uncommitted files needs the user's explicit authorization. Check ignored\n  files with `git status --ignored`, move anything worth keeping out first,\n  and ask before removing evidence or anything whose disposability is unclear.\n- Every commit the task made is pushed or merged, or the task made no commits,\n  as in a read-only review.\n- Nothing is held for someone else, such as an untracked probe a reviewer told\n  an implementer to adopt, a running service, or a stash.\n\nThen use each tool's own remove or clean command, so its bookkeeping stays\nconsistent: the `rift` skill's removal steps for a Rift,\n`git worktree remove \u003Cpath>` for a worktree, and the build tool's clean command\nfor the task's lane. Delete a directory directly only for a standalone clone\nthe task created, after all three checks pass.\n\n`git worktree remove --force` discards uncommitted and untracked files. Use\nit only with the user's approval for that one workspace, given after you\nshowed what it would discard: the `git status --porcelain` output and the\ndiff of the tracked changes. Approval for one workspace does not carry to the\nnext.\n\n## Hand off\n\nReport the workspace path, branch or SHA, head commit, and whether it is\npushed; what was kept and why; what was removed and with which commands;\nstorage that removal did not reclaim, such as Rift trash; and any storage\nconcern found, such as a leaking test or a nearly full disk.\n","# Managing workspaces\n\nA **workspace** is the checkout a task edits, plus the build lanes, temp data,\nand evidence it creates. The task cleans up only the workspaces and lanes it\ncreated. Shared stores and anything another task or session created belong to\nsomeone else.\n\n## Choose isolation\n\n1. Reuse the workspace already assigned to this task, then continue from\n   step 3.\n2. For new isolation, match the environment:\n   - **Cloud agent environments**, such as Cursor cloud agents, Codex cloud,\n     or Claude Code on the web, already give each task its own sandbox. Work\n     in it; Rift and extra worktrees add nothing there.\n   - **On a local machine**, prefer Rift: load the `rift` skill for its\n     commands. Create from a clean seed checkout, unless the user explicitly\n     requests a snapshot of a current workspace. When Rift is unavailable or\n     blocked, fall back to a Git worktree, then a fresh clone. Read\n     [Isolation](references\u002Fisolation.md) for Rift blockers, seeds, and the\n     fallbacks.\n3. Name a new workspace and its branch for the task, and start the branch from\n   the requested base. For an existing PR, fetch its branch and compare it with\n   the workspace HEAD before switching. Report commits that only HEAD has, and\n   keep them on a branch, before checking out the PR branch. Push to that branch\n   so the PR updates. A read-only review can use a detached checkout at the\n   fetched PR SHA.\n4. Record the source path, base commit, and any inherited staged, unstaged, or\n   untracked changes, so task commits include only task-owned edits.\n\nUse a second workspace or lane in the same task when the work needs another\nrepository, revision, toolchain, or concurrent writer.\n\nThe step is done when the workspace path, branch or SHA, base, and inherited\nchanges are recorded.\n\n## Respect ownership\n\nChange branches only inside the task's own workspace. A shared or regular\ncheckout keeps its branch: other sessions, editors, and builds read its files.\nWhen the task needs another branch, create a workspace for it.\n\nAct only on what this task created. Workspaces, lanes, caches, volumes,\ncontainers, and evidence from another agent or session stay untouched, even\nwhen they look stale. When ownership is unclear, treat the item as someone\nelse's and report it.\n\n## Keep storage bounded\n\nShare package stores and compiler caches outside checkouts, and reuse one\ncompatible build lane for the task's builds. On a local machine, check free\nspace against the [disk floor](references\u002Fstorage.md#disk-space) before\nstorage-heavy runs, such as large builds, long test loops, and benchmarks. Tests clean up the databases,\nclusters, and fixture directories they create.\n\nRead [Storage](references\u002Fstorage.md) before configuring caches or lanes,\nchoosing build profiles, running containerized builds, running long test\nloops, or keeping evidence.\n\n## Clean up\n\nRemove a task-created workspace and its lanes as soon as one of these holds:\n\n- the task's PR merged and no follow-up work will reuse the workspace;\n- a review-only task has reported its review; or\n- the user asks.\n\nA merge is the authorization: remove then, without asking. User or repository\ninstructions that say to keep workspaces take precedence.\n\nKeep a workspace that existed before the task, an implementation workspace\nwhile its PR is open, a workspace that planned follow-up work will reuse, and\nanything under an explicit retention hold, such as a snapshot the user asked\nfor.\n\n`rift gc`, shared caches, Docker volumes, retained evidence, and anything this\ntask did not create always need the user's approval. List them with their\npaths and sizes and ask.\n\nWhen the user asks to reclaim space or clear out old workspaces, audit first.\nBuild the list from the tools' own listings, such as `git worktree list`,\nbecause paths recalled from memory miss workspaces. For each one, record its\nsize, age, branch, whether that branch is merged, its PR state, and its\ntracked and untracked changes. For Git worktrees,\n[`scripts\u002Fworktree-audit.sh`](scripts\u002Fworktree-audit.sh) `[-b \u003Cbase>] [repo]`\nprints these columns for every worktree, plus unpushed commits, and removes\nnothing; its `--help` explains each column. It writes a control character in a path as an escape such as `\\t`, `\\n`,\nor `\\x1b`: for such a row, take the real path from\n`git worktree list --porcelain -z` before acting on it. Then sort the rows: merged, clean, and used by\nno session may go; uncommitted tracked changes wait for the user's decision; a\nworkspace another session is using stays, and so does a locked worktree. Show the table with the proposed\naction for each row before removing anything.\n\nBefore removing anything, confirm all three:\n\n- The tree is clean: `git status --porcelain --untracked-files=all --ignore-submodules=none` prints\n  nothing, and so does `git ls-files -v | LC_ALL=C grep '^[a-zS]'`, which lists the\n  files the index hides from status. Discarding\n  uncommitted files needs the user's explicit authorization. Check ignored\n  files with `git status --ignored`, move anything worth keeping out first,\n  and ask before removing evidence or anything whose disposability is unclear.\n- Every commit the task made is pushed or merged, or the task made no commits,\n  as in a read-only review.\n- Nothing is held for someone else, such as an untracked probe a reviewer told\n  an implementer to adopt, a running service, or a stash.\n\nThen use each tool's own remove or clean command, so its bookkeeping stays\nconsistent: the `rift` skill's removal steps for a Rift,\n`git worktree remove \u003Cpath>` for a worktree, and the build tool's clean command\nfor the task's lane. Delete a directory directly only for a standalone clone\nthe task created, after all three checks pass.\n\n`git worktree remove --force` discards uncommitted and untracked files. Use\nit only with the user's approval for that one workspace, given after you\nshowed what it would discard: the `git status --porcelain` output and the\ndiff of the tracked changes. Approval for one workspace does not carry to the\nnext.\n\n## Hand off\n\nReport the workspace path, branch or SHA, head commit, and whether it is\npushed; what was kept and why; what was removed and with which commands;\nstorage that removal did not reclaim, such as Rift trash; and any storage\nconcern found, such as a leaking test or a nearly full disk.\n",{"name":5,"description":7},"main","89d62b0a57b82473520f3073d3064e393d6472b7","skills\u002Fmanaging-workspaces","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills","https:\u002F\u002Fgithub.com\u002Fdwin","K8s, Golang, Python. Sr. Platform\u002FBackend Dev","2026-11-14 10:53:03",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add dwin\u002Fskills --skill managing-workspaces",{"tool":37,"command":38},"bunx","bunx skills add dwin\u002Fskills --skill managing-workspaces",{"tool":40,"command":41},"pnpm","pnpm dlx skills add dwin\u002Fskills --skill managing-workspaces","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-workspaces\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",116,"https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-workspaces\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fisolation.md",2829,"https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-workspaces\u002Freferences\u002Fisolation.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fstorage.md",4106,"https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-workspaces\u002Freferences\u002Fstorage.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fworktree-audit.sh","SCRIPT","脚本",21105,"https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmanaging-workspaces\u002Fscripts\u002Fworktree-audit.sh",[66,73,80,87,94,101],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7E0Q4SMGDP82R02RSDRP3XF","visual-explainer","Render interactive visual explanations, architecture simulators, option tradeoff matrices, permission or blast-radius maps, and phased rollout cards on the host's native visual surface. Use when answering a question that compares three or more options across multiple dimensions, traces a multi-gate request or state flow, maps permissions or blast radius, lays out a multi-phase architecture plan, or when the user asks to visualize or sends `viz`.","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-explainer\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7AQB2M4GGRBFSGMFEVSHBD1","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7AQAYVB4W4VG8PYP6AWN1BC","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7AQATP80423S3HC84WHQ9NR","why","Find out why code is the way it is from its history, reviews, tickets, docs, and other records, and say how sure each answer is. Use when the user asks why something is built, written, or behaves a certain way, why a choice was made, or where a number or limit came from.","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7AQANTS86HYGP256PPZ4BZB","whats-next","Match a task to the skill, flow, or playbook that fits it. Use when the user asks what to do next or which workflow applies, when a task fits no other skill, and for these kinds of work, which have playbooks here - proving a property of concurrent or stateful code with a model checker or verifier, matching a UI pixel for pixel, and diagnosing a live process or a captured profile, trace, or heap snapshot.","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwhats-next\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7AQAK78JWNRJAZ9N17QVY76","wayfinder","Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fdwin\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]