janitor-report
Skill123 starsChanged 3 months agoMITView on GitHub
Full health check of all your skills in one report. Use when the user wants to check for errors, find duplicates, detect broken skills, or get a complete overview of skill health. Pass --brief for inventory only. Trigger with '/janitor-report'.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- juanmackie/juanskillsedited, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- juanmackie/juanskills★ 188% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- janitor-discoverSkill
- janitor-fixSkill
- janitor-securitySkill
- janitor-swipeSkill
- janitor-valueSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Read access to ~/.claude/skills, ~/.claude/agents, and installed plugin metadata
- Distinctive: line 36
No authentication or API keys required — the scripts read local files only
- Distinctive: line 104
Output: Run all three scripts, merge into the severity table, and lead with counts: "175 skills scanned: 2 critical (broken symlinks), 5 …
- Very specific: line 110
Output: Run scan.sh only and present the inventory grouped by scope with per-scope counts.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Health Report
Generate a comprehensive health report combining inventory, quality checks, duplicate detection, and broken skill findings.
Overview
One report covering every place a skill lives: user, project, codex, plugin, and source scopes. Plugin skills appear with their full invocation name (e.g. marketing-skills:image, figma:figma-use) — these were invisible to the v1.2 report. The scan JSON also includes an agents array (subagents from ~/.claude/agents — their descriptions are always-loaded too) and per-plugin update_available (installed commit vs marketplace HEAD) — surface stale plugins and heavy agents in the report.
Modes:
/janitor-report(default) — full health check: inventory + lint + duplicates + broken/janitor-report --brief— inventory only (replaces the old/janitor-audit)
Prerequisites
- Claude Code with the skills-janitor plugin installed (provides
scripts/scan.sh,lint.sh,detect_dupes.sh) - bash 3.2+ (the stock macOS bash works; no external dependencies)
- Read access to
~/.claude/skills,~/.claude/agents, and installed plugin metadata - No authentication or API keys required — the scripts read local files only
Instructions
Step 1: Run the scripts
Full report:
bash ~/.claude/skills/skills-janitor/scripts/scan.sh
bash ~/.claude/skills/skills-janitor/scripts/lint.sh
bash ~/.claude/skills/skills-janitor/scripts/detect_dupes.shBrief mode (inventory only):
bash ~/.claude/skills/skills-janitor/scripts/scan.shStep 2: What each script covers
- Inventory (scan.sh) — all skills across scopes, symlink status, frontmatter fields, line counts;
agentsandplugins(withupdate_available) arrays;broken_symlinkscount. - Quality checks (lint.sh) — Critical: broken symlinks, missing SKILL.md, missing frontmatter. Warning: missing/empty name or description, description too short/long, missing version. Info: no body content, no Gotchas section, large files.
- Duplicate detection (detect_dupes.sh) — name collisions (two distinct skills with the same qualified name at different paths) and description overlap (Jaccard similarity >30%), with cross-scope user-vs-plugin pairs explicitly surfaced (e.g.
marketing-seo-audit(user) ↔marketing-skills:seo-audit(plugin)).
Step 3: Present a unified report
Merge the three outputs into one table with severity levels, then recommend actions.
Output
| Skill | Scope | Status | Issues |
|----------------------------------|----------|-------------|------------------------------------------|
| marketing-copywriting | user | DUPLICATE? | 90% overlap with marketing-skills:copywriting |
| seo-audit | user | WARNING | Description too short |
| old-deploy-helper | user | CRITICAL | Broken symlink |
| figma:figma-use | plugin | OK | - |Recommended actions per issue type:
- Broken symlinks →
/janitor-fix --prune - Quality issues →
/janitor-fix - User-vs-plugin duplicates → uninstall the user-scope copy and rely on the plugin (or vice versa)
- Stale plugins (
update_available: true) →/plugin update <name> - Token waste →
/janitor-value - Suspicious content (injection phrases, dangerous scripts) →
/janitor-security - Unused MCP servers (run
scripts/mcp.shfor the inventory) → remove the config entry or/janitor-swipe
Error Handling
- Error:
scan.sh: No such file or directorySolution: The plugin is installed under a different root. Locate it withls ~/.claude/skillsor check the plugin cache, then run the scripts from their actual location. - Error: Scan output is not valid JSON
Solution: Re-run with stderr visible (drop any
2>/dev/null) and report the failing line; a skill directory with unusual characters is the usual cause. - Error:
pluginsarray is empty despite installed plugins Solution:~/.claude/plugins/installed_plugins.jsonis missing or in an unknown format — report which Claude Code version is in use.
Examples
Example 1: Full health check
Input: "Check my skills for problems."
Output: Run all three scripts, merge into the severity table, and lead with counts: "175 skills scanned: 2 critical (broken symlinks), 5 warnings, 3 likely duplicates, 2 plugins have updates available."
Example 2: Inventory only
Input: "/janitor-report --brief"
Output: Run scan.sh only and present the inventory grouped by scope with per-scope counts.
Resources
- Scripts (plugin-relative):
{baseDir}/../../scripts/scan.sh,lint.sh,detect_dupes.sh /janitor-fix— auto-fix the issues this report finds/janitor-value— token cost + usage (combined)/janitor-discover— find or evaluate new skills
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

