Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计提醒

041-llm-wiki041 LLM wiki 搜索

Agent Skill

041-llm-wiki 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,886

周安装

356

GitHub Stars

公开资料未说明

下载量

2,876
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:041-llm-wiki(041 LLM wiki 搜索)
来源仓库:https://github.com/nemo4110/041-llm-wiki
安装命令:
openclaw skills install 041-llm-wiki
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install 041-llm-wiki

简介

041-llm-wiki 用于查找、检索和筛选相关信息。

  • 适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 通过 clawhub 安装,结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前功能聚焦于 Karpathy 的 llm-wiki 模式实现——AI 代理的累积知识管理。

SKILL.md

name
llm-wiki
description
Karpathy's llm-wiki pattern implementation — cumulative knowledge management for AI agents
version
1.4.0
author
@yourname
license
MIT
repository
https://github.com/Nemo4110/llm-wiki.git
platforms
capabilities
entryPoints
protocol
CLAUDE.md
agent-guide
AGENTS.md
agent-bridge
scripts/agent-bridge.py
cli
src/llm_wiki/commands.py
hooks
available
false
note
Protocol mode requires no hooks. CLI mode available for scripting.
dependencies
required
[]
optional
version
>=3.8
reason
CLI mode only
version
>=8.0.0
reason
CLI framework
version
>=6.0
reason
YAML parsing
version
>=1.25.0
reason
PDF processing (recommended)
version
>=1.24.0
reason
Vector operations for embedding retrieval
version
>=0.27.0
reason
HTTP client for Ollama/local embedding services
version
>=1.0.0
reason
OpenAI embedding API
version
>=1.0.0
reason
MCP SDK for remote embedding providers
installation
command
uv venv && uv pip install -r src/requirements.txt --python .venv/Scripts/python.exe
note
Fastest, recommended if uv available
command
conda create -n llm-wiki python=3.11 && pip install -r src/requirements.txt
note
For data science environments
command
python -m venv .venv && pip install -r src/requirements.txt
note
Standard Python
command
null
note
Protocol mode requires no installation
functions
ingest
description
Ingest source material into wiki
trigger
Please ingest material
inputs
type
string
description
Path to source file in sources/
workflow
link
description
Discover and merge relationships between wiki pages
trigger
Link wiki pages
inputs
type
string
description
Source page title
type
string
description
Target page title (optional, for merge execution)
type
string
description
light or deep
workflow
relink
description
Batch global relationship discovery for recent pages
trigger
Global linking
inputs
type
string
description
Date cutoff (YYYY-MM-DD)
type
string
description
light or deep
workflow
query
description
Query wiki knowledge base
trigger
Query wiki
inputs
type
string
description
User question about wiki content
workflow
lint
description
Health check for wiki
trigger
Check wiki health
checks
structure
protocol
CLAUDE.md
agent-guide
AGENTS.md
specification
SKILL.md
changelog
log.md
agent-bridge
scripts/agent-bridge.py
sources
sources/
wiki
wiki/
assets
assets/
scripts
scripts/
src
src/
examples
examples/
related
url
https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f
url
https://github.com/xoai/sage-wiki
note
Alternative full-featured implementation

CLI Reference

Agent Bridge (Recommended for Agents)

Use scripts/agent-bridge.py as the single entry point for all tool-assisted operations:

# Environment check
python scripts/agent-bridge.py check

# Discover relations for a new page
python scripts/agent-bridge.py link --source "NewPage" --mode light

# Execute merge with diff review
python scripts/agent-bridge.py link --source "NewPage" --target "OldPage" --strategy append_related

# Batch global linking for recent pages
python scripts/agent-bridge.py relink --since 2026-04-20 --mode deep

# Health check
python scripts/agent-bridge.py lint

# Status overview
python scripts/agent-bridge.py status

Why Agent Bridge?

  • Single obvious entry point — no guessing whether to use protocol mode or CLI mode
  • Structured Markdown output — human-readable and machine-parseable
  • Execution traceability — detailed logging with file:line references to stderr
  • Auto-detects Python environment (uv venv / conda / system)

Protocol Mode (Natural Language)

For tasks requiring LLM judgment (content extraction, synthesis, strategy selection):

"Please ingest sources/paper.pdf into wiki"
"Query wiki: What is the difference between Transformer and RNN?"
"Check wiki health"

Legacy CLI Mode (Optional)

Direct library access for scripting or debugging:

# Show wiki status overview
python -m src.llm_wiki status

# Run health check
python -m src.llm_wiki lint

# Show help
python -m src.llm_wiki --help

Note: ingest and query commands in legacy CLI only provide auxiliary functions (like listing pages). Actual content processing requires natural language interaction with the agent.

LLM-Wiki

Karpathy's llm-wiki pattern implementation — cumulative knowledge management for AI agents.

