plate: Skill for Claude Code

.agents/skills/cleanup/SKILL.md

cleanup is a skill for Claude Code from udecode/plate. It costs 81 tokens per session (2,537 once invoked), scanned C, original, no licence file.

A disk-cleanup tool for a coding project. It removes unused Git worktrees and Next.js cache folders while leaving ones used by sessions, processes, or running servers.

In plain words
What is it for?
Use it to find and remove unused worktrees and build caches, or to investigate what is using project disk space.
Why use it?
It frees disk space without deleting worktrees or caches that are still in use.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is udecode/plate's own configuration. It tells Claude Code how to work on plate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything plate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to udecode/plate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/udecode/plate/next/.agents/skills/cleanup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/udecode/plate

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/plate/cleanup/github.svg)](https://agentmods.dev/skills/udecode/plate/cleanup)
Your own site
<a href="https://agentmods.dev/skills/udecode/plate/cleanup"><img src="https://agentmods.dev/badge/skills/udecode/plate/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/plate/cleanup"><img src="https://agentmods.dev/badge/skills/udecode/plate/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 2,537 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.02537
Opus 5.5 $0.00032 $0.01015
Sonnet 5.5 $0.00016 $0.00507
Haiku 4.5 $0.00008 $0.00254

Measured today against content hash be718b77d012, 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
.agents/skills/cleanup/SKILL.md · 28 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

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 · +3 lines be718b77d012
  2. 7d ago Changed f2cf8112476d
  3. 12d 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/plate (16,680 stars, last pushed today), with no licence file. It adds 81 tokens to every session and 2,537 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

merge-seed

Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.

kriasoft/react-starter-kit · 49 tokens

triaging-merge-queue-failures

Decision procedure for a PR that failed or was removed from the Trunk merge queue: classify the kick (superseded by a newer commit, not mergeable, a gate that failed on a cancelled run, real failure, one-off flake, or repo-wide flaky/infra issue) and take the matching action (wait, hold and fix, requeue once, or…

PostHog/posthog · 180 tokens

writing-pr-descriptions

Shapes a PR body so a reviewer can understand the problem and change quickly. Use ALWAYS before writing or editing a PR description, before gh pr create or gh pr edit --body, or when asked to improve a description. States who is affected and what is wrong for them in Problem, taken from a source and never invented…

PostHog/posthog · 191 tokens

autoresolving-pr-conflicts

Operating procedure for the conflict-autoresolver agent: sweep open PostHog/posthog PRs that conflict with master, resolve the trivial conflicts (generated artifacts deterministically, source conflicts with judgment), land one merge commit on the PR head, and flag everything else for a human. Use when running as the…

PostHog/posthog · 143 tokens

merging-prs

Merge a PR into master through the Trunk merge queue and babysit it until it lands. Enqueue with the trunk merge CLI (the /trunk merge comment is the fallback), then watch trunk merge status and the PR state until it is MERGED or the queue kicks it out, reporting Trunk's own reason for the terminal transition. Use…

PostHog/posthog · 184 tokens

maintaining-python-tests

Maintains existing pytest and Django test suites without weakening correctness. Use when asked to reduce Python test runtime or CI work, investigate slow pytest families, remove stale migration tests, consolidate repeated setup, improve Python test ownership, or measure whether a test optimization worked after merge.…

PostHog/posthog · 110 tokens