clean

clean is a skill for Claude Code, Codex from melodic-software/claude-code-plugins. It costs 126 tokens per session (6,425 once invoked), scanned A, original, MIT.

A read-only audit tool for finding leftover files and folders in a directory, such as temporary files, failed downloads, stale locks, and empty artifacts.

In plain words
What is it for?
Use it to inspect a directory tree, classify possible junk by confidence, and optionally prepare the exact paths for manual approval before removal.
Why use it?
Unwanted files can clutter projects or make it hard to tell which data is still needed. The tool separates likely leftovers from uncertain cases before any cleanup is considered.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the disk-hygiene plugin — 1 skill shipped together

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.

agentmods
npx agentmods add skills/melodic-software/claude-code-plugins/clean
Any agent
npx skills add melodic-software/claude-code-plugins --skill clean
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code, Codex.

Or install disk-hygiene, the plugin that ships this one along with the rest of its 1 skill.

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 clean

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/clean.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/clean)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/clean"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/clean.svg" alt="Measured on agentmods" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00126 $0.06425
Opus 5 $0.00063 $0.03213
Sonnet 5 $0.00025 $0.01285
Haiku 4.5 $0.00013 $0.00643

Measured yesterday against content hash aef0833b2d48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

clean scanned grade A with 0 findings 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 yesterday.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/destructive_guard.py, scripts/guard_launch_monitor.py, scripts/guard_launch_monitor.test.sh, …), 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/disk-hygiene/skills/clean/SKILL.md · 393 lines

How it starts

The opening of the file, as written. The whole thing — 393 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Disk hygiene

Audit first; mutate only after a fresh deterministic preview and explicit approval of one tier. A filename pattern is a discovery hint, never proof that an entry is junk. Safe tidiness is the primary objective; reclaimed bytes are secondary. Read the safety model before the optional execution lane.

Arguments and boundaries

Parse $ARGUMENTS as the complete user-facing surface: optional --execute, optional --policy <file>, optional --max-depth <N>, optional --confirmed-large-scan, optional --root-children with zero or more --root-child <name>, and one target directory. Remaining engine flags (--output, --project-dir, --data-root on scan; --snapshot, --plan, --report, --confirm-tier, --approval-token, --paths, and --vcs-evidence on the other subcommands) are supplied by this skill's command templates, not typed by the user. --execute means "deletion may be offered" on every platform, the gated engine lane where the platform supports it, the manual handoff elsewhere; it is not approval. (Deliberate semantic unification, not a restatement: the flag previously read as engine-lane-only, which left the manual lane's gate ambiguous, consumer sessions read it both ways.) --max-depth <N> bounds a scan to depth N (preferred for large targets); --confirmed-large-scan opts into an unbounded full walk after the human clears the confirmation gate's scan-scope row. --root-children is the only way to address an OS-managed volume root (for example C:\ or /): it never walks that root recursively. Without --root-child names the engine returns root-children-selection-required listing admitted immediate directories (OS-owned, hidden, system, reparse, mount, protected-shell-folder, and non-directory entries are withheld). With one or more explicit --root-child <name> flags, after the human clears the confirmation gate's root-children row, it audits only those admitted children into one snapshot. A general "clean everything" is not selection. With no target, ask once. Reject an OS-managed root (unless --root-children), a non-root mount target, a protected shell-folder root or descendant, a missing directory, a symlink, or a Windows reparse point. A whole-volume root that is not OS-managed (a Windows Dev Drive) is no longer rejected outright, it is a valid target, but as a known-large root it is gated like a home target (see step 1): the scan returns large-target-confirmation-required unless bounded with --max-depth or confirmed with --confirmed-large-scan. --root-children is invalid on a non-OS volume root or a non-volume target; scan those without the flag.

Read the full file on GitHub · 393 lines

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. yesterday First seen · 393 lines · 126 tokens per session scan A aef0833b2d48

Subscribe to this mod's changes

clean is a skill published in the GitHub repository melodic-software/claude-code-plugins (15 stars, last pushed today), licensed MIT. It adds 126 tokens to every session and 6,425 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

linkedin-engine

Daily interactive LinkedIn session: feed posts, DM outreach, prospect research, engagement tracking, and performance review. Human-in-the-loop. Designed for daily /loop.

systempromptio/systemprompt-marketplace · 36 tokens

reddit-reply

Daily follow-up on Reddit engagement. Reads recent reddit-monitor reports, checks each URL for replies to our comments, and drafts follow-up responses. Designed for daily /loop. Load identity and brand-voice first.

systempromptio/systemprompt-marketplace · 46 tokens

social-media-guide

Entry point for social-media — routes to LinkedIn, Reddit, X/Twitter, and the daily social brief.

systempromptio/systemprompt-marketplace · 26 tokens

parallel-orchestrator

Manage parallel Claude Code workstreams using git worktrees. Use when: splitting large tasks across multiple workers, coordinating parallel development, monitoring worker progress, integrating completed work, analyzing work item documents (code reviews, issue lists). Triggers: parallel, orchestrator, worktrees…

jimmc414/claude-code-plugin-marketplace · 78 tokens

parallel-worker

Execute focused implementation tasks in a parallel workflow. Use when: working on assigned files in a worktree, making checkpoint commits, signaling dependencies or blockers, completing orchestrator-assigned tasks. Triggers: worker, checkpoint, worktree, assigned scope, commit prefix, parallel task.

jimmc414/claude-code-plugin-marketplace · 59 tokens

propagate-then-search

For constraint problems: eliminate impossibilities before guessing, reduce search space through inference, fail fast on contradictions.

jimmc414/claude-code-plugin-marketplace · 27 tokens