当前位置: 首页 > Skill >

LLM Wiki

LLM Wiki

0.1.0 2026.11.18 浏览:989
获取Skill文件查看使用说明
作者:陆舟许可证:
本文目录展开

LLM Wiki Skill

Create and maintain a persistent LLM-maintained knowledge base (wiki) following Andrej Karpathy's pattern. Instead of traditional RAG where LLMs rediscover knowledge from scratch, this skill enables the LLM to actively build and maintain interconnected markdown files that serve as a growing, searchable knowledge base.

Overview

This skill implements Andrej Karpathy's LLM Wiki concept:

  • Raw sources → Immutable collection of source documents
  • The wiki → LLM-generated, interconnected markdown files owned entirely by the LLM
  • The schema → Configuration file that tells the LLM how to structure and maintain the wiki

The LLM becomes a disciplined wiki maintainer rather than a generic chatbot, handling all the bookkeeping, cross-referencing, and knowledge synthesis.

Folder Structure

When initialized, this skill creates:

llm-wiki/
├── raw/                  # Your source documents (immutable)
├── wiki/
│   ├── entities/         # Person, model, organization pages
│   ├── concepts/         # Techniques, theories, methods
│   ├── sources/          # Source summaries and analyses
│   └── logs/             # Activity logs (optional)
├── index.md              # Auto-generated catalog of all wiki pages
├── log.md                # Chronological record of activities
└── SCHEMA.md             # Configuration for LLM wiki maintainer

Core Workflows

1. Ingesting Sources

When new sources are added to raw/:

  • LLM reads and discusses key takeaways with human
  • Creates/updates summary page in wiki/sources/
  • Updates relevant entity pages in wiki/entities/
  • Updates relevant concept pages in wiki/concepts/
  • Updates index.md and appends to log.md

2. Querying Knowledge

When answering questions:

  • Consults index.md to find relevant pages
  • Reads and synthesizes from wiki pages with citations
  • Suggests filing valuable answers back as new wiki knowledge
  • Logs the query interaction

3. Wiki Maintenance (Lint)

Periodic health checks:

  • Identifies contradictions between pages
  • Finds stale claims superseded by newer sources
  • Detects orphan pages (no inbound links)
  • Notes missing concepts that need their own page
  • Highlights missing cross-references
  • Suggests new questions to investigate and sources to seek
  • Reports findings and asks for confirmation before changes

Human-LLM Collaboration

Human Responsibilities:

  • Curate and add sources to raw/
  • Direct analysis and ask probing questions
  • Resolve conflicts and provide context
  • Think about implications and meaning

LLM Responsibilities:

  • Read and comprehend source materials
  • Extract and integrate knowledge into wiki
  • Maintain cross-references and consistency
  • Update summaries when new information arrives
  • Flag contradictions and uncertainties
  • Handle all bookkeeping and maintenance
  • Never modify raw source documents

Usage

Initial Setup

The skill automatically creates the folder structure and base files when first used.

Adding a Source

  1. Place document(s) in llm-wiki/raw/
  2. Tell the agent: "Please process the new source I added"
  3. Agent will ingest and integrate the knowledge

Asking Questions

  • Ask questions naturally about your knowledge base
  • Agent will consult the wiki and provide cited answers
  • Agent may suggest filing insights back as wiki pages

Maintenance

  • Agent will periodically suggest running wiki health checks
  • Or you can request: "Please run a lint check on the wiki"

Configuration

The SCHEMA.md file in the wiki root contains detailed configuration for:

  • Naming conventions
  • Optional frontmatter format
  • Specific workflow details
  • Output format guidelines
  • Tool integration hints (Obsidian, qmd, git, etc.)

Example Interaction Flow

Human: "I've added a new paper about LLM quantization techniques to raw/"

Agent:

  1. Reads the paper
  2. Discovers key points: quantization reduces model size, improves inference speed, techniques like GPTQ, AWQ
  3. Creates/updates wiki/sources/paper-title.md with summary
  4. Updates/concept page wiki/concepts/quantization.md
  5. Updates entity pages for any mentioned models/researchers
  6. Updates index.md and appends to log.md
  7. Reports: "I've processed the paper and updated the quantization concept page. Would you like to discuss any specific findings?"

Human: "What's the difference between GPTQ and AWQ?"

Agent:

  1. Checks index for relevant pages
  2. Reads wiki/concepts/quantization.md and related entity pages
  3. Synthesizes answer comparing the two techniques with citations
  4. Suggests: "This comparison could be filed as a new wiki page. Would you like me to create wiki/concepts/gptq-vs-awq.md?"
  5. Logs the query

Benefits Over Traditional RAG

  • Compounding knowledge: Each source makes the wiki more valuable, not just adds to retrieval corpus
  • Zero maintenance cost: LLM handles all bookkeeping, cross-referencing, consistency
  • Persistent synthesis: Knowledge is compiled once and kept current, not re-derived per query
  • Exploration value: Answers can become new wiki pages, making explorations permanent
  • Transparent organization: Human-navigable structure with clear categories and links

Requirements

  • Basic file system access to create/modify the wiki directory structure
  • Compatible with any LLM that can read/write files and follow structured instructions
  • Works best with agents that can maintain context over multiple interactions

Getting Started

  1. Use this skill to initialize your LLM wiki
  2. Add your first source document to the raw/ folder
  3. Ask the agent to process it
  4. Begin building your knowledge base through ingestion and questioning

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,033
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,012
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,012
Skill 文件
  • SKILL.md
    • LLM Wiki Skill
    • Overview
    • Folder Structure
    • Core Workflows
      • 1. Ingesting Sources
      • 2. Querying Knowledge
      • 3. Wiki Maintenance (Lint)
    • Human-LLM Collaboration
      • Human Responsibilities:
      • LLM Responsibilities:
    • Usage
      • Initial Setup
      • Adding a Source
      • Asking Questions
      • Maintenance
    • Configuration
    • Example Interaction Flow
    • Benefits Over Traditional RAG
    • Requirements
    • Getting Started
  • 项目或源文件

相关 Skill

更多
Obsidian Wiki Obsidian Wiki Build and maintain a compiled LLM Wiki inside an Obsidian vault following Karpathy's pattern. Use when working with an Obsidian vault as a persistent knowled...
knowledge-harvest-system knowledge-harvest-system 基于 Karpathy LLM Wiki 方法论的对话知识回流系统——三组件闭环(Signal Detector → Brain Ops → Knowledge Harvest),让 Agent 从过目就忘变成持续学习。
Karpathy Wiki Improve Karpathy Wiki Improve Karpathy LLM Wiki 模式实现 — 完整的数据摄取/查询/重链接/检查/深度研究管道,自动维护知识图谱,URL 级来源追溯。
Z1矩阵宫殿记忆法 Z1矩阵宫殿记忆法 构建并运营文件驱动的记忆宫殿,用于多智能体系统,融合空间记忆外壳与持续维护的 LLM Wiki 反射层。
multi-agent-llm-wiki multi-agent-llm-wiki 多Agent协作的LLM Wiki知识库管理 — 基于Karpathy的LLM Wiki模式,支持首次用户引导、Ingest/Query/Lint三大操作,由蚁群协作完成。