llm-wiki

作者 mduongvandinh已验证

Hệ thống knowledge base cá nhân hoàn toàn tự động, vận hành bởi LLM. Dựa trên pattern LLM Wiki của Andrej Karpathy.

212
Stars
93
Forks
HTML
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/mduongvandinh/llm-wiki

快速入门

使用 llm-wiki 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

LLM Wiki

A personal knowledge base that builds and maintains itself.

Drop articles, notes, PDFs, or Reddit threads into a folder. Your AI reads everything, builds a structured wiki with cross-references, detects contradictions between sources, and keeps it all up to date — automatically.

You just read and ask questions.

Inspired by Andrej Karpathy's LLM Wiki pattern. Extended with auto-discovery, Reddit scanning, GitHub tracking, and ready-made variants for common use cases.


Why not just use RAG?

Traditional RAGLLM Wiki
KnowledgeRe-retrieved fresh every queryCompiled once, maintained continuously
Cross-referencesNoneBuilt and maintained automatically
ContradictionsNot detectedFlagged immediately on ingest
CompoundingFlatGrows richer over time
InfrastructureVector DB + embeddingsJust folders + markdown

Quick Start

Option A — Start with a ready-made variant (recommended)

Don't configure from scratch. Pick a variant that matches your use case — config, schema, and demo data are pre-tuned:

git clone https://github.com/mduongvandinh/llm-wiki.git my-wiki
cd my-wiki

# Install skill (Claude Code only — other tools skip this)
cp -r skills/llm-wiki ~/.claude/skills/llm-wiki

# Pick your variant:
/llm-wiki setup book-companion      # 📚 Reading companion
/llm-wiki setup competitive-intel   # 🎯 Track competitors
/llm-wiki setup job-search          # 💼 Job search research

Option B — Start from scratch

git clone https://github.com/mduongvandinh/llm-wiki.git my-wiki
cd my-wiki

cp config.example.yaml config.yaml
# Edit config.yaml: set your topics, keywords, feeds

Then drop content into raw/articles/ and run your first cycle.


Variants

Pre-configured templates for specific use cases. One command setup, includes demo data.

VariantUse CaseKey Command
📚book-companionBuild a companion wiki as you read — characters, timeline, factions, lore auto-extractedbook-summary · demo
🎯competitive-intelTrack competitors, detect pricing/feature changes, generate battlecardscompetitive-brief "Linear"
💼job-searchResearch target companies, prep interview 1-pagersinterview-prep "Stripe"

See all variants →


Using with Your AI Tool

LLM Wiki works with any AI coding assistant. The wiki is just folders and markdown — the AI reads CLAUDE.md (or AGENTS.md) to understand the schema and rules, then operates on files.

Claude Code

The primary supported tool. Has a slash command skill for the best experience.

Install the skill:

cp -r skills/llm-wiki ~/.claude/skills/llm-wiki

Commands:

/llm-wiki setup book-companion     # Set up a variant
/llm-wiki run                       # Full cycle: discover → ingest → lint
/llm-wiki ingest                    # Process new files in raw/
/llm-wiki query "What is X?"        # Ask questions against the wiki
/llm-wiki discover                  # Auto-find new sources from the web
/llm-wiki lint                      # Health check: contradictions, orphans, gaps
/llm-wiki status                    # Overview of wiki state
/llm-wiki digest                    # Daily brief: new sources, insights, changes
/llm-wiki book-summary              # Structured book summary (book-companion variant)
/llm-wiki competitive-brief "Name"  # Battlecard for a competitor
/llm-wiki interview-prep "Company"  # Interview prep 1-pager

Auto-run:

/loop 1h /llm-wiki run    # Runs every hour in current session
/loop 2h /llm-wiki run    # Every 2 hours

Cursor

Cursor reads AGENTS.md from the project root automatically. No installation needed.

Open the project in Cursor, then chat:

