Logo: 01 Llm Wiki Vanilla

01 Llm Wiki Vanilla

Organisatioun
decodingai-magazine
01-llm-wiki-vanilla

Build and query a minimal LLM-maintained wiki from local markdown notes (modes: ingest, query).

Iwwersiicht

Editeurdecodingai-magazine
Repositoryllm-wiki-workshop
Skill-Numm01-llm-wiki-vanilla
Stären
43
Forks
9
Matgeliwwert Dateien
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    decodingai-magazine huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill 01 Llm Wiki Vanilla an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/decodingai-magazine/llm-wiki-workshop/tree/main/01-llm-wiki-vanilla/.agents/skills/01-llm-wiki-vanilla
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/decodingai-magazine/llm-wiki-workshop.git /tmp/llm-wiki-workshop
mkdir -p .claude/skills
cp -r /tmp/llm-wiki-workshop/01-llm-wiki-vanilla/.agents/skills/01-llm-wiki-vanilla .claude/skills/01-llm-wiki-vanilla
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert 01 Llm Wiki Vanilla an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet 01 Llm Wiki Vanilla automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass 01 Llm Wiki Vanilla net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

LLM Wiki — layer 01, vanilla

You maintain a small wiki that an LLM writes and an LLM reads. Notes go in; a navigable, cited, compounding knowledge base comes out. This layer has no subagents and no scripts beyond two frontmatter walkers — you do every read and every write yourself, so the whole mechanic is visible in one context.

Two files carry the contract, and you follow them exactly:

  • CONVENTIONS.md — layout, identity, threshold, links, log, OKF alignment.
  • PAGES.md — the template and receipt for every page type.

Read both before your first write in a session.


Step 0 — Locate the wiki

Glob wiki-*/ in the project root and keep the ones that contain both raw/ and wiki/.

FoundDo
exactly 1Use it.
more than 1Ask the user which one.
0, ingest modePropose a slug from the topic of the incoming notes (kebab-case, e.g. ai-engineering), confirm it with the user, then create the wiki.
0, query modeSay there is no wiki yet and stop. Do not create one to answer a question.

Creating a wiki:

bash
mkdir -p wiki-<slug>/raw wiki-<slug>/wiki/sources wiki-<slug>/wiki/entities wiki-<slug>/wiki/concepts
printf '# Log\n' > wiki-<slug>/log.md

Step 1 — Detect mode

Ingest iff the user used an explicit verb (ingest, add, build, index) or dropped file/directory paths. Everything else is query.

When it is ambiguous, choose query. Redirecting a query is cheap; a mis-triggered ingest writes files the user did not ask for.


Ingest path

You do this inline. No subagents in this layer — that is the lesson it teaches.

1.1 Collect inputs and dedup

Expand every path the user gave you:

  • a directory → recursively every *.md inside it. An assets/ folder is not a list of inputs — nothing inside it becomes a source. Its files travel later, in 1.2, as attachments of the notes that embed them.
  • a file → itself.

For each input compute its raw path — raw/<slug>.md, where <slug> is the filename stem, slugified: lowercase, every run of non-alphanumeric characters collapsed to a single -, leading/trailing - stripped, truncated to 60 characters at a - boundary.

Then split the inputs (this is the whole of dedup — see CONVENTIONS.md §4):

bash
ls wiki-<slug>/raw/          # everything already ingested, by identity
  • raw path exists → skipped. Report the note by name plus the original_path recorded on its existing source page. If the incoming file differs in content from raw/, say so explicitly and still skip.
  • raw path free → new.

Cap: if new is more than 10, stop and write nothing. Report the count and say why in one sentence: this layer reads every note into a single context, so a large batch blows past what one context can hold and what a reader can follow. Point at a smaller batch (../data_input_examples/notes/02-medium/ fits exactly) and at layer 02, which removes the cap by fanning the work out to one subagent per note. Do not partially ingest, and do not write a log entry — a run that wrote nothing did not happen.

1.2 Copy the raw layer

bash
cp "<input path>" "wiki-<slug>/raw/<slug>.md"

Copy verbatim — no reformatting, no frontmatter, no cleanup. Note each file's original_path (the path as given, normalized relative to the project root) and its title (first H1 in the file, else the filename stem); you need both in 1.3.

Then copy the note's attachments. Scan the copied note for embeds and attachment links — ![[assets/…]] and [[assets/…|label]] — and for each one copy the file from the note's sibling assets/ folder into raw/assets/, keeping the filename:

bash
mkdir -p "wiki-<slug>/raw/assets"
cp "<dir of the input note>/assets/<file>" "wiki-<slug>/raw/assets/<file>"   # skip if it exists

Because raw/assets/ sits beside raw/<slug>.md, the embed in the copy resolves exactly as it did in the source folder — you never rewrite a link, and raw/ stays verbatim. Attachments are payload, not sources (CONVENTIONS.md §4): they get no page and never count toward the threshold. Report them as a count, not by name.

1.3 Write one source page per new raw file

