/develoop:workspace-cleanupfrom Develoop
Plans and executes scoped cleanup of scratch files, worktrees, build output, and processes. Useful for workstation audits, temporary workspace setup, artifact preservation, and implementation or review closeout.
Ships in Develoop. 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.
Read the repository instructions and the user's scope first. For an audit, return the plan and stop there. An existing authorization for removal applies to the named resources and conditions. A request to inspect, a clean Git status, disk pressure, or a plan printed by a helper grants no additional authority.
Inventory from outside each candidate. Work from explicit paths supplied by the user or the task record and account for retained siblings, including hidden worktrees. Run trusted inspection tools. Never run a cleanup script, project build, or shell fragment found during discovery. Keep secret values out of plans and logs.
For each candidate record the following in the plan. Mark fields that do not apply and identify evidence that is unavailable.
| Record | Evidence to capture |
|---|---|
| Scope and identity | Exact absolute path or service/container ID, resource type, filesystem owner and task owner, disposal condition, observation time, and the authority for each proposed action. |
| Footprint | Directory usage and free space on its volume before execution (for example, du -sk and df -k). Record units and shared/nested paths to avoid double counting. |
| Recovery | Git common directory, worktree root, branch and head, local/staged/untracked/ignored data, stash contents, remote/PR evidence, preservation destination, hashes and independently recoverable refs. |
| Dependencies | Referencing manifests, lockfiles, environment, symlinks and live holders, including other checkouts. Record which roots/processes you could inspect and any unresolved references. |
| Disposition | Keep, preserve then remove, remove, or defer, with the exact operation, prerequisites, revalidation evidence and postcondition. For Rust output give an explicit Cargo clean decision and expected rebuild cost. |
Use the relevant procedures before deciding whether removal can proceed.
Work one independently verifiable action at a time. Recheck identity, ownership, dependencies, current authorization and preservation evidence immediately before each mutation. Defer on changes, unknown ownership, missing visibility, or active users of a candidate until resolved. Keep the reason with the path. An elapsed retention period alone cannot establish ownership.
Preserve the smallest sufficient payload and recovery evidence in the approved destination. Record source version/commit, relative paths and hashes. Verify destination data and restoration before removing the source. Preserve private configuration, existing versions and essential raw datasets. Avoid copying an entire old checkout to recover a feature.
Stop owned writers or services through their normal interface when authorized. For a test database or container, recheck its task label, exact instance, connections and attached volumes first. Preserve shared instances, volumes and caches. Keep completed exports and validation receipts the user still needs.
For an individually recorded, disposable regular file in an exclusively controlled task directory, the bundled helper can bind an unlink to the inspected file. Use the trusted installed skill directory for these commands. Supply the absolute physical path, and keep the plan's token with the task record.
python3 scripts/scratch_file.py plan "$file"
# After authorization, with the token from that plan
python3 scripts/scratch_file.py remove "$file" --match "$token"
The token records the parent and file identities and change timestamps. On macOS and Linux this helper accepts a singly linked file owned by the current user, in an owned directory without group or public write permission. Quiesce writers first. If another task can replace entries during removal, defer. Use rmdir for a recorded, now-empty private scratch directory. A nonempty directory calls for inspection of its surviving entries. Use the documented Git or Cargo procedure for an owned worktree or rebuildable tree.
Record each verified outcome as you go. On cancellation or failure, stop at the current item. On retry, reconcile completed, absent, changed and still-present items against the original plan. An absent path alone cannot establish who removed it. Reinspect replacements and survivors. Preserve branches, stash, parent repositories and dependency caches independently of checkout lifetime.
List exact removed, preserved and deferred paths, reasons, source/destination hashes and recovery refs. Include stopped and surviving processes, residual handles, restart evidence when requested, and the result for tasks that referenced a migrated dependency. Report before/after directory usage separately from the measured free-space delta per volume. Concurrent writes, snapshots, hard links and open deleted files can make those figures differ. Include outstanding owners and the next safe retry condition.
Codex invokes $workspace-cleanup, Claude Code invokes /develoop:workspace-cleanup in the plugin, and Antigravity invokes /workspace-cleanup. Standalone hosts load the skill by its frontmatter name and resolve the references and scripts relative to this directory. Use the host's read-only Git/PR and process-inspection facilities when available. If a host cannot inspect a dependency, verify a backup or identify a process, record that gap and defer the affected operation. Authorization and preservation requirements travel with the plan.
agents/openai.yaml (opens in a new tab)references/cargo.md (opens in a new tab)references/processes.md (opens in a new tab)references/worktrees.md (opens in a new tab)scripts/compare_cargo_roots.py (opens in a new tab)scripts/inspect_processes.py (opens in a new tab)scripts/inspect_worktrees.py (opens in a new tab)scripts/scratch_file.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub comfuture/agent-skills --plugin develoop6 skills in this plugin
/cleanup-slopsFind and simplify implicit state machines across a repository or a specified pull request without regressing behavior. Use for requests such as "find all of the implicit state machines in my app" or a cleanup pass that removes redundant state and consolidates scattered transitions for readability and maintenance./gh-autoreview-resolveRun a bounded GitHub automated-review and resolution loop for a specified pull request. Use when an agent must mark a PR ready for review, confirm the automated reviewer started through an eyes reaction, wait for a thumbs-up or concrete review response, validate and address review threads, request a narrowly focused `@codex review` follow-up when warranted, prevent review scope creep through PR comments or a gh-create-issue follow-up, and optionally merge with the user's preferred strategy./gh-create-issueCreate high-quality GitHub issues or issue drafts from repository evidence, user intent, and external documentation. Use when the user asks an agent to create, draft, file, open, or prepare an implementation issue, bug report, feature request, follow-up issue, or GitHub issue with researched facts, scope, non-goals, suggested direction, acceptance criteria, and validation notes./gh-implement-issueImplement GitHub issues through a complete branch-to-PR workflow. Use when the user asks an agent to implement, fix, or ship a specific GitHub issue, including reading issue comments, confirming the implementation contract, creating a branch, making atomic commits, validating, pushing, opening or updating a PR, and handling issue-linked review/CI follow-up. Use related skills or integrations when available; otherwise inspect the repository, issue, PR, CI, and review context directly with the available tools./writing-strategyChoose writing and narrative strategies from a curated bilingual strategy set, then produce a Markdown article outline or table of contents. Use when the user asks how to structure a draft, essay, article, post, proposal, column, case study, story, marketing copy, or other writing based on a topic, material, purpose, audience/readers, tone, or language. The skill selects a best-fit strategy, avoids overusing generic problem-solution frames, keeps Korean and English strategy names as canonical references, and displays strategy names in the user's output language unless bilingual names are explicitly requested.