Zum Inhalt springen
Skillpedia
Agenten33k · #8514

ctx-purge

Was er macht

Dieser Skill löscht den Suchindex und die Sitzungsdaten, die Context-Mode für ein Projekt gespeichert hat. Er ist für Leute gedacht, die alte indexierte Inhalte entfernen oder neu anfangen wollen.

Wann du ihn nutzt

  • ✓Wenn jemand indexierte Inhalte einer früheren Sitzung entfernen will.
  • ✓Wenn der Suchindex eines Projekts überfüllt ist und alles gelöscht werden soll.
  • ✓Wenn jemand vor dem erneuten Indexieren des Projekts einen sauberen Neustart will.

Link zum Skill

https://github.com/mksglu/context-mode/blob/main/skills/ctx-purge/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/mksglu/context-mode/blob/main/skills/ctx-purge/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Leere den Context-Mode-Index für dieses Projekt, damit ich neu anfangen kann.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill fragt zuerst, ob eine Sitzung oder das ganze Projekt gelöscht werden soll, und warnt dich dann, was entfernt wird. Die Löschung startet erst, nachdem du den Umfang bestätigt hast.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Context Mode Purge

Permanently deletes session data for this project. Two scopes are supported (issue #520):

  • Project scope (scope: "project"): wipes EVERYTHING — knowledge base, all session DB rows for every session, events markdown, and stats.
  • Session scope (sessionId: "<id>" or scope: "session"): wipes ONLY the matching session's rows + FTS5 chunks. Sibling sessions, project stats, and the FTS5 store file are preserved.

Instructions

  1. Decide the scope first with the user:
    • "Wipe just one session?" → ask for the sessionId.
    • "Wipe the whole project?" → confirm scope:'project' (this is the destructive, irreversible default).
  2. Warn the user about scope:'project'. Everything will be deleted:
    • FTS5 knowledge base (all indexed content from ctx_index, ctx_fetch_and_index, ctx_batch_execute)
    • Session events DB (analytics, metadata, resume snapshots) for ALL sessions in the project
    • Session events markdown file
    • In-memory session stats + persisted stats file
  3. Call the mcp__context-mode__ctx_purge MCP tool with the chosen parameters:
    • Scoped: { confirm: true, sessionId: "<id>" } — implies scope:'session'.
    • Project: { confirm: true, scope: "project" } — explicit destructive form.
    • Bare { confirm: true } still works but emits a deprecation warning. Prefer the explicit forms.
  4. Report the result to the user — the response lists exactly what was deleted and (for scoped purges) confirms that other sessions and project stats were preserved.

Schema rules

  • confirm: true is always required.
  • sessionId and scope: "project" together is REJECTED as ambiguous (the sessionId implies session scope; combining with project scope contradicts intent).
  • scope: "session" without sessionId throws — sessionId is required.

When to Use

  • Scoped (per-session): scratch acceptance scenarios, drill replays, isolating a polluted session without losing the main working session's stats.
  • Project: KB contains stale or incorrect content polluting search results, switching between unrelated projects in the same session, completely fresh start.

Important

  • ctx_purge is the only way to delete session data. No other mechanism exists.
  • ctx_stats is read-only — shows statistics only.
  • /clear and /compact do NOT affect any context-mode data.
  • There is no undo. Re-index content if you need it again.
Häufige Fragen

Kann ich eine Löschung rückgängig machen?

Nein. Das Löschen entfernt die Daten dauerhaft, sie lassen sich nicht wiederherstellen.

Was ist der Unterschied zwischen Projekt- und Sitzungsumfang?

Ein Projektumfang löscht alles, ein Sitzungsumfang entfernt nur die Zeilen dieser Sitzung und behält den Rest.

Setzt er die Nutzungsstatistiken zurück?

Eine Projektlöschung entfernt auch die Statistiken, eine Sitzungslöschung behält die Projektstatistiken.

Details

Originalbeschreibung des Autors

Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone. Trigger: /context-mode:ctx-purge

repo: mksglu/context-mode

Beliebtheit

GitHub-Sterne
33k
Platz im Ranking
#8514
Lizenz
—
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills