An agentic skills framework & software development methodology that works.
Slash commands for cleaning Claude Code skills and MCP servers
Skills Janitor adds slash commands that inventory your installed skills, subagents, and MCP servers, then surface duplicates, broken symlinks, unused entries, and risky prompt patterns. It also shows honest token cost breakdowns and can remove or fix what you approve, with backups for config edits.
Builders who run Claude Code or Codex and want to keep their agent context lean and safe.
You can remove wasted context and risky entries instead of carrying dead skills and unused MCP servers around.
What it does
Inventory and health check
`/janitor-report` scans user, project, Codex, and plugin-installed skills and shows duplicates and broken items.
Auto-fix cleanup
`/janitor-fix` repairs issues, and `--prune` removes broken symlinks and empty directories.
Token cost and usage view
`/janitor-value` compares always-loaded descriptions with on-demand bodies and pairs that with usage data.
Security scan for skills
`/janitor-security` looks for prompt injection, hidden instructions, zero-width text, base64 smuggling, and dangerous shell patterns.
Skill and URL discovery
`/janitor-discover` searches for skills on GitHub or checks a URL before install, with a pre-install security scan.
Swipe-based triage
`/janitor-swipe` opens a TUI where you keep, delete, or skip skills and MCP servers in waste-first order.
MCP server triage
It inventories configured MCP servers, compares them with transcript usage, and removes unused entries with a timestamped `.bak` backup.
How to get it
- 1Run
/plugin marketplace add khendzel/skills-janitor /plugin install skills-janitor
- 2Or via skills.sh
npx skills add khendzel/skills-janitor
- 3Or clone directly
git clone https://github.com/khendzel/skills-janitor ~/.claude/skills/skills-janitor
README
Skills Janitor
Tinder for your Claude Code skills. Swipe through your collection and delete what's wasting context, in seconds.
Works with Claude Code and OpenAI Codex. 6 commands, zero dependencies.

