cleanup-workspaces
Audit integrated Git/Jujutsu workspaces, stale registrations, or authorized temporary lanes; apply only an approved exact cleanup plan.
Group: Utility · Availability: Authored here · Scope: project
When to choose it
You want to audit integrated workspaces, stale registrations, or explicitly authorized temporary lanes.
Expected result: An evidence-based cleanup plan, followed only by the exact approved removals and a post-cleanup audit.
Install this skill
You need Node.js 22.20 or newer, Git, and npm/npx. Run this command from the target project after reviewing its instructions and the skill source.
npx -y skills@1.7.4 add https://github.com/dragoscirjan/ai/tree/main/.agents/skills/utility/cleanup-workspaces --skill cleanup-workspacesThis command selects only cleanup-workspaces. It does not install the rest of the collection or the optional companions listed on this page.
Required instruction packages: isolated-workspace. If any are missing, the agent must stop and ask you to install them before continuing. The command above does not install these requirements.
Before applying a skill, the agent must verify that it and its declared requirements are installed. Missing instructions stop the task. The agent must ask you to install them rather than fetch, synchronize, substitute, or continue automatically.
See installation choices for prerequisites and direct install examples.
Try it
Load the installed skill in your harness, then adapt this request to your project. This is a prompt, not a shell command.
Use cleanup-workspaces to audit this repository. Show eligible and retained workspaces, exact paths and tips, and the plan ID. Do not remove anything yet.Requirements and boundaries
Catalogued instruction requirements: isolated-workspace
Resolve required instructions in their declared order before applying the skill. The project-specific requires extension is not a native harness installation guarantee. A missing requirement stops the affected phase; it does not authorize a download.
Runtime and setup:
- Requires Bun and either Git with worktree support or Jujutsu 0.38 or newer with workspace support.
Resolve isolated-workspace first. Dirty, uncertain, or unproven lanes remain protected; audit permission is not removal permission. Never infer integration from a similar or squash-shaped diff alone.
Useful combinations
subagent-orchestration— The operator has authorized bounded specialist, independent-review, or parallel work.retro— A bounded completed work period has enough evidence to review what helped, failed, or should change.
These are optional companions, not extra declared requirements. Choose only what the task needs.
For focused procedures and utilities, see supporting tools.
Source and harness support
The catalog records this entry as optional, not as automatically selected for every project.
Read the authoritative skill instructions. This link follows the source repository's configured catalog ref; the maintained local copy is the documented entry.
Supported catalog harnesses: pi, opencode, claude-code. Runtime availability and actual discovery must still be checked in your chosen harness.