cleanup

cleanup is a skill for Claude Code from udecode/dotai. It costs 129 tokens per session (4,453 once invoked), scanned C, original, no licence file.

A cleanup skill that removes unused Git worktrees and Next.js cache folders while preserving ones still used by a session, process, or running server.

In plain words
What is it for?
It helps clean unused Git worktrees and Next.js build caches, investigate disk usage, and remove obsolete project files.
Why use it?
It frees project disk space without deleting worktrees or caches that are currently in use.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit It helps clean unused Git worktrees and Next.js build caches, investigate disk usage, and remove obsolete project files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/udecode/dotai/cleanup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add udecode/dotai --skill cleanup
Clone the repo
git clone --depth 1 https://github.com/udecode/dotai

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/udecode/dotai/cleanup/github.svg)](https://agentmods.dev/skills/udecode/dotai/cleanup)
Your own site
<a href="https://agentmods.dev/skills/udecode/dotai/cleanup"><img src="https://agentmods.dev/badge/skills/udecode/dotai/cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/udecode/dotai/cleanup"><img src="https://agentmods.dev/badge/skills/udecode/dotai/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00129 $0.04453
Opus 5.5 $0.00052 $0.01781
Sonnet 5.5 $0.00026 $0.00891
Haiku 4.5 $0.00013 $0.00445

Measured 11d ago against content hash 2b9aa24dc88d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

cleanup scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/daily.mjs, scripts/daily.test.mjs, scripts/databases.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

pstack's Worktree and simulator cleanup playbook is the method, and this skill wins where the two differ. When you remove a worktree yourself, use only `git worktree remove --force`, never `rm -rf` or `git worktree prune
skills/cleanup/SKILL.md · 46 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +2 lines · +15 tokens per session 2b9aa24dc88d
  2. 12d ago Changed 872d3e0aff53
  3. 14d ago Changed · +1 lines · +7 tokens per session 838b7ed1b2df
  4. 15d ago Changed · +2 lines · +26 tokens per session 68b98b52f758
  5. 16d ago Changed · +13 lines 9620ff1ef77b
  6. 1mo ago Changed · +3 lines be718b77d012
  7. 1mo ago Changed f2cf8112476d
  8. 1mo ago Changed e2d280c8cbd7
  9. 1mo ago Changed f44b85a42617
  10. 1mo ago First seen · 25 lines · 81 tokens per session scan C c77f86824f72

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository udecode/dotai (1,163 stars, last pushed 6d ago), with no licence file. It adds 129 tokens to every session and 4,453 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-17.

Related

cleanup compared with skills from other repositories

cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cleanupudecode/dotaiSkill1.2k6d agononeC129Claude Code
git-advanced-workflowswshobson/agentsSkill43k2d agoMITA54Claude Code
workflow-patternswshobson/agentsSkill43k2d agoMITA35Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.6kyesterdayMITA69Claude Code
chinese-commit-conventionsjnMetaCode/superpowers-zhSkill8.6kyesterdayMITA65Claude Code
devops/changelog-generationechoVic/boss-skillSkill6302d agoMITA36Claude Code
dsh-pre-push-checksqufei1993/skills-hubSkill1.9k3d agoMITA51Codex