New in v1.7: MCP servers join the triage. Every configured MCP server is inventoried and cross-referenced against real usage from your session transcripts. Connected-but-never-called servers rank high in the swipe deck — their tool schemas load into context on every request for nothing. Swiping one left removes it from its config file, with a timestamped
.bak. Jump to MCP triage →
Scans every place a skill lives: user, project, codex, and every skill installed via /plugin install — plus your subagents and MCP servers. Surfaces duplicates, broken symlinks, unused skills, and connected-but-never-called MCP servers cluttering your context. Usage counts come from real session transcripts, including skills Claude auto-triggered.
Commands
| Command | What it does |
|---|---|
/janitor-report | Health check: inventory, duplicates, broken skills. --brief for inventory only. |
/janitor-fix | Auto-fix issues. --prune removes broken symlinks and empty dirs. |
/janitor-value | Honest token costs (always-loaded descriptions vs on-demand bodies) + usage, skills and subagents. |
/janitor-security | Heuristic scan for prompt injection, hidden instructions, and dangerous script patterns. (v1.6+) |
/janitor-discover | Search GitHub for skills, or check a URL before installing — now including a pre-install security scan. |
/janitor-swipe | Interactive TUI — swipe keep/delete/skip through skills AND MCP servers, sorted most-likely-waste first. (v1.4+) |
Each has its own slash command. Or use natural language: "check my skills", "which skills are wasting context?", "find an n8n skill".
Install
/plugin marketplace add khendzel/skills-janitor
/plugin install skills-janitor
Or via skills.sh:
npx skills add khendzel/skills-janitor
Or clone directly:
git clone https://github.com/khendzel/skills-janitor ~/.claude/skills/skills-janitor
Security scan (v1.6)
A skill is text your agent trusts. Public research found prompt injection in roughly a third of tested community skills — so the janitor now scans for the known bad shapes: instruction-override phrases, "don't tell the user" directives, instructions hidden in HTML comments or zero-width unicode, smuggled base64 payloads, and scripts that pipe the network into a shell or read credential stores.
/janitor-security # audit everything installed
/janitor-discover <url> # overlap + security check BEFORE installing
Verdicts are honest heuristics (PASS / REVIEW / RISK): a RISK means "read this before trusting it", not "malware". Calibrated for low noise — on a real 178-skill machine it flags 2, both genuinely worth reading.
Swipe through your skills (v1.4)
Tinder-style triage for your skill collection. The deck is sorted heaviest-and-least-used first, so most users hit ← delete through the top 5–10 cards and quit before reviewing everything.
!bash ~/.claude/skills/skills-janitor/scripts/swipe.sh
(The ! prefix runs in your terminal, not the Claude Code Bash tool — the TUI needs a real interactive stdin.)
Controls: ← delete, → keep, ↓ skip, u undo, i inspect full description, q quit.
Plugin skills are flagged for review (you can't rm individual plugin skills — they belong to a plugin). User-scope skills stage for actual deletion, applied on y confirmation at the end.
Since v1.7 the deck also includes your MCP servers — see MCP server triage.
MCP server triage (v1.7)
Skills aren't the only thing renting space in your context. Every connected MCP server loads its tool schemas on every request, whether you call it or not.
The janitor inventories every configured server — user ~/.claude.json, per-project entries,
project .mcp.json, and plugin-bundled — then cross-references real usage from your session
transcripts (mcp__server__tool records):
=== Skills Janitor - MCP Servers ===
Usage window: last 8 weeks of session transcripts
Server Scope Calls Tools Last Used Origin
──────────────────────────── ──────────── ────── ────── ─────────── ────────────
design-tool mcp-user 0 0 never ~/.claude.json
deploy-tool mcp-plugin 0 0 never plugin:deploy
cms mcp-project 41 4 2026-07-02 ~/.claude.json
--- Unused in 8 weeks (2) ---
design-tool (mcp-user) — configured in ~/.claude.json
deploy-tool (mcp-plugin) — configured in plugin:deploy
No invented token numbers — MCP schemas live server-side, so the janitor reports only what it can prove: where the server is configured, how many distinct tools you actually called, how often, and when last. Servers seen in transcripts but no longer configured are listed separately.
Unused servers rank high in the swipe deck. Swiping one left removes the entry from its config
file with a timestamped .bak backup. Plugin-bundled servers are flagged for plugin review
instead.
Duplicate detection
The duplicate detector flags cross-scope overlaps, including plugins that re-implement a skill you already had standalone:
=== Skills Janitor - Duplicate Detection ===
--- Description Overlap (Jaccard > 30%) ---
[98%] marketing-seo-audit <-> marketing-skills:seo-audit
Scopes: user / plugin
[100%] marketing-content-strategy <-> marketing-skills:content-strategy
Scopes: user / plugin
Overlap is scored on descriptions (Jaccard), so it catches re-implementations that share no filename and live in different scopes.
Upgrading from v1.2
The five v1.2 aliases were removed in v1.5. Renames:
| v1.2 | now |
|---|---|
/janitor-audit | /janitor-report --brief |
/janitor-usage | /janitor-value |
/janitor-tokens | /janitor-value |
/janitor-search | /janitor-discover |
/janitor-precheck | /janitor-discover <url> |
Full release notes: CHANGELOG.md.
Requirements
Bash, Python 3, curl. No pip installs, no node modules.
Contributing
PRs welcome. Each command is self-contained in skills/janitor-*/SKILL.md plus a sibling script in scripts/.
License
MIT
Files in the repo
- .claude-plugin
- scripts
- skills
- tests
- .gitignore
- CHANGELOG.md
- demo-deck.json
- hero.png
- janitor-swipe-demo.gif
- janitor-swipe-demo.mp4
- LICENSE
- README.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.
Public repository for Agent Skills
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

Production-grade engineering skills for AI coding agents.