janitor-claude

janitor-claude is a skill for Claude Code from ArshiaEcho/janitor. It costs 219 tokens per session (6,231 once invoked), scanned C, original, MIT.

A read-first audit and cleanup skill for a Claude Code working directory or an Obsidian vault, which is a folder of linked notes. It looks for clutter, broken links, stale instructions, and unused files before asking about changes.

In plain words
What is it for?
Use it to audit CLAUDE.md instructions, find broken wiki-links, locate dead or orphaned files, and clean up machine-generated clutter.
Why use it?
It helps find files and notes that waste attention or no longer match the project, without changing anything before you approve each fix.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the janitor plugin — 2 skills, 2 commands shipped together

Good fit Use it to audit CLAUDE.md instructions, find broken wiki-links, locate dead or orphaned files, and clean up machine-generated clutter.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arshiaecho/janitor/janitor-claude
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 ArshiaEcho/janitor --skill janitor-claude
Clone the repo
git clone --depth 1 https://github.com/ArshiaEcho/janitor

Made for: Claude Code.

Or install janitor, the plugin that ships this one along with the rest of its 2 skills, 2 commands.

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 janitor-claude

README.md
[![agentmods](https://agentmods.dev/badge/skills/arshiaecho/janitor/janitor-claude/github.svg)](https://agentmods.dev/skills/arshiaecho/janitor/janitor-claude)
Your own site
<a href="https://agentmods.dev/skills/arshiaecho/janitor/janitor-claude"><img src="https://agentmods.dev/badge/skills/arshiaecho/janitor/janitor-claude/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 janitor-claude

Your own site · 80×15
<a href="https://agentmods.dev/skills/arshiaecho/janitor/janitor-claude"><img src="https://agentmods.dev/badge/skills/arshiaecho/janitor/janitor-claude.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 219 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00219 $0.06231
Opus 5.5 $0.00088 $0.02492
Sonnet 5.5 $0.00044 $0.01246
Haiku 4.5 $0.00022 $0.00623

Measured 1mo ago against content hash ef484e638227, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

janitor-claude scanned grade C with 3 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 1mo ago.

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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **No obfuscated commands.** No base64, no `curl | bash`, no minified one-liners. Every command is plaintext and readable.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

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

Claude walks the directory read-only, identifies 3-5 specific villains, shows you what it found, and asks permission per-fix. Nothing is mutated without explicit consent. Everything is reversible (files go to Trash, neve

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **No network calls.** No `curl`, `wget`, `Invoke-WebRequest`, `Invoke-RestMethod`. No version-check pings, no GitHub API calls, no telemetry. Offline-only.
plugins/janitor/skills/janitor-claude/SKILL.md · 406 lines

How it starts

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

janitor-claude

A read-first audit of the current working directory. Finds clutter, broken links, stale CLAUDE.md facts, and token-wasting patterns — then asks the user per-fix before doing anything.

How to use this

You don't need to remember any commands. The skill triggers automatically when you describe your problem:

"clean up this directory" "audit my CLAUDE.md" "find broken wiki-links in this vault" "Claude keeps re-reading the same files, what's going on" "/janitor-claude"

Claude walks the directory read-only, identifies 3-5 specific villains, shows you what it found, and asks permission per-fix. Nothing is mutated without explicit consent. Everything is reversible (files go to Trash, never to rm -rf).

Philosophy

A messy Claude Code working directory has the same underlying pattern as a slow Mac: 3-5 specific villains, not some general decay. The difference is that on a working directory, every mutation risks destroying in-progress work. So the defaults are much stricter:

  • Read-only by default. Diagnostics walk the filesystem and git state without writing anything.
  • Only machine-generated cruft can be batch-cleaned. .DS_Store, __pycache__, broken symlinks — these have no information content. Everything else requires a per-item ask.
  • Never rewrites user-authored files. Not CLAUDE.md, not a markdown note, not a config file. Never wholesale, never silently.
  • Never runs destructive git. No git add, git rm, git commit, git push, git reset, git branch -D, git clean. Read-only git only.

If the janitor-device philosophy is "the user's machine has villains and we can disable them together," the janitor-claude philosophy is "the user's working directory has clutter and we can catalog it together, then let them decide."


Personality and voice

Janitor is warm, cheerful, observational, and unfazed. Not a stern linter or a sterile audit tool — more like the friendly librarian who knows where everything is, isn't surprised by a messy desk, and will quietly help put things back in order if you ask. Lead every reply with 🧹 to signal Janitor's arrival, and let tidying metaphors run gently through the whole response. Janitor is someone the user wants to come back to.

Read the full file on GitHub · 406 lines

Files

What ships with it

5 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. 1mo ago First seen · 406 lines · 219 tokens per session scan C ef484e638227

Subscribe to this mod's changes

janitor-claude is a skill published in the GitHub repository ArshiaEcho/janitor (6 stars, last pushed 4mo ago), licensed MIT. It adds 219 tokens to every session and 6,231 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it C with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

storage-analyzer

A read-only disk-space scanner for macOS and Windows that groups files into categories such as caches, personal data, and files to keep. It produces an HTML report with commands you can review before cleanup.

bahayonghang/my-ai-cli-toolkit · 142 tokens

imessage-inbox

Show the inbox/conversation list using imessage-tools.

benelser/imessage-tools · 9 tokens

computer-clean

Audit and reclaim disk space on macOS. Discovers cache hogs, dev caches, dead app data, old Downloads, dup installers, and obsolete container/VM images. Use when user says 'clean disk', 'free up space', 'computer-clean', 'cleanup mac', 'disk full', or shows ≥85% disk usage.

vanducng/skills · 71 tokens

touch-grass

Configure local cat-GIF break reminders while using Codex or Claude Code. Use when the user asks to change a reminder cadence or clock time, enable or disable break types, set bedtime or quiet hours, add a custom reminder or cat, snooze reminders, or see personalization examples.

jd20030807/touch-grass · 61 tokens

free-space

Free up disk space on a Mac safely. Scans for reclaimable space — app caches, developer caches (npm/uv/cargo/gradle/…), local AI models (Ollama/HuggingFace), Trash, Xcode build data, Docker images, leftover data from uninstalled apps, old nodemodules, and large stray files — then deletes only what the user approves.…

NikOneZ1/mac-space-cleaner · 115 tokens

apple-mail

Interact with Apple Mail on macOS. Use for reading, sending, searching, and managing emails.

rbouschery/marketplace · 23 tokens