Follow AGENTS.md. Run full cycle: discover new sources, ingest into wiki, then lint.
Follow AGENTS.md. Ingest everything new in raw/ and update the wiki.
Follow AGENTS.md. Query the wiki: what do we know about [topic]?
Follow AGENTS.md. Run competitive-brief for "Linear" and save to outputs/.

GitHub Copilot (VS Code)

Copilot reads .github/copilot-instructions.md automatically when you open the project. No installation needed.

Open project in VS Code, then use Copilot Chat:

Read CLAUDE.md then run discover, ingest, and lint for this wiki.
Based on the wiki schema in CLAUDE.md, ingest the new files in raw/articles/.
Query the wiki: summarize everything we know about [topic].

Note: Copilot Chat doesn't support background loops. Run manually or use system scheduler.


Windsurf (Codeium)

Windsurf reads AGENTS.md or .windsurfrules from the project root.

Chat in Windsurf:

Read AGENTS.md. Run the full llm-wiki cycle: discover → ingest → lint.
Read AGENTS.md. I've added new files to raw/articles/. Please ingest them into the wiki.

Gemini CLI

Gemini CLI reads GEMINI.md from the project root (or falls back to AGENTS.md).

Create GEMINI.md (copy from AGENTS.md):

cp AGENTS.md GEMINI.md

Then run:

gemini "Read GEMINI.md and run full cycle: discover, ingest, lint"
gemini "Read GEMINI.md and query the wiki: what do we know about [topic]?"

Codex CLI (OpenAI)

Codex reads AGENTS.md from the project root.

codex "Read AGENTS.md and run full cycle: discover → ingest → lint"
codex "Read AGENTS.md and ingest new files in raw/"
codex "Read AGENTS.md and query: summarize the wiki on [topic]"

Aider

Aider works best with explicit file references.

aider --message "Read CLAUDE.md to understand the schema. Run ingest on all new files in raw/articles/. Update wiki/ accordingly." CLAUDE.md raw/articles/*.md

Continue.dev

Add CLAUDE.md to Continue's context, then chat:

@CLAUDE.md Ingest the new articles in raw/ and update the wiki with entities, concepts, and cross-references.

Tool Comparison

ToolConfig FileSkill/Slash CommandAuto-loopBest For
Claude CodeCLAUDE.md/llm-wiki/loopFull experience, all features
CursorAGENTS.md❌ chat onlyIDE-integrated workflow
GitHub Copilot.github/copilot-instructions.md❌ chat onlyVS Code users
WindsurfAGENTS.md❌ chat onlyVS Code alternative
Gemini CLIGEMINI.md❌ chat onlyvia cronGoogle ecosystem
Codex CLIAGENTS.md❌ chat onlyvia cronOpenAI preference
AiderCLAUDE.md❌ explicitvia cronTerminal-only

All tools use the same raw/, wiki/, outputs/ folder structure. The AI config file tells each tool how to operate — same content, different filenames.


Auto-Run Without Claude Code

For tools without /loop, use your system scheduler.

Windows — Task Scheduler (run once as Admin):

powershell -ExecutionPolicy Bypass -File "scripts/setup-scheduler.ps1"

macOS / Linux — crontab:

# Claude Code (headless)
0 */2 * * * cd /path/to/my-wiki && claude --print "/llm-wiki run" >> outputs/auto-run.log 2>&1

# Codex
0 */2 * * * cd /path/to/my-wiki && codex "Read AGENTS.md and run full cycle" >> outputs/auto-run.log 2>&1

# Gemini CLI
0 */2 * * * cd /path/to/my-wiki && gemini "Read GEMINI.md and run full cycle" >> outputs/auto-run.log 2>&1

How It Works

┌─────────────────────────────────────────────────┐
│              YOU  (read & ask)                   │
├──────────────┬──────────────┬────────────────────┤
│   wiki/      │   outputs/   │   wiki-viewer.html │
│  (Obsidian)  │  (reports)   │   (browser view)   │
├──────────────┴──────────────┴────────────────────┤
│              LLM  (writes & maintains)            │
├──────────┬──────────┬──────────┬─────────────────┤
│ discover │  ingest  │  query   │      lint        │
│ (find)   │ (process)│ (answer) │  (health check)  │
├──────────┴──────────┴──────────┴─────────────────┤
│   raw/        │  config.yaml   │   CLAUDE.md      │
│  (sources)    │  (settings)    │   (schema/rules) │
└───────────────┴────────────────┴──────────────────┘

Main flow: discoverraw/ingestwiki/queryoutputs/

Self-improvement loop: lint finds gaps → discover finds sources → ingest fills them → wiki grows richer

Core Workflows

discover — Searches the web for new sources based on your topics in config.yaml. Can scan Reddit for pain points, track GitHub trending repos, follow RSS feeds, and snowball from references found in existing sources.

ingest — Reads each new file in raw/. Extracts entities, concepts, and key claims. Creates wiki pages. Adds cross-references. Flags contradictions with existing content. One source typically creates 5–15 wiki pages.

query — Reads wiki/INDEX.md, finds relevant pages, synthesizes an answer with citations. Valuable answers are automatically saved as synthesis pages.

lint — Scans the entire wiki for: contradictions, orphan pages, broken links, stale claims, and knowledge gaps. Updates .discoveries/gaps.json so discover knows what to find next.


Adding Sources

Drop a file manually

Create a markdown file in raw/articles/ with frontmatter, then run ingest:

---
title: "Article Title"
url: "https://example.com/article"
author: "Author Name"
discovered: 2026-04-14
topic: "your topic"
---

Article content here...

For book notes (book-companion variant), add chapter: N:

---
title: "Dune Chapter 5 Notes"
chapter: 5
book: "Dune"
---

For competitor data (competitive-intel variant), add competitor: "Name":

---
title: "Linear — Pricing Page"
competitor: "Linear"
---

Obsidian Web Clipper

  1. Install Obsidian Web Clipper browser extension
  2. See an interesting article → click clip → save to raw/articles/
  3. Run ingest

Auto-discovery

Configure config.yaml with topics, Reddit subreddits, GitHub orgs, and RSS feeds — the discover command handles the rest.


Viewing Your Wiki

Obsidian (recommended): File → Open vault → select your wiki folder → Graph View shows connections

Browser: Open wiki-viewer.html — mobile-first dark theme dashboard with graph view

Any markdown editor: All wiki pages are plain .md files


Folder Structure

