|
| 1 | +--- |
| 2 | +name: wiki-ingest |
| 3 | +description: "Ingest a raw source document into the wiki. Reads the source, extracts key information, creates or updates wiki pages, maintains cross-references, and logs the operation. Use when the user adds a new source or says 'ingest this'." |
| 4 | +allowed-tools: Read Write Edit Glob Grep |
| 5 | +--- |
| 6 | + |
| 7 | +# Wiki Ingest |
| 8 | + |
| 9 | +Process a new source document and integrate its knowledge into the wiki. |
| 10 | + |
| 11 | +## Workflow |
| 12 | + |
| 13 | +### Step 1: Read the source |
| 14 | +Read the full source document from `knowledge/`. Identify: |
| 15 | +- Key entities (people, organizations, concepts, technologies) |
| 16 | +- Main claims and findings |
| 17 | +- Relationships between entities |
| 18 | +- Data points and statistics |
| 19 | +- Contradictions with or confirmations of existing knowledge |
| 20 | + |
| 21 | +### Step 2: Discuss with the user |
| 22 | +Before writing, share a brief summary of key takeaways. Ask: |
| 23 | +- What aspects to emphasize? |
| 24 | +- Any entities or concepts to prioritize? |
| 25 | +- Should this update existing pages or create new ones? |
| 26 | + |
| 27 | +### Step 3: Update the wiki |
| 28 | +For each significant entity or concept found in the source: |
| 29 | + |
| 30 | +1. **Check if a wiki page exists** — read `memory/wiki/index.md` |
| 31 | +2. **If page exists** — read it, integrate new information, update the "Sources" section, update frontmatter `updated` date and `source_count` |
| 32 | +3. **If page doesn't exist** — create a new page in `memory/wiki/` with proper frontmatter, content, and source citations |
| 33 | +4. **Update cross-references** — add `[[wikilinks]]` in both directions between related pages |
| 34 | + |
| 35 | +### Step 4: Write a source summary page |
| 36 | +Create `memory/wiki/sources/<source-name>.md` with: |
| 37 | +- One-paragraph summary |
| 38 | +- Key claims extracted |
| 39 | +- Entities mentioned (with wikilinks to their pages) |
| 40 | +- Date ingested |
| 41 | + |
| 42 | +### Step 5: Update index and log |
| 43 | +1. Update `memory/wiki/index.md` — add/update entries for all pages touched |
| 44 | +2. Update `knowledge/index.yaml` — ensure the source is cataloged with tags and priority |
| 45 | +3. Append to `memory/log.md`: |
| 46 | + ``` |
| 47 | + ## [YYYY-MM-DD] ingest | Source Title |
| 48 | + - Pages created: [list] |
| 49 | + - Pages updated: [list] |
| 50 | + - Key findings: [1-2 sentences] |
| 51 | + ``` |
| 52 | + |
| 53 | +## Example |
| 54 | + |
| 55 | +User drops `knowledge/quantum-computing-review-2026.pdf` and says "ingest this". |
| 56 | + |
| 57 | +1. Read the paper, identify entities: quantum computing, error correction, IBM, Google, topological qubits |
| 58 | +2. Discuss key findings with user |
| 59 | +3. Create/update: `quantum-computing.md`, `error-correction.md`, `ibm.md`, `google.md` |
| 60 | +4. Create: `sources/quantum-computing-review-2026.md` |
| 61 | +5. Update `index.md` with all new/updated pages |
| 62 | +6. Append ingest entry to `log.md` |
| 63 | + |
| 64 | +A single source might touch 5-15 wiki pages. This is normal and expected. |
0 commit comments