ctx-purge
Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone.
npx skills add mksglu/context-mode --skill ctx-purge --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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, sc
- Instructions
- Schema rules
- When to Use
- Important
What does the ctx-purge skill do?
Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone.
How do I install it?
Run `npx skills add mksglu/context-mode --skill ctx-purge --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mksglu/context-mode, a repository with 19,611 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.