luna-upgrade-all
БесплатноБез исполняемых скриптовНе проверенDiscover and upgrade many luna-second-brain vaults to the current himmel template — dry-run first, per-vault confirm.
от yotamleo-org★ 15 звёзд на GitHubОб этом скилле
luna-upgrade-all — multi-vault upgrade sweep
You bring MULTIPLE existing luna-second-brain vaults up to the current himmel
template in one best-effort pass. The engine that does all the work is
scripts/luna-upgrade-all.sh — this skill is the ergonomic
sweep → confirm → apply → (brainstorm-on-conflict) surface around it.
ALL discovery, classification, 3-way merge, conflict handling, backup/restore,
and fail-closed logic lives in luna-upgrade-all.sh (which in turn delegates
all single-vault logic to templates/luna-second-brain/scripts/upgrade.sh).
Do NOT reimplement any merge, backup, or classification logic here.
Invocation surfaces
- User prompt:
/luna-upgrade-all [--roots <dirs>] [--registry <path>] [--template-dir <path>] [--porcelain]— the skill answers to its own name. - Programmatic Skill-tool dispatch (no headless
claude):
Skill { skill: "obsidian-triage:luna-upgrade-all", args: "<flags...>" }.
Wherever this document references $ARGUMENTS, treat it as the literal arg
string supplied via either path.
Inputs
$ARGUMENTS is [--roots <dir[,dir]>] [--registry <path>] [--template-dir <path>] [--porcelain] (all optional). Flags are passed through to the engine unchanged.
Step 0 — Locate himmel's engine
The multi-vault engine scripts/luna-upgrade-all.sh lives in the himmel
checkout. Resolve the himmel checkout the same way as the single-vault skill:
HIMMEL=""
for d in "${HIMMEL_DIR:-}" "$HOME/github/himmel" "$HOME/github/Himmel" \
"$HOME/Documents/github/himmel" "$HOME/Documents/github/Himmel"; do
[ -n "$d" ] && [ -f "$d/templates/luna-second-brain/scripts/upgrade.sh" ] \
&& { HIMMEL="$d"; break; }
done
ENGINE="$HIMMEL/scripts/luna-upgrade-all.sh"
If --template-dir <path> was passed, set HIMMEL so that
$HIMMEL/templates/luna-second-brain equals that path (or pass the flag
straight through to the engine). If HIMMEL stays empty, stop and tell the
operator to set HIMMEL_DIR or pass --template-dir. The engine re-validates
the template internally — this probe only locates the engine file.
Step 1 — Sweep (--porcelain table)
Run the engine's sweep subcommand with --porcelain to get a stable, machine-readable per-vault summary:
bash "$ENGINE" sweep --porcelain $ARGUMENTS
The engine emits one TSV row per discovered vault:
state\tfrom\tto\tdirty\tvault-path
States the engine can return:
| State | Meaning |
|---|---|
already-current |
Vault is at template version — nothing to do |
clean-upgrade |
Vault is behind and upgrades without conflict |
conflict |
Upgrade would conflict on _CLAUDE.md — needs brainstorm |
unstamped |
No luna stamp (.vault-template.json missing) — Phase 2 out of scope. Appears as a porcelain row with empty from/to/dirty columns (no sweep performed). |
error |
Engine dry-run failed for this vault |
Present the table to the operator in a readable form — align columns, highlight
conflict and clean-upgrade rows. Report the dirty=true advisory on any
luna-family vault with uncommitted git changes (sweep still ran the dry-run;
apply will refuse it until clean).
If the sweep returns no vaults, tell the operator and stop — nothing to do.
Step 2 — Confirm per vault
For each vault in clean-upgrade or conflict state, CONFIRM with the
operator before applying. Apply is ALWAYS per-vault operator-confirmed — this
is the load-bearing safety gate. Never batch-apply silently.
Suggested prompt per vault:
Apply upgrade from vX.Y.Z → vA.B.C to
<vault-path>? (y/n)
Best-effort: if the operator declines a vault, skip it and continue to the next
one — do NOT abort the whole sweep. If a vault is dirty=true, tell the
operator to commit or stash first and then re-run /luna-upgrade-all.
Step 3 — Apply
On operator confirmation, run the engine's apply subcommand for that vault:
bash "$ENGINE" apply --vault "<vault-path>" [--template-dir <path>]
The engine emits output signals on stdout — surface each one verbatim:
Signal: BACKUP\t<dest>
Always printed first (before any writes to the vault itself (the backup directory write has already completed)). The <dest> is the timestamped
backup path under ~/.claude/luna-upgrade-backups/<vault-slug>/<UTC-ts>/.
Report it to the operator so they know where to restore from if needed:
Backup created at
<dest>. Runrestore --vault <path>to undo.
Then wait for the next signal.
Signal: OK\t<vault>
Upgrade succeeded. Report the new template version (from the vto shown in
the sweep table) and remind the operator of the backup path:
Upgrade complete — vault is now at vA.B.C. Backup retained at
<dest>.
Continue to the next vault.
Signal: SKIPPED-DIRTY\t<vault>
The vault is a git repo with uncommitted changes under a path the upgrade would
touch (a path in its dry-run plan, or the version stamp; changes elsewhere, e.g.
handovers/, do not block).
Установить luna-upgrade-all в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл luna-upgrade-all?
Discover and upgrade many luna-second-brain vaults to the current himmel template — dry-run first, per-vault confirm.
Как установить скилл luna-upgrade-all?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл luna-upgrade-all запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic