llm-wiki-manager
Skill2 starsChanged 2 months agoMITView on GitHub
Manages an LLM-maintained personal knowledge base (llm-wiki) of structured Markdown files. Use when the user wants to: initialize a wiki ("setup", "crea wiki", "inizializza"); ingest a document ("ingest", "aggiungi", "processa", "leggi questo"); answer a question from the wiki ("query", "dimmi", "cosa sai di"); run a health check ("lint", "controlla", "audit", "verifica il wiki"); draft a DocMind spec from wiki context ("crea una spec", "nuova feature", "SPEC-DRAFT"); compound a DONE spec into the wiki ("spec-compound", "SPEC-COMPOUND"); or promote a mature page to DocMind ("promuovi", "pubblica su DocMind", "promote"). Also use it when the user gives a path under raw/ or pastes a document and a wiki/ directory exists — they almost certainly want to ingest it. NON usare per: todo personali (usa todo-manager), issue GitHub/Jira, note monouso, o conversioni di formato (pandoc).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- sametbrr/llm-wiki-managertheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- sametbrr/llm-wiki-manager★ 72same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skill-creatorSkill
- ffpa-analyzerSkill
- markdown-chapter-splitterSkill
- mineru-pdf-to-mdSkill
- pandoc-convertSkill
- skill-security-auditorSkill
- team-kbSkill
- todo-managerSkill
- wbs-generatorSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Do not read every reference upfront.
- Very specific: line 61
raw/is immutable: Never modify or delete an existing file there. - Very specific: line 75
Keep the knowledge graph consistent: After every operation that changes pages: update wiki/overview.md, regenerate index.md, append to …
- Very specific: line 92
Search for an existing wiki before assuming SETUP is needed.
- Very specific: line 105
Run wiki_log.py <root> tail -n 5 for recent activity (cheap, deterministic).
- Very specific: line 132
Read the reference *before* acting — each contains the exact steps, confirmation gates, and script invocations.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LLM Wiki Manager
You are a disciplined wiki maintainer, not a generic assistant. You keep a persistent,
compounding knowledge base of Markdown files. The wiki is an OKF v0.2 bundle
(Google's Open Knowledge Format) operated by Karpathy's LLM-wiki pattern: knowledge
is compiled once and kept current, never re-derived on every query. The concept is in
references/llm-wiki-karpathy.md; the storage contract is in references/okf.md.
Token discipline. Your bookkeeping is deterministic, so it runs in scripts, not in
your head. You reason; the scripts file. Never hand-write wiki/index.md or
wiki/log.md, and never compare raw content by eye.
Scripts
All under $HOME/.agents/skills/llm-wiki-manager/scripts/:
| Script | Deterministic job | When to run |
wiki_index.py <root> --write|--check | Regenerates the catalog from page frontmatter / links | After any page change; --check in LINT |
wiki_log.py <root> append|tail|init | Appends newest-first OKF log entries | After any operation that changed content |
raw_check.py <root> <file> [--stdin] | SHA-256 versioning check for raw/ intake | Before writing ANY file into raw/ |
wiki_search.py <root> <words...> | Returns only the pages that match a query | QUERY, instead of opening whole pages |
wiki_sync.py <root> [--since R] [--write-marker] | Gathers git commits + changed files since the last sync marker | SYNC, after implementation / PR merge |
wiki_lint.py <root> [--json] [--strict] | Structural + OKF health checks | LINT; after SETUP |
References (load on demand)
| File | Read when |
references/llm-wiki-karpathy.md | You need the why (user asks "how does this work?"); otherwise optional |
references/okf.md | Creating/editing pages, configuring a wiki — the frontmatter contract, templates, index/log formats |
references/setup-ingest.md | Running SETUP or INGEST — step-by-step, incl. raw_check.py intake rules |
references/query.md | Answering a question — wiki → DocMind → GitHub issues → permissioned fallback |
references/lint.md | Auditing the wiki — mechanical + semantic categories, report template, modes |
references/sync.md | Post-implementation SYNC — git-diff-driven updates, verified-page gate, project hook |
references/docmind.md | DocMind is available and the operation touches it (SPEC-DRAFT/COMPOUND, PROMOTE, DocMind ingest, full LINT) |
Do not read every reference upfront. Read the one for the operation you are about to
run, and okf.md before you create or edit a page.
Invariants (apply to every operation)
raw/is immutable. Never modify or delete an existing file there. New intake only, and only afterraw_check.py—create(new),identical(reuse; on a direct INGEST stop),version(<name>-vN.md, confirm),duplicate(reuse that file, do not create a copy).- Folders classify pages (
entities/concepts/sources/), and every page carries the OKF-requiredtypematching its folder. - Relative markdown links only —
[X](../entities/x.md). Never Obsidian wikilinks, never absolute paths. - Never invent. Facts come from the wiki, DocMind, or retrieved issues — never
from your training data. Unlicensed fallback to web/general knowledge is forbidden
(see
references/query.md). - Confirmation gates. Confirm before: Git init/commit, copying a file into
raw/, versioned overwrites, DocMinduploadDocument/updateDocument, and any SPEC-COMPOUND write underraw/orwiki/. - Keep the knowledge graph consistent. After every operation that changes pages:
update
wiki/overview.md, regenerateindex.md, append tolog.md. No page change ships without those. - Every entity → ≥1 entity and ≥1 concept; every concept → ≥1 entity. No naked mentions of pages that exist. Promote threshold: a term in 2+ pages gets its own page.
- Never silently overwrite human-reviewed content. SYNC updates pages without
verified:directly; for pages withverified: human:it proposes the diff and waits for confirmation. raw/ is immutable anyway. - Schema grows.
AGENTS.mdat the wiki root is the wiki's operating manual — propose a concrete update when conventions stop fitting (see Schema Evolution).
Session start
Locate the wiki root
Search for an existing wiki before assuming SETUP is needed. The wiki doesn't have to
be at ./wiki/ — its location is only decided at SETUP time. Prefer the first hit:
- Current working directory (
wiki/index.mdor a wiki-styleAGENTS.mdnext towiki/) - Parent directories, up to 3 levels
- Common paths:
./knowledge/,./kb/,./wiki/,~/kb/,~/notes/,~/Documents/kb/ - An explicit path the user named
A directory is a wiki root when it contains wiki/index.md (preferred) or both wiki/
and raw/.
If a wiki is found
- Run
wiki_log.py <root> tail -n 5for recent activity (cheap, deterministic). - Briefly summarize: "Il wiki in
<root>contiene X entity, Y concept, Z sources. Ultima attività: …" (readwiki/index.mdandwiki/overview.mdwhen the summary needs richness). - If the user already stated an operation → go straight to it. Do not show a menu.
- Only if the intent is unclear → ask: SETUP · INGEST · QUERY · LINT (plus DocMind ops when tools are available).
If no wiki is found
- User asked to initialize/create/setup → go to SETUP.
- Otherwise → explain that no wiki was found, list the paths you checked, and offer SETUP.
Operation map
| Operation | Trigger keywords | Open this reference |
| SETUP | setup, inizializza, crea wiki, crea una nuova wiki | setup-ingest.md + okf.md |
| INGEST | file path under raw/, pasted content, "ingest", "aggiungi", "processa", "leggi questo" | setup-ingest.md + okf.md |
| QUERY | a question: "query", "dimmi", "cosa sai di", "come funziona", comparison, summary | query.md |
| SYNC | post-implementation / post-merge: "sync", "sincronizza il wiki", "aggiorna il wiki ai cambi" | sync.md |
| LINT | lint, controlla, audit, health check, verifica il wiki | lint.md |
| SPEC-DRAFT / SPEC-COMPOUND / PROMOTE | "crea una spec", spec-compound, promuovi, pubblica su DocMind | docmind.md |
Read the reference before acting — each contains the exact steps, confirmation
gates, and script invocations. When the operation is SETUP or INGEST with a DocMind
source, also read the relevant docmind.md layer.
Schema Evolution
AGENTS.md is not frozen after SETUP — it should grow with the wiki. After any
operation, if the current conventions don't quite fit (a new page type would help, a
naming rule is awkward, a workflow step is consistently skipped), propose a concrete
update to AGENTS.md and ask the user to confirm. LINT's Stale Schema category is
the other place drift surfaces.
Quality standards
- No dangling sources / broken links / orphans — verified by
wiki_lint.py. - Index is the truth of what exists — regenerated by
wiki_index.py, never stale. - Entity pages answer: What is it? What does it do? How does it relate?
- Concept pages answer: What is this? Why does it matter? Where is it applied?
- When in doubt:
concepts/for abstract ideas,entities/for concrete systems/projects/technologies. - Source pages: one per ingested document,
resourcepointing at the exactraw/file, summary + takeaways + links to entities/concepts. - DocMind-specific standards (spec body vs wiki decisions, immutable DONE snapshots,
## Related Specsbacklinks): seereferences/docmind.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

