From claude-commands
Ingests files into a local LLM-powered wiki, creating source pages, extracting entities/concepts, and updating the index. Useful for building a personal knowledge base from documents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:wiki-ingestThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
/wiki-ingest <file_or_path> [--wiki <wiki_dir>]
Ingest a source document into the wiki. Creates a source page, extracts entities and concepts, updates the index.
--wiki <wiki_dir> overrides the default wiki location (~/llm_wiki/wiki). The raw/ directory is derived as the sibling of the wiki dir: $(dirname <wiki_dir>)/raw.
# Parse args: file is first positional; --wiki <path> overrides default
# Check for local wiki default (project-level override)
if [ -f ".wiki-default" ]; then
WIKI=$(cat .wiki-default)
elif [ -f "$HOME/.wiki-default" ]; then
WIKI=$(cat "$HOME/.wiki-default")
else
WIKI="$HOME/llm_wiki/wiki"
fi
FILE_ARG="<first positional arg>"
# --wiki flag always wins over .wiki-default
if args contain "--wiki <path>"; then
WIKI="<path>"
fi
WIKI_ROOT=$(dirname "$WIKI")
RAW_DIR="$WIKI_ROOT/raw"
SOURCE="$RAW_DIR/$(basename "$FILE_ARG")"
# Copy source to raw/ if not already there
mkdir -p "$RAW_DIR"
cp "$FILE_ARG" "$SOURCE" 2>/dev/null || cp "$(pwd)/$FILE_ARG" "$SOURCE"
# Determine slug from filename
SLUG=$(basename "$FILE_ARG" | sed 's/\.md$//' | sed 's/[^a-zA-Z0-9]/-/g' | tr '[:upper:]' '[:lower:]')
Read the file fully.
Read wiki/index.md and wiki/overview.md for current wiki state.
Write wiki/sources/<slug>.md using Source Page Format:
---
title: "<title>"
type: source
tags: []
date: YYYY-MM-DD
source_file: <relative path>
---
## Summary
2–4 sentence summary.
## Key Claims
- Claim 1
- Claim 2
## Key Quotes
> "Quote here" — context
## Connections
- [[EntityName]] — how they relate
- [[ConceptName]] — how it connects
Add entry to wiki/index.md under Sources section.
Check if new content affects [[jeffrey-oracle]]. If so, append to wiki/log.md.
Create entity pages for key people, companies, projects. Create concept pages for key ideas, frameworks, methods.
Append to wiki/log.md: ## [YYYY-MM-DD] ingest | <Title>
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsIngest new sources into the LLM Wiki. Reads unprocessed files from raw/, docs/, and notes/, creates source summaries, updates entity/concept pages, maintains cross-references, and updates the index and log. Use when new files have been added.
Ingests source files from raw/ into wiki: reads content, discusses takeaways, creates summary pages for sources/entities/concepts, updates index/log.
Ingests new sources (papers, articles, URLs, files, transcripts) into a wiki: reads content, surfaces takeaways, writes summary pages, updates entities/concepts/index/log.