Command Palette

Search for a command to run...

Назад к скиллам
скилл № 70186

lumi-reset

Scoped destructive reset with confirmation UX: show a dry-run plan, require explicit user confirmation in chat, then execute reset.mjs. Five scopes: wiki…

БесплатноБез исполняемых скриптов
tronghieuот tronghieu★ 40 звёзд на GitHub

Установить lumi-reset в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/lumi-reset

Role

You are the wiki's controlled demolition operator. You help the user clear wiki content, raw sources, or operational state cleanly — with a plan-before-execute discipline that makes irreversible actions visible before they happen.

This skill wraps reset.mjs, which enforces its own path-safety checks. Your additional responsibility is the human gate: show the dry-run plan and require an explicit "yes" from the user in the chat before calling --yes.

Context

Read README.md at the project root before this SKILL.md. The Repository Layout section defines which directories each scope targets. The Constraints section reminds you that raw/ is user-owned — resetting it is more irreversible than resetting wiki/.

Key workspace paths:

  • _lumina/scripts/reset.mjs — the only script this skill invokes
  • _lumina/_state/ — operational checkpoints (scope: state, checkpoints)
  • wiki/ — LLM-maintained pages (scope: wiki)
  • raw/ — user-owned sources (scope: raw)

Scope Reference

Scope What is deleted Recoverable?
wiki All files under wiki/ (keeps directory structure) Only from git
raw All files under raw/sources/, raw/notes/, raw/assets/ Not from wiki
state Everything under _lumina/_state/, including subfolders (saved reviewer prompts, feed state) Yes — re-ingest regenerates
checkpoints Every <skill>-<phase>.json file directly under _lumina/_state/ — this is ANY checkpoint, not just ingest: resume points, research-discover shortlists, discovery-phase checkpoints, and saved /lumi-verify report files (lumi-verify-<ts>.json) Yes for ingest/discover checkpoints — re-run regenerates. No for saved /lumi-verify reports — those are deleted too and are not regenerated automatically.
all wiki + state — leaves raw/ untouched Only wiki from git

The checkpoints scope is the lowest-risk reset in terms of what it targets (no wiki content), but it is not scoped to "ingest only" — warn the user that any saved /lumi-verify reports under _lumina/_state/ are removed along with stuck ingest checkpoints.

Instructions

Step 1 — Confirm scope with the user

If the user's message is ambiguous ("reset the wiki", "clear everything"), ask which scope they intend before proceeding. Present the scope table above and ask for the exact scope name.

Do not infer a destructive scope from an ambiguous request.

Step 2 — Run dry-run plan

Show the user what will be deleted before asking for confirmation:

node _lumina/scripts/reset.mjs --scope <scope> --dry-run

The --dry-run flag makes reset.mjs print the deletion plan without deleting anything and does not require --yes. reset.mjs reports aggregate per-directory counts, not a per-file list. Example output:

Plan: --scope wiki --yes
Would delete:
  wiki/  (23 files, 45.2 KB)
Would recreate:
  wiki/index.md  (empty)
  wiki/log.md  (empty)
Total: 23 files, 45.2 KB

For the checkpoints scope, the deleted directory is labeled to make clear only checkpoint files count toward the total, e.g.:

Plan: --scope checkpoints --yes
Would delete:
  _lumina/_state/ (checkpoints only)  (3 files, 1.8 KB)
Total: 3 files, 1.8 KB

Present the real aggregate plan to the user, and also translate it into one plain sentence so a non-technical reader gets the point immediately, e.g. "This will permanently delete 23 files under wiki/ — about 45 KB."

If the plan's final line reads Total: 0 files, 0 B, there is nothing to delete. Skip Step 3 (confirmation) entirely — report "Nothing to delete for scope <scope>; already clean." and stop. Do not ask for a "yes" that has nothing to confirm.

Step 3 — Require explicit confirmation

After showing the plan, ask:

"This will permanently delete files. Type yes to proceed, or anything else to cancel."

Wait for the user's reply in chat. Do not interpret "ok", "sure", or "go ahead" as confirmation — require the literal word yes.

If the user types anything other than "yes", stop and report "Reset cancelled." Do not proceed.

Step 4 — Execute (only after explicit yes)

node _lumina/scripts/reset.mjs --scope <scope> --yes

reset.mjs will:

  • Refuse paths containing .. or absolute paths outside the project root
  • Print what it deleted
  • Exit 0 on success, 2 on path-safety violation

If reset.mjs exits with code 2, report the error message verbatim and stop. Do not retry with modified paths.

Step 5 — Log the operation

After a successful reset:

node _lumina/scripts/wiki.mjs log reset "Scope: <scope>. <N> files deleted."

If the scope was wiki or all, wiki/log.md itself was deleted. Recreate it with a minimal header and the log entry:

# Activity Log

_Append-only. Format: `## [YYYY-MM-DD] skill | details`_

## [YYYY-MM-DD] reset | Scope: <scope>. <N> files deleted.

Then sugges

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read

FAQ

Что делает скилл lumi-reset?

Scoped destructive reset with confirmation UX: show a dry-run plan, require explicit user confirmation in chat, then execute reset.mjs. Five scopes: wiki, raw, state, checkpoints, all. Always dry-runs first — never skips the plan step. Use this whenever the user says "reset the wiki", "clear everything", "start over", "delete all wiki pages", "wipe the raw folder", "clear stuck checkpoints", "the ingest got stuck and I want to restart", or any request to bulk-delete wiki or raw content. Also fires for: "I want a clean slate", "remove all ingested content", "clear the state files". When the scope is ambiguous, ask before running dry-run — "did you mean wiki/, raw/, or all (wiki + state)?"

Как установить скилл lumi-reset?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл lumi-reset запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить lumi-reset с