/lumin-repo-lens:lumin-repo-lens-canonfrom lumin-repo-lens
Maintainer-only canon surface for Lumin Repo Lens: drafts and checks canonical repository facts, detects drift, and validates parser contracts with machine evidence.
Ships in lumin-repo-lens. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is the maintainer-facing canonical fact surface for lumin-repo-lens.
It owns canon-draft and check-canon together because draft output is
reviewed, promoted, and later checked for drift as one lifecycle.
Default voice is concise and factual. This surface may use colder
terminology than the audit surface, but every claim still needs machine
evidence and scan range.
Do not use casual hedging. If evidence is missing or degraded, emit
unknown or a degraded status directly with the scan range.
NO STRUCTURAL CLAIM WITHOUT MACHINE EVIDENCE
NO ABSENCE CLAIM WITHOUT STATED SCAN RANGE
The shared engine lives in the sibling audit skill:
node ${CLAUDE_PLUGIN_ROOT}/skills/lumin-repo-lens/scripts/audit-repo.mjs
In a maintainer checkout, the equivalent command is:
node audit-repo.mjs
Slash commands still read <SKILL_ROOT>/references/command-routing.md from the
shared audit skill for exact flag routing.
Below, <SKILL_ROOT> means
${CLAUDE_PLUGIN_ROOT}/skills/lumin-repo-lens in plugin
installs, or the repo root in a maintainer checkout.
Below, <audit-repo> means whichever of the two commands above applies
to the current context.
This surface owns /lumin-repo-lens:canon-draft and
/lumin-repo-lens:check-canon.
<SKILL_ROOT>/references/command-routing.md first for
slash-command routing.<SKILL_ROOT>/references/lifecycle-modes.md when exact flags, exit codes, or
artifact names matter.<SKILL_ROOT>/canonical/canon-drift.md for drift categories, parser contract,
per-source Markdown reports, and canon-drift.json shape.<SKILL_ROOT>/canonical/fact-model.md,
<SKILL_ROOT>/canonical/identity-and-alias.md, and
<SKILL_ROOT>/canonical/classification-gates.md when a drift category, identity, or
label set is ambiguous.Use when current artifacts should propose canonical facts for review:
<audit-repo> --canon-draft --root <repo> --output <dir> --sources <sources>
Drafts are proposals, not promoted truth. The model may summarize why a draft changed, but a human or maintainer process still promotes it.
Use when promoted canonical/ facts should be compared against fresh
artifacts:
<audit-repo> --check-canon --root <repo> --output <dir> --sources <sources>
If a source is missing, skipped, degraded, or diagnostic-only, surface that status. Do not turn "skipped" into "clean."
Use short maintainer blocks:
For full details, cite canon-drift.json, per-source
canon-drift.<source>.md, and manifest.json.
If the user shifts to general repo structure, cleanup priority, or
refactor-plan coaching, hand off to lumin-repo-lens. If the
user shifts to code changes before or after implementation, hand off to lumin-repo-lens-write-gate.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/lumin-repo-lensAudit TypeScript/JavaScript repos for structural debt with machine evidence: dead exports, cycles, oversized modules, duplicate helpers/types, barrels, naming drift, refactor plans, 'what should I clean up next?', and 'does X exist anywhere?'/lumin-repo-lens-write-gateUse before/after TS/JS code changes: add, edit, move, rename, refactor, make a helper/type/file/function, or ask if something already exists. Infer intent from plain language, run pre-write reuse screening, then post-write delta checks.npx claudepluginhub annyeong844/lumin-repo-lens --plugin lumin-repo-lensOther plugins' skills for the same job