| name | ingest |
| description | Ingest a source into the wiki — read it, create a source-summary page, propagate claims into concept/entity pages, update index and log. |
Ingest a source
Read the source material provided by the user (URL, file path, or pasted text). Then:
- Save the raw source into
raw/ as an immutable document.
- Create a source-summary page at
wiki/sources/<slug>.md with frontmatter (type, date, author, url, raw). If the raw source references images (by filename or path), run find . -name "<filename>" (or use the Glob tool) to locate the actual file in the repo, copy it to wiki/assets/, and embed it in the summary page as . If the image isn't found locally, link via the URL if one is available. Images make source pages far more useful to browse.
- Propagate claims — update or create concept/entity pages at the
wiki/ root that are affected by this source. Cite the source inline with ([[slug]]).
- Cross-link aggressively — this is the step most often skipped and the most important:
- Read
wiki/index.md to find every page related to the new material.
- Add
[[wikilinks]] FROM existing pages TO the new pages. Open 2-3 related existing pages and edit them to reference the new content where it's relevant.
- Add
[[wikilinks]] FROM new pages TO existing pages. Every new page should link out to related concepts, entities, and sources already in the wiki.
- The goal: no orphans. Every new page should have inbound links from existing pages AND outbound links to them.