cleanup

cleanup is a skill for Claude Code from udecode/dotai. It costs 81 tokens per session (1,507 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 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,507 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.00081 $0.01507
Opus 5.5 $0.00032 $0.00603
Sonnet 5.5 $0.00016 $0.00301
Haiku 4.5 $0.00008 $0.00151

Measured today against content hash f44b85a42617, 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/scan.mjs, scripts/scan.test.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 · 25 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

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed f44b85a42617
  2. yesterday 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,158 stars, last pushed today), with no licence file. It adds 81 tokens to every session and 1,507 once invoked, about $0.0003 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

Other skills, from other repositories

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

chinese-commit-conventions

A Chinese-language guide to Conventional Commits, a format for writing consistent Git commit messages, plus related changelog, commit-checking, and commit-helper configuration.

jnMetaCode/superpowers-zh · 65 tokens

managing-git

Manages Git workflows including branching, commits, and pull requests. Use when working with Git, creating commits, opening PRs, managing branches, resolving conflicts, or when asked about version control best practices.

CloudAI-X/claude-workflow-v2 · 46 tokens

devops/changelog-generation

A method for creating a CHANGELOG, a document that records what changed in each software release. It reads Git commit history and release-pipeline reports, then groups changes using common commit and changelog conventions.

echoVic/boss-skill · 36 tokens