tencentcloud/octop-harness/llm-wiki
Claude Code and agent skill by tencentcloud/octop-harness
- community
Checking that the SKILL.md file is still in the repository.
Karpathy's LLM Wiki: 构建/查询互联 markdown 知识库。
Install
npx vskill@latest install tencentcloud/octop-harness/llm-wikiSKILL.md
The same SKILL.md was published earlier as tencentcloud/octop-harness/llm-wiki.
Karpathy's LLM Wiki
Harness-agent tools#
本技能从 Octop 移植。使用以下 harness/deepagents 工具:
| 概念 | 工具 | |
|---|---|---|
| Shell | execute | |
| 读/写/编辑文件 | read_file, write_file, edit_file | |
| 查找文件/搜索内容 | glob, grep | |
| 获取 URL | web_fetch | |
| 浏览器自动化 | browser_use | |
| 子代理工作 | task | |
| 记忆 | memory_store, memory_recall, memory_search |
内置技能文件位于 /_builtin_skills/<name>/。用户安装的技能位于 /skills/<name>/。
构建和维护一个持久的、复合的知识库,以互联的 markdown 文件形式。 基于 Andrej Karpathy's LLM Wiki pattern。
与传统 RAG(每次查询都重新发现知识)不同,wiki 一次性编译知识并保持最新。交叉引用已经存在。 矛盾已经标记。综合反映了所有摄取的内容。
劳动分工: 人类策划来源并指导分析。代理 总结、交叉引用、文件和维护一致性。
何时此技能激活#
当用户:
- 要求创建、构建或启动 wiki 或知识库
- 要求摄取、添加或处理来源到他们的 wiki
- 询问问题且配置的路径处存在现有 wiki
- 要求 lint、审计或健康检查他们的 wiki
- 在研究中引用他们的 wiki、知识库或"笔记"
Wiki 位置#
位置: 通过 WIKI_PATH 环境变量设置(例如,在 {workspace}/.env 中)。
如果未设置,默认为 ~/wiki。
wiki 只是一个 markdown 文件目录——在 Obsidian、VS Code 或 任何编辑器中打开它。无需数据库,无需特殊工具。
架构:三层#
第 1 层 — 原始来源: 不可变。代理读取但从不修改这些。
第 2 层 — Wiki: 代理拥有的 markdown 文件。由代理创建、更新和 交叉引用。
第 3 层 — 模式: SCHEMA.md 定义结构、约定和标签分类法。
恢复现有 Wiki(关键——每会话都执行此操作)#
当用户有现有 wiki 时,在执行任何操作之前始终先让自己定向:
① 读取 `SCHEMA.md` — 理解领域、约定和标签分类法。 ② 读取 `index.md` — 了解存在哪些页面及其摘要。 ③ 扫描最近的 `log.md` — 读取最后 20-30 个条目以理解最近活动。
只有定向后,你才应该摄取、查询或 lint。这可以防止:
- 为已存在的实体创建重复页面
- 缺少与现有内容的交叉引用
- 与模式的约定矛盾
- 重复已在日志中记录的工作
对于大型 wikis(100+ 页面),在创建任何新内容之前,还要对当前主题运行快速 glob。
初始化新 Wiki#
当用户要求创建或启动 wiki 时:
- 确定 wiki 路径(来自
$WIKI_PATH环境变量,或询问用户;默认为~/wiki) - 创建上方的目录结构
- 询问用户 wiki 涵盖什么领域——要具体
- 编写针对该领域定制的
SCHEMA.md(见下方模板) - 编写带分段标题的初始
index.md - 编写带创建条目的初始
log.md - 确认 wiki 已就绪并建议第一个要摄取的来源
SCHEMA.md 模板#
针对用户的领域调整。模式约束代理行为并确保一致性:
source_url: https://example.com/article # 原始 URL(如果适用) ingested: YYYY-MM-DD sha256: <hex digest of the raw content below the frontmatter>
Wiki Index
Content catalog. Every wiki page listed under its type with a one-line summary.Read this first to find relevant pages for any query.Last updated: YYYY-MM-DD | Total pages: N
Entities
<!-- Alphabetical within section -->
Concepts#
Comparisons#
Queries#
Wiki Log
Chronological record of all wiki actions. Append-only.Format:## [YYYY-MM-DD] action | subjectActions: ingest, update, query, lint, create, archive, delete
When this file exceeds 500 entries, rotate: rename to log-YYYY.md, start fresh.
[YYYY-MM-DD] create | Wiki initialized
- Domain: [domain]
- Structure created with SCHEMA.md, index.md, log.md
按内容查找页面
grep(pattern="transformer", path="$WIKI")
按文件名查找页面
glob(pattern="**/*.md", path="$WIKI")
按标签查找页面
grep(pattern="tags:.*alignment", path="$WIKI")
最近活动
read_file "$WIKI/log.md" offset=<最后 20 行>
需要 Node.js 22+
npm install -g obsidian-headless
登录(需要带有 Sync 订阅的 Obsidian 帐户)
ob login --email <email> --password '<password>'
为 wiki 创建远程保管库
ob sync-create-remote --name "LLM Wiki"
将 wiki 目录连接到保管库
cd ~/wiki ob sync-setup --vault "<vault-id>"
初始同步
ob sync
持续同步(前台——对后台使用 systemd)
ob sync --continuous
~/.config/systemd/user/obsidian-wiki-sync.service
[Unit] Description=Obsidian LLM Wiki Sync After=network-online.target Wants=network-online.target
[Service] ExecStart=/path/to/ob sync --continuous WorkingDirectory=/home/user/wiki Restart=on-failure RestartSec=10
[Install] WantedBy=default.target
systemctl --user daemon-reload systemctl --user enable --now obsidian-wiki-sync
启用 linger 以便同步在注销后继续:
sudo loginctl enable-linger $USER
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/octop_harness/builtin/skills/zh/llm-wiki/SKILL.md
Popularity
- Repository stars
- 112
- Repository forks
- 66
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tencentcloud/octop-harness/llm-wiki)