lumi-migrate-legacy

Backfill missing provenance and confidence fields on legacy Lumina wiki entries.

36|16|Updated May 1, 2026
One-click install
npx skills add https://github.com/tronghieu/lumina-wiki --skill lumi-migrate-legacy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lumi-migrate-legacy
Source: https://github.com/tronghieu/lumina-wiki/tree/main/src/skills/core/migrate-legacy
Command: npx skills add https://github.com/tronghieu/lumina-wiki --skill lumi-migrate-legacy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

After upgrading Lumina, legacy wiki entries can be missing newly introduced schema frontmatter fields like provenance and confidence, causing lint findings and reducing discovery quality.

Core Features & Use Cases

  • CHANGELOG-driven backfill: Reads _lumina/CHANGELOG.md migration specs (and lint finding messages) to determine exactly which fields need inference.
  • Evidence-based inference: Uses manifest, lint results, ingest checkpoints, and raw/ file discovery to infer provenance and confidence conservatively.
  • Safe, idempotent writes: Uses set-meta to backfill only missing fields, then re-runs lint and clears legacyMigrationNeeded when errors are resolved.
  • Optional external_ids enrichment: With --backfill-ids, populates external_ids from canonical urls[] without overwriting existing values.

Quick Start

Run /lumi-migrate-legacy to detect and backfill missing provenance/confidence fields, then re-check the wiki with lint.

Frequently Asked Questions about lumi-migrate-legacy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backfill missing provenance and confidence fields in legacy wiki entries?▼

To backfill missing provenance and confidence fields in legacy wiki entries, run a migration that reads CHANGELOG specs and lint findings to infer missing schema metadata conservatively, then applies idempotent frontmatter updates. This ensures your source and concept pages meet current schema requirements.

Why are my wiki pages showing lint errors after a schema upgrade?▼

Wiki pages show lint errors after a schema upgrade because legacy entries are missing newly introduced frontmatter fields like provenance and confidence. You can resolve these L01/L11 lint findings by running a targeted backfill process that updates the frontmatter and clears the legacy migration flag.

What is the best way to update frontmatter on legacy pages without overwriting existing data?▼

The best way to update frontmatter on legacy pages without overwriting existing data is to use an idempotent atomic update process like set-meta. This method backfills only the missing provenance and confidence fields, and can optionally populate external_ids from canonical urls without touching existing values.

How do I infer provenance for old documents after a wiki migration?▼

You can infer provenance for old documents by cross-referencing the manifest, lint results, ingest checkpoints, and raw file discovery. This evidence-based approach conservatively estimates the missing metadata required by the new schema rather than relying on manual entry.

Does the schema backfill process automatically verify that lint errors are eliminated?▼

Yes, the schema backfill process automatically verifies that lint errors are eliminated by re-running lint checks after applying the frontmatter updates. It continues this verification loop until all errors are resolved and clears the legacyMigrationNeeded flag in the manifest.

Can I populate external_ids from urls during the legacy wiki migration?▼

Yes, you can populate external_ids from canonical urls during the legacy wiki migration by using the --backfill-ids option. This enriches the schema without overwriting any existing external_id values already present in the frontmatter.