Agent skill

janitor-duplicates

Find duplicate skills that do the same thing

Stars 5
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/khendzel/skills-janitor/tree/main/skills/janitor-duplicates

Metadata

Additional technical details for this skill

version
1.0.0

SKILL.md

Duplicate Detection

Find skills with overlapping functionality using keyword similarity analysis.

How to Run

bash
bash ~/.claude/skills/skills-janitor/scripts/detect_dupes.sh

How It Works

  1. Extracts trigger keywords from each skill's description field
  2. Filters common stop words (~60 words)
  3. Compares all skill pairs using Jaccard similarity
  4. Flags pairs with >30% keyword overlap

Output

[72%] marketing-copywriting <-> marketing-copy-editing
      Scopes: user, user
      Shared keywords: copy, editing, marketing, write

[45%] seo-audit <-> marketing-seo-audit
      Scopes: project, user
      Shared keywords: audit, seo, ranking

After Finding Duplicates

  • Review each pair - some overlap is intentional (e.g., copywriting vs copy-editing)
  • Plugin skills should NOT be edited (changes get overwritten)
  • For user-scope duplicates, suggest which to keep and why
  • Ask for confirmation before any removal

Related Skills

  • For full skill inventory: /janitor-audit
  • For auto-fixing issues: /janitor-fix
  • For a health report: /janitor-report

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results