Core Philosophy: LLM as programmer, Wiki as codebase, User as product manager.

Why SKILL Form?

We chose the SKILL form because it brings these advantages:

  • Zero deployment — No services to run, no databases to configure; works the moment you clone the repository
  • Native integration — Direct command execution via Claude Code, no middleware or protocol translation needed
  • Plain-text data — Pure Markdown files, git-native, with no proprietary formats or vendor lock-in
  • Editor freedom — Use Obsidian, VS Code, or any text editor you prefer
  • Minimal footprint — ~500 lines of core protocol, keeping complexity low

Features

  • Protocol-driven: Works with natural language (no installation required)
  • Pure Markdown: No database, no lock-in, git-native
  • Wiki-style links: [[PageName]] format, Obsidian-compatible
  • Cumulative learning: Every query can create new knowledge
  • Health checks: Orphan pages, dead links, stale content detection
  • Optional CLI: Python scripts for automation and batch operations

Quick Start

# 1. Clone
git clone https://github.com/Nemo4110/llm-wiki.git
cd llm-wiki

# 2. Add source material
cp ~/Downloads/paper.pdf sources/

# 3. Tell your agent
"Please ingest sources/paper.pdf into wiki"

Installation

Protocol Mode (Recommended)

No installation needed. Agent reads CLAUDE.md and operates directly.

CLI Mode (Optional)

Using uv (Fastest)

# Create virtual environment and install dependencies
uv venv
uv pip install -r src/requirements.txt --python .venv/Scripts/python.exe

# Activate environment (Windows)
.venv\Scripts\activate
# Or Linux/macOS
source .venv/bin/activate

Using conda

# Create environment
conda create -n llm-wiki python=3.11

# Activate environment
conda activate llm-wiki

# Install dependencies
pip install -r src/requirements.txt

Using pip

# Create virtual environment
python -m venv .venv

# Activate environment
source .venv/bin/activate  # Linux/macOS
.venv\Scripts\activate     # Windows

# Install dependencies
pip install -r src/requirements.txt

Verify Installation

python -c "from src.llm_wiki.core import WikiManager; print('✓ Installation successful')"

Important Dependency Notes:

DependencyVersionPurposeNotes
click>=8.0.0CLI framework-
pyyaml>=6.0YAML parsing-
pymupdf>=1.25.0PDF processingPrimary PDF engine, best for CJK

Optional dependencies (for enhanced features):

  • numpy >=1.24.0 — Vector operations for embedding retrieval
  • httpx >=0.27.0 — HTTP client for Ollama/local services
  • openai >=1.0.0 — OpenAI embedding API
  • mcp >=1.0.0 — MCP SDK for remote embedding providers

Fallback PDF dependency:

  • pdfplumber >=0.11.8 — Table extraction fallback (security version required for CVE-2025-64512)
  • pdfminer.six >=20251107 — PDF underlying library fallback

Project Structure

llm-wiki/
├── CLAUDE.md           # ⭐ Core protocol: Agent behavior guidelines
├── AGENTS.md           # Agent implementation guide (CLI usage)
├── SKILL.md            # This file, machine-readable specification
├── log.md              # Timeline log (append-only)
├── sources/            # Raw materials (user-managed + tool-fetched; Agent forbidden from writing LLM-generated content)
│   └── README.md
├── wiki/               # Generated knowledge pages (Agent-managed)
│   ├── index.md        # Entry index
│   └── *.md            # Topic pages
├── assets/             # Templates and configuration
│   ├── page_template.md
│   └── ingest_rules.md
├── src/                # SKILL implementation (optional, for CLI)
│   ├── llm_wiki/
│   └── requirements.txt
├── scripts/            # Auxiliary scripts
├── hooks/              # Platform hooks (optional)
└── examples/           # Example wiki

About sources/: Excluded from git by default to avoid repository bloat. Wiki only retains extracted knowledge; original files are managed separately (cloud storage, Zotero, etc.). See sources/README.md for tracking specific files.

How It Works

Data Flow

+----------+     +--------------------+     +--------------+
| sources/ |---->|   LLM Processing   |---->|    wiki/     |
|  (Raw)   |     | (Extract + Link)   |     | (Structured) |
+----------+     +--------------------+     +--------------+
                          |
                          v
                    +----------+
                    |  log.md  |
                    | (Record) |
                    +----------+

Key Design

  1. CLAUDE.md as Protocol: Defines Agent behavior standards, anyone/any Agent can follow
  2. Pure Markdown: No database, no lock-in, native git version control
  3. Bidirectional Links: [[PageName]] format, compatible with Obsidian
  4. Cumulative Learning: Each query can generate new wiki pages, knowledge continuously accumulates

Query Mechanism

Current Implementation: Symbolic Navigation + LLM Synthesis (Default)

By default, this SKILL does not require Embedding/vector retrieval. Queries are completed through:

