Home / Commands / alirezarezvani/claude-skills

wiki-ingest

Ingest a source file from raw/ into the LLM Wiki β€” read, discuss, write summary page, update cross-references across 5-15 pages, regenerate index, append to log. Usage /wiki-ingest <path-to-source>

commandLicense: MIT Source: alirezarezvani/claude-skills

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/wiki-ingest.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/commands/wiki-ingest.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/wiki-ingest.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/commands/wiki-ingest.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source β†—

---
name: wiki-ingest
description: Ingest a source file from raw/ into the LLM Wiki β€” read, discuss, write summary page, update cross-references across 5-15 pages, regenerate index, append to log. Usage /wiki-ingest <path-to-source>
---
<!-- canonical copy: engineering/llm-wiki/commands/wiki-ingest.md β€” keep in sync (root copy uses repo-root-relative script paths) -->

# /wiki-ingest

Ingest a new source into the LLM Wiki. This is the most-used command.

The flow: read the source β†’ discuss TL;DR and key claims with you β†’ write a source summary page β†’ update every relevant entity and concept page β†’ flag contradictions β†’ update `index.md` β†’ append to `log.md`.

A typical ingest touches **5-15 wiki pages**. You (the user) are in the loop: the ingestor proposes changes and waits for your confirmation before writing.

## Usage

```
/wiki-ingest <path>
/wiki-ingest raw/papers/monosemanticity.pdf
/wiki-ingest raw/articles/2026-04-01-interpretability-post.md
```

## What happens

1. **Prep** β€” runs `engineering/llm-wiki/skills/llm-wiki/scripts/ingest_source.py` to get title, preview, and suggested summary path
2. **Read** β€” reads the source directly
3. **Discuss** β€” reports TL;DR, key claims, which pages will be touched, any contradictions
4. **Confirm** β€” waits for your go-ahead (or redirects)
5. **Write** β€” creates the source summary, updates 5-15 pages, flags contradictions
6. **Index** β€” runs `engineering/llm-wiki/skills/llm-wiki/scripts/update_index.py` or edits `wiki/index.md` inline
7. **Log** β€” runs `engineering/llm-wiki/skills/llm-wiki/scripts/append_log.py --op ingest --title "<title>"`
8. **Report** β€” bulleted wikilinks to every touched page

## Sub-agent

This command dispatches the `wiki-ingestor` sub-agent for the heavy lifting. See `agents/wiki-ingestor.md`.

## Scripts

- `engineering/llm-wiki/skills/llm-wiki/scripts/ingest_source.py` β€” source prep (metadata + preview)
- `engineering/llm-wiki/skills/llm-wiki/scripts/update_index.py` β€” regenerate index
- `engineering/llm-wiki/skills/llm-wiki/scripts/append_log.py` β€” log the ingest

## Rules

- The source must be inside the vault's `raw/` layer. If it isn't, the command will ask you to move it first.
- `raw/` is immutable β€” the ingestor reads only.
- If a summary page already exists, the ingestor enters **merge mode** and appends a re-ingest section.

## Skill Reference

β†’ `engineering/llm-wiki/skills/llm-wiki/SKILL.md`
β†’ `engineering/llm-wiki/skills/llm-wiki/references/ingest-workflow.md`