LLM Wiki Ingest Skill
Purpose
Integrate a newly provided raw source into the wiki while preserving raw-source immutability and maintaining index/log bookkeeping. The wiki is an OKF v0.1 bundle (see SPEC.md); wiki/ is the bundle root.
Preconditions (must pass before edits)
- The operator explicitly requested ingestion.
- The source file exists at
raw/sources/<file>orraw/assets/<file>. - The workflow will not modify anything under
raw/.
Guardrails
- Immutable raw files: Never edit, rename, move, or delete any file under
raw/. - Wiki ownership: Create/update pages only under
wiki/(unless operator explicitly overrides). - Append-only log: Only append a new date-grouped entry to
wiki/log.md; never rewrite or reorder prior entries. - Index freshness: Any wiki page change in this workflow requires
wiki/index.mdto be rebuilt before completion. - OKF conformance: Created/updated pages must satisfy OKF §9 (parseable frontmatter with non-empty
type) and the producer conventions inAGENTS.md§ Page Types & Conventions. - Obsidian wikilinks: Internal note-to-note links use Obsidian wikilinks (
[[note]]/[[note|Display]]), resolving by file basename or frontmatteraliases. Standard markdown links are used ONLY for external URLs (https://…). SeeAGENTS.md§ Cross-linking. - Single source of truth: The schema is defined in
AGENTS.md. This skill enforces it; it never re-defines page types, frontmatter, or sections inline.
Required Step Order (exact)
- Read the raw source from
raw/sources/orraw/assets/.- If text references images/assets, read those after the main text.
- Discuss key takeaways with operator before framing final extraction.
- Minimal prompt:
- "I summarized the source. What should I emphasize?"
- "Any specific connections to existing entities/concepts you want prioritized?"
- "What should be de-emphasized or deferred?"
- Minimal prompt:
- Write source summary page in
wiki/sources/using filenameYYYY-MM-DD--source-title-slug.md, followingAGENTS.md§ Source Pages. Set frontmatterresourceto the raw source path (e.g.raw/sources/file.pdf); settitle,description,tags,created,timestamp(today). - Update/create entity pages in
wiki/entities/for concrete things mentioned, followingAGENTS.md§ Entity Pages. Use Obsidian wikilinks ([[note]]or[[note|Display]]) for cross-links and# Citationsentries — the link target is the note's basename or one of itsaliases. When updating an existing entity page from this source, increment itssource_countby 1 and bumptimestampto today; when creating a new page, setsource_count: 1. - Update/create concept pages in
wiki/concepts/for abstract ideas mentioned, followingAGENTS.md§ Concept Pages, applying the samesource_countincrement andtimestampbump rule as step 4. - Rebuild
wiki/index.mdfollowing the Canonical rebuild procedure inAGENTS.md§ Update Rules for Special Files (wiki/index.md): scan every.mdunderwiki/entities/,wiki/concepts/,wiki/sources/, andwiki/syntheses/(neverwiki/templates/), read each page's frontmatter, and rewrite the five sections (Entities, Concepts, Sources, Syntheses, Statistics) as bullet lists (* [[note-name|Title]] - description), preserving theokf_version: "0.1"frontmatter. The index must list exactly the pages that exist on disk. - Append to
wiki/log.mda single new date-grouped entry — newest first, never edit or reorder prior entries (OKF §7).- Heading:
## YYYY-MM-DD - Bullets:
* **Ingest**: <Source Title> — <one-line summary of what was created/updated>.,* **Pages touched**: <list>.,* **Notes**: ...,* **Open questions**: ...
- Heading:
Done Gate (verify before reporting done)
- Source page exists in
wiki/sources/and complies with its type contract inAGENTS.md§ Source Pages (frontmatter has non-emptytypeplustitle/description/resource/tags/timestamp; all H1 sections present). - Every entity/concept page created or updated complies with its type contract in
AGENTS.md(Entity Pages / Concept Pages). - No legacy fields reintroduced (
updated,source_path). - Internal links are Obsidian wikilinks (
[[…]]); standard markdown links appear only for external URLs. No bundle-relative/pathmarkdown links to internal notes. - Every
[[wikilink]]in created/updated pages resolves to a page on disk (basename oraliasesmatch), OR is an intentional not-yet-written reference (OKF §5.3 tolerates the latter; note any such links). -
wiki/index.mdrebuilt per the Canonical rebuild procedure and lists every page touched in this ingest (no phantom entries, no missing entries). -
wiki/log.mdhas a newly appended## YYYY-MM-DDingest entry in the OKF §7 date-grouped format above.
Path Handling Rules
- Input source roots:
raw/sources/,raw/assets/. - Output summary root:
wiki/sources/. - Entity updates:
wiki/entities/. - Concept updates:
wiki/concepts/. - Required global bookkeeping files:
wiki/index.md,wiki/log.md.