karlorz/llm-wiki · Archived

wiki-reingest

Detect and act on source drift. Runs skillwiki drift, reviews changes, archives old raw + ingests new content.

First seen Jul 27, 2026

Installation

$ npx skills add karlorz/llm-wiki --skill wiki-reingest

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Also in this package

Other skills from karlorz/llm-wiki · top by installs.

npx skills add karlorz/llm-wiki

Browse all from karlorz/llm-wiki

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 3
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,029 B
  • docs SUMMARY.md 131 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

wiki-reingest

When This Skill Activates

  • User wants to check if any vault sources have changed since ingestion.
  • Periodic drift check during lint or maintenance cycles; scheduled/headless runs report only.
  • User explicitly asks to re-ingest a specific source.

Output language

Run skillwiki lang at the start. Generate log entries in the resolved language.

Pre-orientation reads

Standard four reads (SCHEMA, index, log, project context if applicable).

Steps

  1. Resolve vault: skillwiki path and skillwiki lang.
  2. Run skillwiki drift [vault]. Read the JSON output.
  3. Present findings grouped by status:

- drifted: Source content has changed. Show stored vs current sha256. - identityconflicts: The fetched source no longer matches the raw filename/source identity. STOP and surface the conflict. Do not archive or reingest until a human chooses the correct source/filename pair. - fetchfailed: Could not re-fetch. Show error details. - unchanged: No action needed.

  1. Report-only is the default. skillwiki drift --apply must not rewrite raw hashes or content; it reports the need for a new capture.
  2. For each drifted source, ask the user whether to create a new capture and preserve-archive the old address, or skip.
  3. If the user explicitly approves one source:

a. Follow wiki-ingest to create the updated content as a new raw capture. Verify it before changing the old address. b. Preview skillwiki archive <exact-old-raw-path>. c. Apply only with the live --apply --approve <token> flow. The old complete bytes move to raw/archived/<category>/...; they are never rewritten. d. Update maintained concept/entity pages to cite the new capture where the editorial meaning requires it. Relocation history continues to resolve the old archived evidence.

  1. Append a log event/entry summarizing: scanned, drifted, newly captured, archived, skipped.

N9 Compliance

Raw files are immutable (N9). Re-ingest never modifies an existing raw file. Instead:

  • Preserve the old raw file under raw/archived/<category>/ through the attended structural transaction.
  • Create a new raw file with updated content and new sha256.
  • This preserves full provenance history.

Stop conditions

  • skillwiki drift returns non-zero exit code other than DRIFT_DETECTED.
  • User declines all re-ingest actions.
  • No raw sources have source_url (nothing to check).

Forbidden

  • Modifying files in raw/ directly (N9).
  • Writing new archives to legacy _archive/raw/.
  • Running raw structural apply from scheduled or headless maintenance.
  • Re-ingesting without user approval for each drifted source.
  • Re-ingesting a source listed under identity_conflicts without explicit user approval and a corrected target filename/source URL.
  • Skipping the drift check and assuming sources have changed.