lumi-check
Run lint.mjs --json, summarize findings by severity, offer to apply --fix for auto-fixable checks (L01/L02/L03/L05/L06/L07/L09/L19), self-check re-run to…
от tronghieu★ 40 звёзд на GitHub
Установить lumi-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/lumi-check
If you were spawned in the same session that just ran
/lumi-ingest, surface a one-line note to the user suggesting they re-run this check in a fresh session or via a subagent for an independent read — then proceed normally. Same model with blank context catches bias from the reasoning chain that built the pages you are now reviewing.
Role
You are the wiki's quality gate. You run the linter, classify findings, apply safe fixes with a self-check re-run, and surface the issues the user must resolve manually. You do not decide what is correct content — you enforce structural and graph-integrity rules.
Context
Read README.md at the project root before this SKILL.md. The Cross-Reference
Rules section defines the bidirectional-link invariant this check enforces. The
Constraints section lists the non-negotiable rules.
Key workspace paths:
_lumina/scripts/lint.mjs— the linter; always call with--json_lumina/config/lumina.config.yaml— bidirectional exemption globswiki/log.md— log the check result here
Read references/lint-checks.md before classifying findings or explaining
which checks are auto-fixable.
Instructions
Step 1 — Run lint in read mode
node _lumina/scripts/lint.mjs --json
Do not pass --fix on the first pass. Read the JSON output to understand the
full scope before applying any changes.
JSON output shape:
{
"schema_version": "0.1.0",
"scanned_files": <number>,
"checks_run": ["L01","L02",...],
"findings": [
{
"id": "<check-id>-<slug>",
"severity": "error"|"warning"|"info",
"fixable": true|false,
"file": "sources/lora.md",
"line": 12,
"message": "...",
"fix_applied": false,
"proposed_fix": "..."
}
],
"summary": { "errors": N, "warnings": N, "info": N, "fixes_applied": 0 }
}
Step 2 — Classify findings
Group findings using references/lint-checks.md: errors first, then advisory
warnings. Surface warnings even when summary.errors === 0.
Step 3 — Offer to apply fixes
If there are auto-fixable findings, tell the user what will be fixed and ask for confirmation:
"I found fixable findings. I can auto-fix the following:
- L06 (missing reverse edge):
- L09 (index out of sync) Shall I apply --fix?"
If the user confirms (or runs /lumi-check --fix directly):
node _lumina/scripts/lint.mjs --fix --json
The --fix pass:
- Applies the supported auto-fixes listed in
references/lint-checks.md(L01, L02, L03, L05, L06, L07, L09, L19) - Leaves every other check (L04, L08, L10, L11, L12, L13, L14, L16, L17, L18, L20, L21, L22) for manual correction
- Within a fixable check, some individual findings still can't be repaired
safely (e.g. an L01 on a
number/enumfield with no safe default, or an L05 wikilink whose basename matches more than one page). Those specific findings are left standing on purpose — a correct error beats a silently wrong value — and show up again in Step 4
Step 4 — Self-check re-run
After applying fixes, re-run lint to confirm the error count reached 0:
node _lumina/scripts/lint.mjs --json
If errors remain, do not report done. Address each remaining error specifically:
- If L06 persists after
--fix, the reverse edge target may not exist yet. Identify the missing page and suggest/lumi-ingestor/lumi-editto create it. - If L01 or L02 persist,
--fixrecognized the check but could not safely repair this particular finding — most often anumberorenumfield (e.g. a source'syearorimportance) with no value it could infer on its own. It never writes a wrong-typed placeholder; a standing finding means it genuinely needs a human or an inference pass. Runnode _lumina/scripts/lint.mjs --suggest --jsonand read each finding'ssuggestionfield for a concrete value or next step, then either apply it yourself withwiki.mjs set-metaor hand the batch to/lumi-migrate-legacy(set-metawill refuse a value that doesn't match the field's declared type, so a bad guess never lands silently):node _lumina/scripts/wiki.mjs set-meta <slug> <key> "<value>" - If L05 persists, the wikilink's basename matched zero or more than one page
—
--fixonly rewrites a link when exactly one match exists. Runnode _lumina/scripts/lint.mjs --suggest --jsonand read each finding'scandidatesarray (the matching pages, if any) andsuggestionfield, then either pick the right target yourself or hand it to/lumi-migrate-legacyto decide from page context. - If L08 or L10 remain, report the exact edges or alias conflicts that need manual correction.
- If L13 or L16 persist, suggest
/lumi-migrate-legacy --backfill-ids— these are not fixed bylint.mjs --fix. - If L17 (dangling edge) persists, the edge still points at a slug with no
wiki file. Run
wiki.mjs remove-edge <from> <type> <to>to drop it, or
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
Вложенные файлы
- references/lint-checks.md
FAQ
Что делает скилл lumi-check?
Run lint.mjs --json, summarize findings by severity, offer to apply --fix for auto-fixable checks (L01/L02/L03/L05/L06/L07/L09/L19), self-check re-run to confirm 0 errors, and surface remaining errors and advisory warnings. Use this whenever the user asks to "check the wiki", "run lint", "verify the graph", "are there broken links?", "what's wrong with the wiki?", "health check", or "are there missing reverse links?". Also fires for: weekly review requests, before committing wiki changes, after a bulk ingest session, or any time the user wants to know the structural state of the wiki.
Как установить скилл lumi-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lumi-check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…