Logo von Clean Skills

Clean Skills

Community
amebahead
clean-skills

Compare installed skills for similarity, identify overlapping functionality, and clean up redundant skills — covers personal skills and plugin skills

Übersicht

Herausgeberamebahead
Repositoryskills-cleaner
Skill-Nameclean-skills
Sterne
44
Forks
6
Mitgelieferte Dateien
Nur Anweisungen
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von amebahead auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Clean Skills in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/amebahead/skills-cleaner/tree/main/skills/clean-skills
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amebahead/skills-cleaner.git /tmp/skills-cleaner
mkdir -p .claude/skills
cp -r /tmp/skills-cleaner/skills/clean-skills .claude/skills/clean-skills
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Clean Skills in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Clean Skills automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Clean Skills nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Clean Skills

Compare all installed skills to identify similar/redundant ones, then interactively guide cleanup.

When to Use

  • When asked to clean up or organize skills
  • When checking for duplicate or overlapping skills
  • After installing new skills to check for conflicts with existing ones

Process Flow

dot
digraph skills_cleaner {
    "Stage 1: Collect" [shape=box];
    "Show skill list to user" [shape=box];
    "Stage 2: Parallel Compare" [shape=box];
    "Pairs <= 30?" [shape=diamond];
    "All parallel" [shape=box];
    "Batch by 10" [shape=box];
    "Stage 3: Report" [shape=box];
    "Any pairs >= 70%?" [shape=diamond];
    "Stage 4: Interactive Select" [shape=box];
    "Final Confirmation" [shape=diamond];
    "Stage 5: Execute Deletion" [shape=box];
    "Done" [shape=doublecircle];

    "Stage 1: Collect" -> "Show skill list to user";
    "Show skill list to user" -> "Stage 2: Parallel Compare";
    "Stage 2: Parallel Compare" -> "Pairs <= 30?";
    "Pairs <= 30?" -> "All parallel" [label="yes"];
    "Pairs <= 30?" -> "Batch by 10" [label="no"];
    "All parallel" -> "Stage 3: Report";
    "Batch by 10" -> "Stage 3: Report";
    "Stage 3: Report" -> "Any pairs >= 70%?";
    "Any pairs >= 70%?" -> "Stage 4: Interactive Select" [label="yes"];
    "Any pairs >= 70%?" -> "Done" [label="no similar pairs"];
    "Stage 4: Interactive Select" -> "Final Confirmation";
    "Final Confirmation" -> "Stage 5: Execute Deletion" [label="yes"];
    "Final Confirmation" -> "Done" [label="no"];
    "Stage 5: Execute Deletion" -> "Done";
}

Stage 1: Collect Skills

Collect SKILL.md files from two paths:

  1. ~/.claude/skills/**/SKILL.md — personal skills
  2. ~/.claude/plugins/cache/**/SKILL.md — plugin skills

Extract from each: name, description, full body content, file path, source (personal/plugin).

Show the collected list to the user:

Found 16 skills:
  [personal]  my-custom-skill    ~/.claude/skills/my-custom-skill/
  [plugin]    brainstorming      ~/.claude/plugins/cache/.../brainstorming/
  ...

Stage 2: Parallel Comparison with Subagents

You MUST use subagents in parallel. Do NOT compare sequentially in a single agent.

One skill pair = one subagent. Generate N*(N-1)/2 pairs from N skills.

Subagent Prompt Template

Pass the following prompt along with the full SKILL.md content of both skills to each subagent:

Read the full SKILL.md content of both skills and compare them across these 4 dimensions:

1. Purpose similarity — Do they solve the same problem?
2. Trigger similarity — Are they invoked in the same situations?
3. Process similarity — Do their workflows overlap?
4. Output similarity — Do they produce the same type of result?

Scoring guidelines:
- High similarity requires solving the same problem in the same way
- Skills covering the same topic but with different roles (e.g., requesting vs receiving) are complementary, NOT duplicates
- If one skill borrows principles from another but applies them to a different domain, score LOW
- Skills at different stages of a workflow are NOT duplicates

Respond ONLY in this format:

similarity_percent: (integer 0-100)
overlapping_features:
  - "overlapping feature 1"
  - "overlapping feature 2"
differences:
  - "difference 1"
  - "difference 2"
recommendation: "reason for removal or retention"

Batch Strategy

  • 30 pairs or fewer: run all subagents in parallel at once
  • More than 30 pairs: run in batches of 10

Failure Handling

If a subagent fails or returns a malformed response, skip that pair. Show the skip count in the report.

Stage 3: Report

Only include pairs at 70% or above. Never include pairs below 70%.

Sort by similarity descending. Follow this exact format:

