legendtkl

Agent Cleaner — Development skill for Claude Code

Development community

Slim down installed Claude Code skills based on usage.

How to install Agent Cleaner

This entry records only its repository, not the path inside it, so there is no exact command to give. Open legendtkl/agent-cleaner and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Cleaner does

Slim down installed Claude Code skills based on usage. Disables unused skills by renaming SKILL.md files.

Alternatives in Development

  • Market Sizing — Estimate TAM, SAM, SOM with top-down and bottom-up approaches 7.8k ★
  • Bypass 403 — Probe a 403/401 endpoint with the most-paid bypass tricks (header injection, path encoding, method swap, WAF f 4.5k ★
  • Agentlas Update — Update the installed Agentlas runtime and every host adapter on this machine 1.1k ★

README

agent-cleaner

Slim down installed Claude Code or Codex skills, Claude Code subagents, and MCP servers based on usage. Reports per-entry last-used time, suggests stale ones, and disables them — by renaming the source file (skills/subagents) or by splicing the entry out of its config and stashing it for restore (MCP servers). After the agent restarts, disabled descriptions and tool catalogs no longer appear in the system prompt — recovering context budget for actual work.


Quick start: Claude Code

git clone  agent-cleaner
cd agent-cleaner

npm install
npm run install:plugin     # build + register + enable

Restart Claude Code. In a new session, ask the model:

帮我瘦身一下 skills

The bundled SKILL guides the model through `suggest` → confirm → `disable`.

Quick start: Codex

git clone  agent-cleaner
cd agent-cleaner

npm install
npm run install:codex-plugin

Restart Codex. Then run the slash command:

/agent-cleaner:skills

That command is backed by `~/.codex/prompts/agent-cleaner-skills.md`. Codex loads Markdown files in `~/.codex/prompts` as slash commands: a file named `agent-cleaner-skills.md` appears as `/agent-cleaner:skills`. The installed prompt tells Codex to call the bundled CLI with `--host=codex`, show suggestions, ask for confirmation, and then disable selected skills.

To remove later:

npm run uninstall:plugin                # Claude Code
npm run uninstall:plugin -- --purge
npm run uninstall:codex-plugin          # Codex
npm run uninstall:codex-plugin -- --purge

⚠ Uninstall does **not** auto-restore disabled skills. If you want them back, run `skills enable ` *before* uninstalling, or just re-install.


CLI

The same bundle is usable directly without going through the agent UI:

Claude Code:

node plugins/claude-code/lib/agent-cleaner.mjs skills list
node plugins/claude-code/lib/agent-cleaner.mjs skills suggest
node plugins/claude-code/lib/agent-