Llm Wiki 标志

Llm Wiki

社区
bighardperson
llm-wiki

使用 LLM 构建和维护个人知识库(wiki)。不同于 RAG 式检索,LLM 会从原始资料中逐步编纂内容、建立交叉引用,并维护一个持久化的结构化 wiki。适用于用户想要创建知识库、构建个人 wiki、整理研究笔记、将文档导入结构化 wiki,或维护持续更新的知识库时。

Add to TypingMind

概览

发布者bighardperson
代码仓库computer-science-skills-collection
技能名称llm-wiki
星标数
66
复刻数
10
附带文件
1
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 bighardperson 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Llm Wiki AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bighardperson/computer-science-skills-collection/tree/main/skills/Karpathy%20LLM%20Wiki
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Llm Wiki,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Llm Wiki。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Llm Wiki 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Karpathy LLM Wiki

A pattern for building personal knowledge bases using LLMs.

Based on Andrej Karpathy's LLM Wiki.

The Core Idea

Instead of RAG (retrieve-on-every-query), the LLM incrementally builds and maintains a persistent wiki — a structured, interlinked collection of markdown files. When you add a new source, the LLM reads it, extracts key information, and integrates it into the existing wiki — updating entity pages, revising topic summaries, noting contradictions, and strengthening the evolving synthesis.

The wiki is a persistent, compounding artifact. Cross-references are already there. Contradictions have been flagged. Synthesis reflects everything you've read. It gets richer with every source and every question.

You never write the wiki yourself — the LLM writes and maintains all of it. You're in charge of sourcing, exploration, and asking the right questions.

Architecture (Three Layers)

1. Raw Sources

Your curated collection of source documents — articles, papers, images, data files. These are immutable. The LLM reads from them but never modifies them. This is your source of truth.

2. The Wiki

A directory of LLM-generated markdown files — summaries, entity pages, concept pages, comparisons, overview, synthesis. The LLM owns this layer entirely: creates pages, updates them when new sources arrive, maintains cross-references, keeps everything consistent. You read it; the LLM writes it.

3. The Schema

A configuration document (this skill) that tells the LLM the wiki's structure, conventions, and workflows. You and the LLM co-evolve this over time.

Operations

Ingest

User drops a new source. The LLM:

  1. Reads the source and discusses key takeaways
  2. Writes a summary page in the wiki
  3. Updates the index
  4. Updates relevant entity and concept pages across the wiki
  5. Appends an entry to the log

A single source may touch 10-15 wiki pages. Prefer ingesting one source at a time for quality.

Query

Ask questions against the wiki. The LLM:

  1. Reads index.md to find relevant pages
  2. Reads those pages and synthesizes an answer with citations
  3. Good answers get filed back into the wiki as new pages — comparisons, analyses, connections should be persisted, not lost in chat history

Lint (Health Check)

Periodically health-check the wiki. Look for:

  • Contradictions between pages
  • Stale claims superseded by newer sources
  • Orphan pages with no inbound links
  • Important concepts mentioned but lacking their own page
  • Missing cross-references
  • Data gaps that could be filled with a web search

Default Location

The wiki lives at a user-level path so it's accessible from any workspace or conversation:

~/.workbuddy/wiki-knowledge/

This is the default. The LLM should:

  1. Always check ~/.workbuddy/wiki-knowledge/ first when the user mentions their wiki, regardless of the current workspace.
  2. If the directory exists and contains WIKI-SCHEMA.md, use it directly — no need to ask the user for a path.
  3. Only ask for a custom path if the user explicitly wants a separate wiki.

Getting Started

When a user wants to create a wiki, follow these steps:

Step 1: Initialize Structure

Create at ~/.workbuddy/wiki-knowledge/ (or a user-specified path):

wiki-knowledge/
├── raw/              # Immutable source documents
│   └── assets/       # Downloaded images
├── wiki/             # LLM-maintained markdown files
│   ├── index.md      # Content catalog
│   └── log.md        # Chronological operation log
└── WIKI-SCHEMA.md    # Schema & conventions (co-evolve with user)

Step 2: Create index.md

A catalog of everything in the wiki — each page listed with a link, a one-line summary, and metadata (date, source count). Organized by category. The LLM updates it on every ingest.

Step 3: Create log.md

Append-only chronological record. Each entry format:

markdown
## [YYYY-MM-DD] operation_type | Title
Brief description of what was done.

Use consistent prefixes so it's parseable with grep:

bash
grep "^## \[" log.md | tail -5

Step 4: Create WIKI-SCHEMA.md

A configuration file describing:

  • Directory structure and conventions
  • Page format templates
  • Cross-referencing rules
  • Domain-specific categories
  • Workflows for ingest/query/lint

Customize this with the user for their specific domain.

Page Format Template

markdown
---
title: Page Title
type: entity | concept | source-summary | comparison | synthesis
created: YYYY-MM-DD
updated: YYYY-MM-DD
sources: [list of source filenames]
tags: [relevant tags]
---

# Page Title

Content here. Use [[wiki-links]] for cross-references.

## See Also
- [[related-page-1]]
- [[related-page-2]]

Use Cases

DomainRaw SourcesWiki Pages
PersonalJournal entries, articles, podcast notesGoals, health tracking, self-improvement
ResearchPapers, articles, reportsEntities, concepts, evolving thesis
Book readingChapter notesCharacters, themes, plot threads
BusinessSlack threads, meeting transcripts, docsInternal knowledge base
Competitive analysisCompany reports, newsCompetitor profiles, comparisons
Course notesLecture notes, readingsTopic summaries, concept maps

Tips

  • Obsidian works great as the wiki viewer — graph view shows connections, Dataview plugin queries frontmatter metadata
  • The wiki is just a git repo of markdown files — version history, branching, and collaboration for free
  • Marp can generate slide decks from wiki content
  • Web Clipper (Obsidian plugin) converts web articles to markdown for easy source ingestion
  • Download images locally for persistence — set a fixed attachment directory

Important Principles

  1. Raw sources are immutable — never modify source documents
  2. The LLM owns the wiki — users read, LLM writes and maintains
  3. Knowledge compounds — every ingest and query enriches the wiki
  4. File good answers back — don't let valuable analysis disappear into chat
  5. Regular lint passes — keep the wiki healthy as it grows

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Llm Wiki AI 技能有什么作用?

使用 LLM 构建和维护个人知识库(wiki)。不同于 RAG 式检索,LLM 会从原始资料中逐步编纂内容、建立交叉引用,并维护一个持久化的结构化 wiki。适用于用户想要创建知识库、构建个人 wiki、整理研究笔记、将文档导入结构化 wiki,或维护持续更新的知识库时。

为什么在 TypingMind 中使用 Llm Wiki?

因为您只需安装一次,就能搭配任何模型使用。Llm Wiki 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Llm Wiki?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bighardperson/computer-science-skills-collection/tree/main/skills/Karpathy%20LLM%20Wiki。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Llm Wiki?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Llm Wiki 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Llm Wiki 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Llm Wiki AI 技能免费吗?

bighardperson 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