For each new raw file: read it, then write wiki/sources/<slug>.md following PAGES.md § source. Keep each page's receipt fields — the entity and concept slugs you referenced — in your working notes; step 1.4 needs them.

Before you start, list the pages that already exist so you reuse their canonical slugs instead of inventing near-duplicates:

bash
ls wiki-<slug>/wiki/entities wiki-<slug>/wiki/concepts

Be conservative about what you link. Every slug you write is a claim that this note engages with that idea, and two such claims materialize a page.

1.4 Ingest tail — entity and concept pages

bash
uv run --script .agents/skills/01-llm-wiki-vanilla/scripts/count_mentions.py --wiki-dir wiki-<slug>

The qualifying lists are the slugs at ≥2 distinct source-like pages. Write or update a page for every qualifying slug that one of this run's new source pages touched — a slug that was already qualifying and that no new page mentions has not changed, so leave its page alone.

Read only the source pages listed for that slug in the script output. Never open raw/ here. Follow PAGES.md § entity / concept; preserve created and any human-added aliases when updating.

1.5 Rewrite the overview

Rewrite wiki/overview.md per PAGES.md § overview, from a frontmatter walk plus at most 5 full page reads.

1.6 Rebuild the index

bash
uv run --script .agents/skills/01-llm-wiki-vanilla/scripts/build_index_md.py --wiki-dir wiki-<slug>

Fix anything it reports as an ERROR: (a page with no type) before moving on.

1.7 Append to the log

markdown
## <YYYY-MM-DD> ingest | <what came in>

- Ingested N notes from `<path>`; skipped M already present (<names>)
- Source pages: <slugs>
- New pages: <slug> (concept, 2 sources), ...
- Updated pages: <slug> (2 → 3 sources), ...
- Waiting at 1 mention: <slug>, <slug>

1.8 Report back

New and skipped counts, the pages you wrote, the wiki path, and one line telling the user to open wiki-<slug>/wiki/index.md in Obsidian. If any slug is sitting at exactly 1 mention, name a couple — that is the wiki's own to-do list.


Query path

Read-only. The only file query mode writes in this layer is log.md.

  • Q.1 — Locate the wiki (Step 0).
  • Q.2 — Load the map. Read wiki/index.md, then the one or two wiki/<subdir>/index.md files that look relevant. Each bullet is a title — description; that is enough to choose.
  • Q.3 — Read 1–3 pages. Prefer entity/concept pages (already synthesized) over source pages (single-note views).
  • Q.4 — Escalate only if you must. If the wiki pages genuinely do not answer the question, read the specific raw/ file a source page points to. Never bulk read raw/. If the wiki simply does not know, say so — a wiki that hallucinates coverage is worse than an empty one.
  • Q.5 — Answer with [[wikilinks]] to every page you used, and end with a Pages used: list. Distinguish what the notes claim from what you inferred.
  • Q.6 — Log it:
markdown
## <YYYY-MM-DD> query | <topic>

- question: "<verbatim, ≤200 chars>"
- pages used: <count> (<slugs>)
- gap noticed: <one line, or omit>

Harness notes

This skill is written for any agent harness. It needs four capabilities:

CapabilityUsed for
read a fileraw notes, wiki pages
write a fileevery page you create
run a shell commandcp, ls, mkdir, the two scripts
ask the userthe wiki slug, which wiki to use

In Claude Code those are Read, Write, Bash, and AskUserQuestion. Nothing in this skill pins a model or a tool name; layer 02 keeps the same discipline when it starts spawning subagents.

Script reference

Both scripts are PEP 723 single files — uv installs their dependencies on the first run. Paths below are relative to the layer directory.

ScriptCallDoes
scripts/count_mentions.pyuv run --script .agents/skills/01-llm-wiki-vanilla/scripts/count_mentions.py --wiki-dir wiki-<slug>Frontmatter walk over source-like pages → {slug: [pages]} + the qualifying list at ≥2. JSON on stdout, table on stderr.
scripts/build_index_md.pyuv run --script .agents/skills/01-llm-wiki-vanilla/scripts/build_index_md.py --wiki-dir wiki-<slug>Regenerates wiki/index.md and each wiki/<subdir>/index.md from frontmatter, then checks OKF conformance. Deterministic: same input, same bytes.

Neither script writes content. They count and they render — every word in the wiki is written by you.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 01 Llm Wiki Vanilla?

Build and query a minimal LLM-maintained wiki from local markdown notes (modes: ingest, query).

Firwat 01 Llm Wiki Vanilla op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. 01 Llm Wiki Vanilla besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech 01 Llm Wiki Vanilla an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/decodingai-magazine/llm-wiki-workshop/tree/main/01-llm-wiki-vanilla/.agents/skills/01-llm-wiki-vanilla an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen 01 Llm Wiki Vanilla benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat 01 Llm Wiki Vanilla benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir 01 Llm Wiki Vanilla domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill 01 Llm Wiki Vanilla gratis?

Jo. decodingai-magazine huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