Skills Similarity Report
14 skills · 91 pairs · Threshold: 70%

Found 3 similar pairs:

#1  executing-plans  VS  subagent-driven-development
    ██████████████████░░ 85%  ·  plugin VS plugin

    Overlap
      · Both execute implementation plans via subagents
      · Both include a code review stage

    Diff
      · executing-plans: runs in a separate session
      · subagent-driven-development: runs in the current session

    → Choose one based on whether session isolation is needed

---

#2  ...

---

Summary
  🔴  90%+   Remove candidate   0 pairs
  🟡  70-89% Review suggested   3 pairs
  🟢  <70%   Unique             (skills not in any similar pair)

Similarity Bar

20-character progress bar: ██████████████████░░ 85%

Similarity Grades

  • 90%+ → 🔴 Remove candidate (nearly identical)
  • 70-89% → 🟡 Review suggested (overlapping functionality)
  • <70% → Excluded from report

Stage 4: Interactive Removal Guide

After the report, ask the user:

Found N similar pairs. Review them one by one? (y/n)

Ask about one pair at a time in descending similarity order. Wait for the user's response before showing the next pair. Never show multiple pairs at once.

#1  executing-plans  VS  subagent-driven-development  (85%)

    a) Remove executing-plans
    b) Remove subagent-driven-development
    c) Keep both (skip)

After the user responds:

#2  (next pair)...

Auto-Skip Rule

If the user chose to remove skill A, automatically skip any subsequent pairs that include A, and notify the user.

Final Confirmation Gate

After reviewing all pairs, always confirm before any actual deletion:

To be removed: executing-plans, my-redundant-skill
Proceed? (y/n)

Removal Actions

After the user confirms "Proceed? (y/n)" with yes, immediately execute deletion using the Bash tool.

Personal skills (~/.claude/skills/<skill-name>/):

  • Delete the skill directory: rm -rf ~/.claude/skills/<skill-name>/
  • Verify deletion: ls ~/.claude/skills/<skill-name>/ 2>&1 (should show "No such file or directory")

Plugin skills (~/.claude/plugins/cache/<plugin>/<plugin>/<version>/skills/<skill-name>/):

  • Delete the skill directory from the plugin cache: rm -rf <full-path-to-skill-directory>/
  • Verify deletion: ls <full-path-to-skill-directory>/ 2>&1 (should show "No such file or directory")
  • Important: After deleting a plugin skill, warn the user:
    ⚠️  Plugin skill "<skill-name>" was removed from the cache.
        This skill may be restored when the plugin "<plugin-name>" is updated.
        To permanently prevent this, remove the plugin: claude plugins remove <plugin-name>

For each skill, show the deletion result inline:

Removing executing-plans...
  ✅ Deleted: ~/.claude/skills/executing-plans/

Removing old-brainstorm...
  ✅ Deleted: ~/.claude/plugins/cache/superpowers/.../old-brainstorm/
  ⚠️  May be restored on plugin update. To prevent: claude plugins remove superpowers

If deletion fails (permission denied, path not found, etc.), show the error and continue with the next skill:

Removing broken-skill...
  ❌ Failed: Permission denied — ~/.claude/skills/broken-skill/

Completion Summary

Review complete.

  ✅ Removed: 2 skills (executing-plans, old-brainstorm)
  ❌ Failed:  1 skill (broken-skill — Permission denied)
  Kept:      11 skills
  Skipped:   1 pair

Common Mistakes

MistakeCorrect Approach
Sequential comparison in a single agentAlways use parallel subagents
Including pairs below 70% in the reportOnly include 70% and above
Only providing guidance without actual deletionExecute rm -rf on the skill directory after user confirmation
Deleting without final confirmationAlways require final confirmation gate before any deletion
Not verifying deletion succeededAlways verify with ls after each rm -rf
Not warning about plugin skill restorationAlways warn that plugin updates may restore deleted plugin skills
Missing source (personal/plugin) labelsAlways show Source for each pair
Skipping final confirmation before deletionAlways require final confirmation gate
Showing multiple pairs at onceAsk one pair at a time, wait for response
Treating complementary skills as duplicatesScore low when roles differ
Stopping on a single deletion failureShow error and continue with remaining skills

Häufig gestellte Fragen

Was macht der KI-Skill Clean Skills?

Compare installed skills for similarity, identify overlapping functionality, and clean up redundant skills — covers personal skills and plugin skills

Warum Clean Skills in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Clean Skills besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Clean Skills in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/amebahead/skills-cleaner/tree/main/skills/clean-skills ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Clean Skills nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Clean Skills verwenden?

So viele Sie möchten. In TypingMind können Sie Clean Skills mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Clean Skills kostenlos?

Der Skill wird von amebahead auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