agentleFS
mqmalagrismqmalagris/agent-skills/skills/llm-wiki/SKILL.md

llm-wiki

Skill0 starsChanged 8 days agoMITView on GitHub

Build and maintain an LLM-maintained wiki — a persistent, interlinked Markdown knowledge base distilled from curated raw sources (Karpathy's LLM Wiki pattern). Three operations: ingest (read a source, write and update pages, log it), query (answer from the wiki with citations, file good answers back), lint (contradictions, stale claims, broken links, orphans). Path-agnostic: the user picks where the wiki lives, the skill remembers it. Works on a fresh directory, a repo's docs/, or an existing memory directory. Use when the user wants to file a document or incident writeup into their knowledge base, asks what their notes say about a topic, wants the wiki checked for contradictions or staleness, mentions an LLM wiki, Memex, or second brain, or runs /llm-wiki.

94 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use touchdesigner-mcp, teams-meeting-pipeline and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • john-data-chenSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 7 projects that use this

  • john-data-chenSkill

    teams-meeting-pipeline

    Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.

    Also in 9 projects that use this

  • mae616Skill

    p5js

    p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。

    Also in 12 projects that use this

  • aivrarSkill

    competitor-news-monitor

    Watch named companies for material news; cited digests.

    Also in 6 projects that use this

  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 7 projects that use this

  • Ivy-Chen1999Skill

    claude-history-ingest

    Ingest Claude Code conversation history into the Obsidian wiki. Use this skill when the user wants to mine their past Claude conversations for knowledge, import their ~/.claude folder, extract insights from previous coding sessions, or says things like "process my Claude history", "add my conversations to the wiki", "what have I discussed with Claude before". Also triggers when the user mentions their .claude folder, Claude projects, session data, past conversation logs, local-agent-mode sessions, or audit logs.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 76 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If found, use it.

    line 32
  2. Very specific:

    If the folder has no WIKI.md, this is a fresh wiki — write the schema (see below) before anything else.

    line 35
  3. Distinctive:

    Read the source in full. Never edit, move, or rewrite it.

    line 60
  4. Very specific:

    Write a source-summary page for the source itself, then create or amend every entity/concept page it affects.

    line 62
  5. Distinctive:

    When new material contradicts an existing page, do not silently overwrite: keep both claims, mark the older one superseded with its date, …

    line 63
  6. Very specific:

    Add index lines for new pages.

    line 64
  7. Distinctive:

    Search page descriptions first, then bodies.

    line 68
  8. Very specific:

    If the answer was worth assembling, offer to file it back as an analysis page.

    line 70
  9. Very specific:

    Run scripts/lint.mjs <wiki-root> for the deterministic checks (broken links, orphans, index drift, frontmatter gaps, oversized …

    line 74
  10. Distinctive:

    Never edit raw sources. Ever.

    line 88
  11. Distinctive:

    Never write without showing the plan first.

    line 89
  12. Distinctive:

    Prefer amending an existing page to creating a near-duplicate.

    line 90
  13. Distinctive:

    No time-sensitive claims without a date attached.

    line 91

“Common” is measured: kept by at least 6 in 10 of the 76 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

llm-wiki

Maintain a wiki the LLM owns and the human curates. Three layers, three operations.

LayerWho owns itRule
Raw sourceshumanread-only, never edited or moved by this skill
Wikithis skillinterlinked Markdown pages + MEMORY.md-style index
Schemathis skillWIKI.md in the wiki root — conventions, written on init

Human curates sources, directs analysis, asks questions. Skill does the bookkeeping.

Quick start

/llm-wiki ingest <path-to-source>     # file a document into the wiki
/llm-wiki query <question>            # answer from the wiki, with citations
/llm-wiki lint                        # contradictions, stale claims, broken links

Path resolution

Resolve before any read or write:

  1. Check memory for a reference entry naming the wiki root (name/description containing llm-wiki or wiki root).
  2. If found, use it.
  3. If not, ask: "Where should the wiki live? (absolute path to a folder — I'll create it if missing.)" Offer the three common answers: a fresh folder, this repo's docs/, or the existing memory directory.
  4. Save a reference memory entry so future runs don't re-prompt, and add its one-line pointer to MEMORY.md.
  5. If the folder has no WIKI.md, this is a fresh wiki — write the schema (see below) before anything else. Never create silently.

Page format

One idea per page. Match an existing wiki's conventions if pages are already there; otherwise:

---
name: <kebab-case-slug>          # must equal the filename without .md
description: <one line, <1024 chars — used for retrieval>
type: entity | concept | source-summary | analysis
sources: [<source-file-or-url>, ...]
updated: YYYY-MM-DD
---

<body — link related pages with [[slug]]>

Links use [[slug]] where slug is the filename without .md. A link to a page that doesn't exist yet is fine — it marks work to do. Every page gets one index line.

Operations

ingest <source>

  1. Read the source in full. Never edit, move, or rewrite it.
  2. Report takeaways and say which pages you intend to touch. Wait for confirmation.
  3. Write a source-summary page for the source itself, then create or amend every entity/concept page it affects. One source commonly touches 5–15 pages — that fan-out is the point.
  4. When new material contradicts an existing page, do not silently overwrite: keep both claims, mark the older one superseded with its date, and say so in the report.
  5. Add index lines for new pages. Append one line to LOG.md: date, source, pages touched.

query <question>

  1. Search page descriptions first, then bodies. Read whole pages, not fragments.
  2. Answer with citations to page slugs. Say plainly when the wiki doesn't cover it — never fill the gap from general knowledge without labelling it as outside the wiki.
  3. If the answer was worth assembling, offer to file it back as an analysis page. That is how the wiki compounds.

lint

  1. Run scripts/lint.mjs <wiki-root> for the deterministic checks (broken links, orphans, index drift, frontmatter gaps, oversized descriptions, stale pages).
  2. Then do the part a script can't: read the pages and hunt contradictions — two pages asserting different values for the same fact, superseded numbers still stated as current, claims whose source has since changed.
  3. Report findings ranked by whether they would produce a wrong answer. Propose fixes; apply only on confirmation.

Contradictions are the payload. Link hygiene is housekeeping — report it, don't lead with it.

Schema file

On init, write WIKI.md to the wiki root recording: the page format above, the link convention, the index file name, and what counts as a raw source for this wiki. Read it on every subsequent run and follow it over the defaults here — the wiki's own conventions win.

Rules

  • Never edit raw sources. Ever.
  • Never write without showing the plan first.
  • Prefer amending an existing page to creating a near-duplicate; check the index before creating.
  • No time-sensitive claims without a date attached.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.