my-wiki/
├── CLAUDE.md                    ← Schema + rules for Claude Code
├── AGENTS.md                    ← Schema + rules for Cursor, Codex, Windsurf, Aider
├── GEMINI.md                    ← Schema + rules for Gemini CLI (copy of AGENTS.md)
├── .github/
│   └── copilot-instructions.md  ← Schema for GitHub Copilot
├── config.yaml                  ← Your topics, feeds, schedule
├── config.example.yaml          ← Template to start from
├── wiki-viewer.html             ← Browser-based wiki viewer
│
├── variants/                    ← Ready-made use case templates
│   ├── book-companion/          ← 📚 Reading companion
│   ├── competitive-intel/       ← 🎯 Competitor tracking
│   └── job-search/              ← 💼 Job search research
│
├── raw/                         ← YOUR SOURCES (LLM never modifies these)
│   ├── articles/                ← Web articles, blog posts, papers
│   ├── reddit/                  ← Reddit threads, pain points
│   ├── notes/                   ← Personal notes
│   └── media/                   ← Screenshots, diagrams
│
├── wiki/                        ← LLM-maintained wiki (don't edit manually)
│   ├── INDEX.md                 ← Master catalog of all wiki pages
│   ← LOG.md                     ← Activity log
│   ├── entities/                ← People, orgs, tools, projects
│   ├── concepts/                ← Ideas, patterns, methodologies
│   ├── sources/                 ← Summary of each raw source
│   └── syntheses/               ← Analysis, comparisons, rankings
│
├── outputs/                     ← Query results, reports, battlecards, briefs
├── .discoveries/                ← Auto-discovery metadata
│   ├── feeds.json               ← Sources being tracked
│   ├── gaps.json                ← Knowledge gaps to fill
│   └── history.json             ← Processed sources (dedup)
│
└── skills/llm-wiki/SKILL.md     ← Claude Code skill definition

Configuration

All behavior is controlled by config.yaml. Copy config.example.yaml to get started.

Key sections:

wiki:
  name: "My Wiki"
  language: "en"   # Any language — wiki content will be in this language

topics:
  - name: "Topic Name"
    keywords: ["keyword1", "keyword2"]
    priority: high

feeds:
  reddit:
    enabled: true
    subreddits_pain_points:
      - sub: "r/SaaS"
  hackernews:
    enabled: true
    min_score: 50
  github_trending:
    enabled: true
    languages: ["python", "typescript"]

schedule:
  run:
    loop_interval: "1h"   # For /loop in Claude Code

→ See config.example.yaml for the full reference with all options.


Commands Reference

CommandDescription
setup <variant>Initialize wiki from a variant template (book-companion, competitive-intel, job-search)
init "Topic"Add a new topic to an existing wiki
ingestProcess all new files in raw/
query "..."Answer a question using the wiki; saves valuable answers
discoverAuto-find new sources from the web based on topics
runFull cycle: discover → ingest → lint
lintHealth check: contradictions, orphans, gaps, stale content
statusShow wiki stats and health overview
digestDaily brief: new sources, top insights, detected changes
pain-rankRank pain points by business opportunity (Reddit data)
book-summaryStructured book summary: cast, timeline, themes, mysteries
competitive-brief "Name"Battlecard 1-pager for a specific competitor
interview-prep "Company"Interview prep 1-pager for a target company

For tools without slash commands, use the equivalent natural language prompt:

Read CLAUDE.md (or AGENTS.md). Then [describe what you want].

FAQ

What AI model do I need? Any capable model with tool use (web search, file read/write). Claude Sonnet/Opus recommended. Works with GPT-4o, Gemini 1.5 Pro, and others via their respective CLI tools.

How much does it cost to run? A typical /llm-wiki run cycle (discover + ingest 5 sources + lint) costs $0.10–0.40 depending on wiki size and source length. Running every 2 hours = ~$50/month.

My wiki is getting large. How do I query it efficiently? The skill reads wiki/INDEX.md first to find relevant pages, then reads only those. Even large wikis (500+ pages) query efficiently because you never load everything at once.

Can I use this for a team? Yes — put the wiki folder in a shared Git repo. Each team member runs ingest on their own sources; the wiki is a shared output. Conflicts are resolved by lint.

Does it hallucinate? The query and ingest commands only use information from your raw/ sources. They cannot add claims not supported by your sources. If something is uncertain, the wiki page will say so.

Can I write in a language other than English? Yes. Set wiki.language in config.yaml. The LLM will write all wiki content in that language while keeping file names and frontmatter in English.


Credits

License

MIT — use it, fork it, build variants, share back.

常见问题

What is llm-wiki?

llm-wiki is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mduongvandinh. Hệ thống knowledge base cá nhân hoàn toàn tự động, vận hành bởi LLM. Dựa trên pattern LLM Wiki của Andrej Karpathy. It has 212 GitHub stars.

Is llm-wiki safe to use?

Yes. llm-wiki passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install llm-wiki?

Clone the repository with "git clone https://github.com/mduongvandinh/llm-wiki" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is llm-wiki written in?

llm-wiki is primarily written in HTML. It is open-source under mduongvandinh on GitHub, so you can review or fork the full source.

Are there alternatives to llm-wiki?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh llm-wiki against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情