/llm-wiki:llm-wikifrom llm-wiki
Guides users through setting up a personal LLM-maintained wiki — a persistent, compounding knowledge base of interlinked markdown pages built from raw sources. Scaffolds wiki structure, schema, and workflows tailored to the user's domain.
Ships in llm-wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A guided, multi-phase workflow for designing and scaffolding a personal LLM-maintained wiki. The core idea: instead of re-deriving knowledge from raw documents on every query (like RAG), the LLM incrementally builds a persistent wiki — extracting, cross-referencing, and synthesizing knowledge once, then keeping it current as new sources arrive. The wiki compounds over time. The human curates sources and asks questions; the LLM does all the bookkeeping.
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
echo "BRANCH: $_BRANCH"
Every LLM Wiki has three layers:
/wiki folder (or user-defined) in the project's folder for that (if it doesn't exist yet)./output folder of the project (or user-defined) if it doesn't exist yet.1. DISCOVER -> What domain? What's the goal? What sources?
2. SCOPE -> How big? How deep? What outputs matter?
3. STRUCTURE -> Directory layout, page types, naming conventions - see architecture above
4. SCHEMA -> Write the CLAUDE.md and AGENTS.md of the local folder where the skill is invoked for configuration
5. WORKFLOWS -> Define ingest, query, and lint operations
6. TOOLING -> Obsidian plugins, InfraNodus tools for gap analysis, research, and text optimization, CLI tools, search, git
7. SCAFFOLD -> Create the directory structure and starter files
8. ACQUIRE -> Get sources into raw/ (hard-drive import, web fetch, transcription, PDF→md)
9. PROCESS -> Ingest raw/ → wiki/ (summarize, update index, refresh ontologies)
10. PLAN -> Analyze gaps, prioritize research directions, create actionable todos
Phases 8 and 9 are TWO DIFFERENT OPERATIONS. Phase 8 only touches raw/; Phase 9 only
reads raw/ and writes wiki/. Either can run without the other. Both are re-runnable.
Start by understanding the user's domain and motivation. Ask conversationally — 2-3 questions max per message using the AskUserQuestion tool.
What domain or topic is this wiki for? Get specific. Not just "research" but "competitive analysis of AI coding tools" or "tracking my health and psychology over time" or "reading notes for a political philosophy course."
What kinds of sources will you be feeding it? Examples:
What's your end goal? What does success look like?
Are you starting fresh or do you already have sources? If they have existing material, understand the volume and format.
Who else will use this? Just the user, or a team? This affects structure and access conventions.
Based on the domain, ask domain-specific questions using the AskUserQuestion tool:
Don't overwhelm. Gather enough to move to Phase 2. You can refine as you go.
Now calibrate the wiki's scale and depth. This determines how much structure to build.
Ask the user to estimate:
Based on answers, classify the wiki into a tier (share this with the user):
| Tier | Sources | Entities | Duration | Example |
|---|---|---|---|---|
| Light | 5-20 | Few/none | Days-weeks | Reading a single book, trip planning |
| Medium | 20-100 | Dozens | Weeks-months | Research project, course notes, competitive analysis |
| Heavy | 100+ | Hundreds | Months-years | Ongoing team wiki, long-term research program, personal life wiki |
The tier determines how much indexing infrastructure, how many page types, and how formal the schema needs to be.
Based on Phases 1-2, propose a directory structure. Present it to the user and iterate.
See Directory Structure Templates.
All ontology/knowledge-graph files live flat in infranodus/ at the project root, registered in infranodus/manifest.json (file → saved InfraNodus graph). This is a core part of the workflow — not optional. Rules:
generated: true frontmatter belong to their generator script (e.g. the infranodus skill's repo/vault scans) — never append to or hand-edit them. Always check the frontmatter before touching any file in infranodus/.ontology-generator skill (via /ontology-generator or the Skill tool) from the folder's page content; save as infranodus/<folder-name>-ontology.md with curated: true and wikilinksMode: wikilinksOnly. If the skill is missing, ask the user to install it from https://github.com/infranodus/skills.create_knowledge_graph calls: python3 <this skill's dir>/scripts/upload_wiki_ontology.py . --file infranodus/<folder-name>-ontology.md for a new file, plain python3 <this skill's dir>/scripts/upload_wiki_ontology.py . to sync appended lines — it records graphName + url in the manifest. Then save the graph analysis to output/<folder-name>-knowledge-graph-analysis.md and act on the gaps.See Knowledge Graphs and Ontology Policy
Propose page types based on the domain. Common ones:
See Directory Structure Templates.
Propose and confirm with the user:
market-analysis.md) vs other conventions[[page-name]] style for cross-references (Obsidian-compatible)2026-04-08) recommendedShow the proposed structure as a tree diagram. Ask:
This is the most important phase. The schema (CLAUDE.md / AGENTS.md) is what turns a generic LLM into a disciplined wiki maintainer.
CLAUDE.mdAGENTS.mdWrite the schema document with these sections, tailored to the user's domain:
infranodus/ holds the graph files, infranodus/manifest.json maps each file to its saved InfraNodus graph (graphName + url — query these first via analyze_existing_graph_by_name / retrieve_from_knowledge_base instead of re-analyzing), and files with generated: true frontmatter are machine-regenerated (never append or hand-edit) while curated ontologies are append-only.Show the user the draft schema. This is the document they'll live with, so get it right. Ask:
Flesh out the three core operations based on user preferences.
Ask with AskUserQuestion tool:
Ask using the AskUserQuestion tool:
Ask using the AskUserQuestion:
Add the agreed workflows to the schema document with enough detail that the LLM can follow them in future sessions without re-asking these questions.
Based on the user's setup, recommend and configure tools.
Obsidian (recommended): Markdown editor with graph view, wikilinks, and plugins.
VS Code / other editor: Works fine, just loses graph view and wikilink navigation.
InfraNodus: Content gap analysis, insight generation, and knowledge graph analysis and optimization via the InfraNodus MCP server tools or via MCPorter as described at https://infranodus.com/mcp/deploy-mcporter. Ask the user to set up an API key for InfraNodus and update the environment you're using to be able to access that key when needed without saving it to the conversation or wiki.
infranodus skill (repo/vault scanner): If the infranodus skill is listed among the available skills, invoke it (via /infranodus or the Skill tool) for deterministic, LLM-free scans that complement the curated ontologies: mapping the wiki's page-link structure as a graph, mining any code repo among the raw sources (docs, docstrings, WHY/NOTE comments, commit/PR/issue history), and extracting the text layer of PDF collections (a structural map of what the papers literally say — distinct from this skill's summarized wiki pages). It writes generated: true scopes into the same infranodus/ folder + manifest. Refresh generated scopes by re-invoking the skill, never by editing the files — and a clean rebuild of an already-uploaded scope requires deleting its graph in InfraNodus first (uploads append). Offer this during ingest (Phase 9) when the corpus includes a repo, or whenever the user wants the vault's link topology as a graph.
Assess search needs based on tier:
qmd as an option.qmd or a similar local search tool from the start. Offer to help configure it..gitignore (exclude .obsidian/workspace.json and other ephemeral Obsidian files).For power users or heavy-tier wikis, offer to build simple helper scripts:
raw/ and kicks off the ingest workflow)Ask what the user already has installed and what they're comfortable with. Don't over-engineer the tooling for light-tier wikis.
Now build it. Create the agreed directory structure with starter files.
## [YYYY-MM-DD] init | Wiki created_templates/ directory for referenceShow the user the created structure. Walk through each file briefly. Ask:
raw/Re-runnable. Touches only raw/ — never wiki/. Steps:
wiki/sources/*.md yet → first run (acquire ONE source as a test drive); otherwise → ongoing bulk acquisition. If raw/ already holds unprocessed material, skip straight to Phase 9.raw/ subfolder (create on the fly), keep lossy originals in raw/assets/.See Phase 8: ACQUIRE and Phase 9: PROCESS — mode-detection script, capture-channel table, and the exact prompts.
raw/ → wiki/Re-runnable. Reads raw/, writes wiki/ — no acquisition here. When the user says "ingest", "process raw/", or "update the wiki" on an existing wiki, jump directly here — do NOT re-run Phases 1–7. Steps:
raw/, one subfolder, or one file.raw/ file without a matching wiki/sources/<slug>.md.infranodus/ (never regenerate — see the policy in Phase 3), sync with python3 <this skill's dir>/scripts/upload_wiki_ontology.py ., refresh output/<folder>-knowledge-graph-analysis.md, and re-invoke the infranodus skill for any generated scopes.See Phase 8: ACQUIRE and Phase 9: PROCESS — full procedure, inventory script, and handoff text.
After the wiki has accumulated enough content (typically 10+ sources, or after a significant round of ingestion), help the user step back and plan what to research next. This phase analyzes the wiki's current state — using InfraNodus gap analysis and the wiki's own structure — to produce a prioritized todo list that lives in a todos/ folder at the project root.
This phase can be run at any time, not just during initial setup. It's the natural follow-up whenever the user asks "what should I work on next?" or after a batch of new sources has been ingested.
Read the wiki's structural health:
wiki/index.md to understand what existswiki/overview.md for the current synthesisoutput/*-knowledge-graph-analysis.md — these contain identified content gaps, cluster structure, and recommendations
infranodus/manifest.json for saved graphs (curated ontology scopes AND generated repo/vault scopes): run generate_content_gaps on their graphNames for LIVE gap analysis instead of relying only on the last saved analysis file — gaps in the vault-links or repo scopes surface under-connected pages/modules the ontology analyses missmemoryGraph, check it via memory_get_relations for recurring #dead-end and #corrected lessons — these are query-driven evidence of wiki gaps (a human actually asked and the wiki couldn't answer), often stronger signals than structural gap detectionwiki/questions/ for open research questionswiki/data/ for personal data pages (empty = a gap worth flagging)todos/ for existing todo files (to avoid duplicating or contradicting prior plans)Summarize the state back to the user: how many sources, what's well-covered, what's thin.
Using the InfraNodus analyses and wiki structure, identify the highest-value work to do next. Prioritize by convergence — gaps flagged by multiple analyses are more important than one-off mentions.
Common priority types:
| Priority Type | Description | Example |
|---|---|---|
| Content gap | Two clusters in the knowledge graph are disconnected — a bridging concept or source is needed | "Criticality ↔ Metastability — no source connects these two frameworks" |
| Weak coverage | A topic has few sources relative to its importance | "Only 1 intervention study across 48 sources" |
| Empty section | A wiki section exists but has no content | "wiki/data/ has no personal data pages" |
| Naming/framework gap | A framework is partially built — some systems have labels/states, others don't | "HRV and movement states named, breathing states missing" |
| Source to find | A specific paper or source type is needed to fill a gap | "Need breathing-specific fractal variability studies" |
| Synthesis needed | Enough raw material exists but no synthesis page connects it | "Three connection pages mention trauma but no unified framework" |
Present the identified priorities as a ranked list. Ask the user via AskUserQuestion:
Here are the top priorities I see. Which ones do you want to work on?
Offer the priorities as multi-select options so the user can pick which ones matter to them. Include an option to add their own priorities.
For each selected priority, create a markdown file in todos/ at the project root.
mkdir -p todos
Todo file format (todos/<priority-slug>.md):
# <Priority Title>
Deadline: <YYYY-MM-DD>
## Tasks
- [ ] <Task description>
- <Sub-details, context, specific files to update>
- Deadline: <YYYY-MM-DD>
- [ ] <Task description>
- <Sub-details>
- Deadline: <YYYY-MM-DD>
Guidelines for writing todos:
- [ ]) for every actionable item — these render as clickable checkboxes in Obsidian[[wikilinks]] where relevant so the user can navigate from the todo to the related contentIf the user wants deadlines, ask via AskUserQuestion:
What timeframe are you working with for these priorities?
If they choose a timeframe, distribute deadlines across the period, respecting task dependencies (e.g., "ingest sources" must come before "write framework that synthesizes them").
Check if the /actionize skill is available (listed in available skills). If it is, ask via AskUserQuestion:
Want to turn these priorities into a tracked plan with Telegram reminders? The
/actionizeskill can set up daily deadline nudges and progress tracking.
/actionize with these prioritiesIf yes, invoke the /actionize skill (via the Skill tool) and pass a summary of the selected priorities as input. Format the input as:
Priorities from wiki gap analysis:
1. **{Priority title}** — {description}. Tasks: {task list from todo file}. Deadline: {deadline if set}.
2. **{Priority title}** — ...
...
Priority order: #1 → #2 → #3. Schedule with reminders.
The /actionize skill will handle: co-designing the plan with the user, creating .plan/ with status tracking, setting up Telegram bot + daily cron reminders, and installing the done.sh CLI for marking tasks complete from the terminal.
The two systems are complementary — both should exist:
todos/ = the visible, Obsidian-browsable research plan (committed to git, checkboxes in markdown).plan/ = the reminder/tracking engine with Telegram integration (gitignored, personal, machine-readable status)If /actionize is not available, mention that the user can install it for Telegram reminders and deadline tracking. The todo files work standalone without it.
Show the user what was created:
RESEARCH PLAN CREATED
════════════════════════════════════════
Priorities: {count} workstreams
Todo files: todos/{list filenames}
Timeline: {date range or "open-ended"}
════════════════════════════════════════
List each todo file with its task count. Remind the user:
wiki/questions/ for individual research questions vs todos/ for planned workstreamsraw/, wiki/, CLAUDE.mdALWAYS follow this structure for every AskUserQuestion call:
_BRANCH value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)RECOMMENDATION: Choose [X] because [one-line reason] — always prefer the complete option over shortcuts (see Completeness Principle). Include Completeness: X/10 for each option. Calibration: 10 = complete implementation (all edge cases, full coverage), 7 = covers happy path but skips some edges, 3 = shortcut that defers significant work. If both options are 8+, pick the higher; if one is ≤5, flag it.A) ... B) ... C) ... — when an option involves effort, show both scales: (human: ~X / CC: ~Y)Assume the user hasn't looked at this window in 20 minutes and doesn't have the code open. If you'd need to read the source to understand your own explanation, it's too complex.
Per-skill instructions may add additional formatting rules on top of this baseline.
--
Throughout all phases, keep these in mind:
The user never writes the wiki. The LLM writes and maintains all wiki pages. The user curates sources, asks questions, and directs the analysis.
Start simple, add complexity as needed. Don't build a heavy-tier structure for a light-tier project. The user can always add page types and conventions later.
The schema is a living document. It will evolve as the user discovers what works. Encourage experimentation.
Knowledge should compound. Good answers to questions should be filed back into the wiki. Explorations should become pages. The wiki should get richer with every interaction.
The wiki replaces chat history. Insights that emerge in conversation should be captured in the wiki, not lost when the chat window closes.
Make it concrete. Don't just describe what pages could look like — create actual examples during scaffolding so the user can see and react to real content.
Obsidia (or a similar MD file viewer) is the IDE, the LLM is the programmer, the wiki is the codebase, InfraNodus is the researcher Frame it this way to help the user understand the workflow.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub infranodus/skills --plugin llm-wiki2 plugins in one repository ship this exact skill · first indexed Sep 1, 2026
Other plugins' skills for the same job