wise-insights-resetlisted
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
`${