← ClaudeAtlas

wise-insights-resetlisted

Reversibly clean up the self-improvement loop, and roll it back. Snapshots then removes the auto-created (wise-managed) skills and/or the insights index (ledger, candidates, decisions) into a timestamped restore point — and can restore any restore point. Never touches hand-written skills, and never hard-deletes (that's `insights.py purge`). Invoked as `/wise-insights-reset` (bare alias) or `/wise:wise-insights-reset` (canonical). Use when the user says "reset insights", "clean up auto-created skills", "wipe learned skills", "remove the skills mine made", "roll back insights", "restore insights", "undo mine".
e1024kb/wise-claude · ★ 1 · AI & Automation · score 80
Install: claude install-skill e1024kb/wise-claude
# /wise-insights-reset — reversible cleanup + rollback ## Why this skill exists `/wise-insights-mine` and `/wise-insights-refine` produce two kinds of artifact: **learned skills** under `~/.claude/skills/` and an **index** under `~/.local/share/wise/insights/` (`ledger.jsonl`, `candidates.json`, `decisions.json`). This command cleans them up **reversibly**: it snapshots everything it removes into `insights/snapshots/<ts>/` first, so any reset can be rolled back. The same command does the rollback. The destructive work is done entirely by `${CLAUDE_PLUGIN_ROOT}/scripts/insights.py` (`reset` / `restore`), which snapshots-then-removes and only ever touches wise-**managed** skills — so this skill needs no `rm`/`Write` grant, and hand-written skills are structurally safe. For an irreversible wipe (including the snapshots themselves), that's the separate `insights.py purge --yes`, which this skill never invokes. ## Arguments Parse `$ARGUMENTS` (any order; all optional): - `--skills` — reset only the auto-created skills (leave the index). - `--index` — reset only the index (leave the skills). - (neither) — reset **both** (the default). - `--dry-run` — show exactly what would be snapshotted/removed; change nothing. - `--restore <ts>` — roll back: restore the snapshot with this timestamp. Reject any unrecognised token with a clear message and stop. `--restore` is mutually exclusive with the reset flags. ## Procedure ### 1. Guard on `/wise-init` Enforce the setup gate per `${