一键导入
digest
// Deep-propagate one or more ingested sources across the wiki — update concept/entity/question pages, flag contradictions, create new pages where warranted. Optional step after ingest to ensure claims ripple through the full wiki.
// Deep-propagate one or more ingested sources across the wiki — update concept/entity/question pages, flag contradictions, create new pages where warranted. Optional step after ingest to ensure claims ripple through the full wiki.
| name | digest |
| description | Deep-propagate one or more ingested sources across the wiki — update concept/entity/question pages, flag contradictions, create new pages where warranted. Optional step after ingest to ensure claims ripple through the full wiki. |
Goal: take one or more raw files that already have a wiki summary page (created by ingest) and produce the full ripple effect — surgical propagation into existing pages + new pages where genuinely warranted + index/log updates. This is the skill that turns an ingested source into integrated knowledge across the wiki.
ingest skill, as an optional deeper pass.wiki/ whose claims haven't been fully propagated.CLAUDE.md or AGENTS.md) and wiki/home.md at least once in this session.If your agent supports subagents (e.g., Claude Code's Agent tool), delegate the heavy lifting:
wiki/home.md, and wiki/index.md to understand the current wiki state.Why delegate: the main thread should not hold multiple source bodies simultaneously. The subagent reads sources once, makes surgical edits, and returns a diff summary.
If your agent does not support subagents (e.g., Codex, Cursor), do the work inline — read the schema, identify sources, and make the edits yourself following the same rules in the subagent brief below.
If the user didn't name specific files, check which source-summary pages exist but whose claims don't appear in concept/entity pages:
# Find source-summary pages (have type: frontmatter)
grep -l "^type:" wiki/*.md
Confirm with the user before digesting if there's ambiguity.
Read these three files (and pass their content to the subagent, if using one):
CLAUDE.md (or AGENTS.md) — schema, conventions.wiki/home.md — current through-line and live tensions.wiki/index.md — full catalog of existing pages.If using subagents, launch one with this brief (adapt per run). Otherwise, follow these same instructions yourself:
Job: Digest source(s) into the wiki. Follow the wiki schema (
CLAUDE.md/AGENTS.md) exactly.Sources to digest:
<list of wiki source-summary pages>Current wiki state:
wiki/home.mdis the human narrative;wiki/index.mdis the agent catalog. Readhome.mdfirst to ground yourself, thenindex.mdto know what pages exist.For each source, do the full ripple:
Read the source summary and its raw. Once, carefully.
Propagate and cross-link. Make surgical edits (not rewrites) to existing pages the source materially informs. Rules:
- Add to existing paragraphs/sections where the new material belongs; don't create duplicate sections.
- Cite the source:
([[<slug>]]).- If the source contradicts an existing claim, add a
> [!contradiction]callout inline.- If a claim has a canonical home elsewhere, link rather than duplicate.
- Add backlinks: when you update an existing page to reference a new concept, also edit the new concept page to link back. Every connection should be bidirectional.
- No orphans: after propagation, every source-summary and every concept page must have at least 2 inbound
[[wikilinks]]from other pages. If a page has zero inbound links, find related pages and add references to them.Create new pages only when the material genuinely warrants one — a new entity, concept, open question, or strategic position — not for every tangent. Lean conservative.
Update
wiki/index.mdto list every new page under the right category.Prepend one log entry per source digested to
wiki/log.md(below the header):## [YYYY-MM-DD HH:MM] digest | <title>. Newest entries at top.Rules:
- Never modify
raw/. Read-only.- Stay flat. No new subdirectories inside
wiki/—wiki/sources/is the only allowed subdirectory.- Don't invent facts. If the source doesn't say something, don't claim it.
- Don't touch schema files (
CLAUDE.md,AGENTS.md) orhome.mdunless the source forces a schema change (rare — flag it, don't just do it).- Don't rewrite existing pages wholesale. Surgical edits only.
- Don't duplicate content across pages. One canonical home per claim, others link.
Deliverable (under 300 words):
- New pages created (filenames only).
- Existing pages updated (filenames only).
- Any contradictions flagged.
- Judgment calls worth the user reviewing.
- Any new open questions the wiki should track.
Summarize the subagent's return concisely (under 200 words). Highlight:
Then ask the user if anything needs adjustment.
If multiple sources need digesting and you're using subagents, dispatch one subagent for all of them rather than one per source. Cross-references between sources stay coherent that way.
ingest first.Fetch one or more Readwise Reader documents into raw/ without loading bodies into context. Streams content to disk via jq pipe, then chains into ingest.
Import highlights and documents from Readwise into the wiki using the Readwise CLI (not MCP). Searches and browses interactively, then delegates to fetch-readwise-document and fetch-readwise-highlights for streaming large content to disk.
Ingest a source into the wiki — read it, create a source-summary page, propagate claims into concept/entity pages, update index and log.
Health-check the wiki for contradictions, orphan pages, stale claims, and missing cross-links.
Upgrade this wiki's scaffold files (CLAUDE.md, skills, build tooling) to match the latest Wikiwise app version from GitHub.
Mine Readwise highlights via vector search, group by parent document, and write highlight collections into raw/. Streams results to disk without loading into context, then chains into ingest.