User asks question
         |
         v
+-------------------------------+
|  1. Read index.md             |  <-- Human/Agent-maintained category index
|     Locate relevant topics    |
+-------------------------------+
         |
         v
+-------------------------------+
|  2. Read relevant pages       |  <-- Discover associations through [[links]]
|     and their link neighbors  |
+-------------------------------+
         |
         v
+-------------------------------+
|  3. LLM Synthesis             |  <-- Generate answers based on read content
|     Generate with citations   |  Citation format: [[PageName]]
+-------------------------------+

Optional Enhancement: After enabling config.yaml embedding settings, CLI query --semantic adds hybrid search (Keyword Match + Vector Search + Link Traversal) for faster, more accurate retrieval.

Example Flow:

User asks: "What is LoRA?"

  1. Agent reads wiki/index.md, finds [[LoRA]] under "AI/ML" topic
  2. Agent reads wiki/LoRA.md, discovers links to [[Fine-tuning]], [[Adapter]]
  3. Agent synthesizes answer:

> LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method — see [[LoRA]]. > Compared to traditional [[Fine-tuning]], it only trains low-rank matrices...

Why is Embedding Optional?

ConsiderationCurrent SolutionEmbedding Solution
DependenciesZero external dependenciesRequires Embedding API or local model
CostNo additional feesCharged per token/request
PrivacyData not uploadedMust send content to external service
AccuracyPrecise links, explainableApproximate similarity, may retrieve irrelevant content
ScaleSuitable for 0-500 pagesEssential for large scale (1000+ pages)

Conclusion: For personal/small team knowledge bases, maintaining index.md and page links is simpler and more effective than introducing Embedding. Embedding is available as an opt-in CLI enhancement when scale demands it.

When to Use Embedding?

Consider enabling config.yaml embedding settings when your wiki shows:

  • [ ] Page count > 500, manual indexing hard to maintain
  • [ ] Queries are mostly fuzzy semantic ("that paper about optimization...")
  • [ ] Need cross-topic associations (user didn't mention keywords, but semantically related)

See ROADMAP.md for details.

Example Workflows

Scenario 1: Researching New Domain

# Day 1: Add materials
sources/
├── 2026-04-10-transformer-paper.pdf
└── 2026-04-10-lora-blog.md
User: Please ingest new materials
Claude: Processed 2 materials
  - Created [[Transformer]] — Attention mechanism architecture
  - Created [[LoRA]] — Low-rank adaptation
  - Created [[Self-Attention]] — Self-attention details
  - Updated wiki/index.md

Scenario 2: Deep Exploration

User: What's the difference between LoRA and full fine-tuning?

Claude (reads wiki/index.md → finds [[LoRA]] → synthesizes answer):

Based on our wiki:

**LoRA** — [[LoRA]]
- Freezes pre-trained weights, only trains low-rank matrices
- Parameter count reduced ~10,000x

**Full Fine-tuning**
- Updates all parameters
- High computational cost

Key differences:
1. Parameters: LoRA only trains 0.1%~1% of parameters [[Parameter Efficiency]]
2. Storage: LoRA only saves adapters, not full model
3. Composition: Multiple LoRAs can be stacked [[LoRA Composition]]

Was this helpful? Should I archive this answer to wiki?

Scenario 3: Knowledge Accumulation

User: Yes, archive this answer

Claude: Created [[LoRA vs Full Fine-tuning]]
- Extracted comparison points from conversation
- Linked to [[LoRA]] and [[Fine-tuning]]
- Added to FAQ section in wiki/index.md

Using with Obsidian

  1. Open wiki/ directory in Obsidian
  2. Enjoy graph view, quick navigation, beautiful rendering
  3. Claude Code handles maintenance, Obsidian handles reading and thinking

Comparison with Alternatives

SolutionCharacteristicsBest For
This SKILLZero dependencies, pure text, Claude Code nativePersonal knowledge management, research notes
Sage-WikiFull-featured, multimodal, standalone appTeam knowledge base, enterprise deployment
Obsidian + PluginsStrong visualization, rich communityExisting Obsidian workflow
Notion/LogseqCollaborative, real-time syncMulti-user collaboration, mobile access

Documentation

  • CLAUDE.md — User-facing protocol (read this first)
  • AGENTS.md — Implementation guide for agent developers
  • SKILL.md — This file, machine-readable specification
  • ROADMAP.md — Future plans

Contributing

Issues and PRs welcome!

Current TODO

  • [ ] MCP server wrapper (for other Agents)
  • [ ] Obsidian plugin (one-click sync)
  • [x] Incremental embedding for faster retrieval
  • [ ] Multi-language support

License

MIT — free to use, modify, and distribute.


*Inspired by Karpathy's llm-wiki*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.87%
按下载量换算2,182

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills