Command Palette

Search for a command to run...

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

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от 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 globs
  • wiki/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/enum field 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-ingest or /lumi-edit to create it.
  • If L01 or L02 persist, --fix recognized the check but could not safely repair this particular finding — most often a number or enum field (e.g. a source's year or importance) 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. Run node _lumina/scripts/lint.mjs --suggest --json and read each finding's suggestion field for a concrete value or next step, then either apply it yourself with wiki.mjs set-meta or hand the batch to /lumi-migrate-legacy (set-meta will 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 — --fix only rewrites a link when exactly one match exists. Run node _lumina/scripts/lint.mjs --suggest --json and read each finding's candidates array (the matching pages, if any) and suggestion field, then either pick the right target yourself or hand it to /lumi-migrate-legacy to 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 by lint.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
Полный SKILL.md на GitHub

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

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

  1. 01Bash
  2. 02Read

Вложенные файлы

  • 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), без исполняемых скриптов.

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

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