wiki
GitHub提供持久化Markdown知识库功能,支持知识摄入、查询、维护及自动捕获。用于跨会话沉淀项目与调试经验,通过关键词和标签检索信息,辅助LLM进行知识复用与上下文构建。
触发场景
安装
npx skills add Yeachan-Heo/oh-my-claudecode --skill wiki -g -y
SKILL.md
Frontmatter
{
"name": "wiki",
"triggers": [
"wiki",
"wiki this",
"wiki add",
"wiki lint",
"wiki query"
],
"description": "LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)"
}
Wiki
Persistent, self-maintained markdown knowledge base for project and session knowledge. Inspired by Karpathy's LLM Wiki concept.
Operations
Ingest
Process knowledge into wiki pages. A single ingest can touch multiple pages.
wiki_ingest({ title: "Auth Architecture", content: "...", tags: ["auth", "architecture"], category: "architecture" })
Query
Search across all wiki pages by keywords and tags. Returns matching pages with snippets — YOU (the LLM) synthesize answers with citations from the results.
wiki_query({ query: "authentication", tags: ["auth"], category: "architecture" })
Lint
Run health checks on the wiki. Detects orphan pages, stale content, broken cross-references, oversized pages, and structural contradictions.
wiki_lint()
Quick Add
Add a single page quickly (simpler than ingest).
wiki_add({ title: "Page Title", content: "...", tags: ["tag1"], category: "decision" })
List / Read / Delete
wiki_list() # Show all pages (reads index.md)
wiki_read({ page: "auth-architecture" }) # Read specific page
wiki_delete({ page: "outdated-page" }) # Delete a page
Log
View wiki operation history by reading .omc/wiki/log.md.
Categories
Pages are organized by category: architecture, decision, pattern, debugging, environment, session-log
Storage
- Pages:
.omc/wiki/*.md(markdown with YAML frontmatter) - Index:
.omc/wiki/index.md(auto-maintained catalog) - Log:
.omc/wiki/log.md(append-only operation chronicle)
Cross-References
Use [[page-name]] wiki-link syntax to create cross-references between pages.
Auto-Capture
At session end, significant discoveries are automatically captured as session-log pages. Configure via wiki.autoCapture in .omc-config.json (default: enabled).
Hard Constraints
- NO vector embeddings — query uses keyword + tag matching only
- Wiki pages are git-ignored by default (
.omc/wiki/is project-local)
Model Routing
haiku— quick lookups, lightweight inspection, narrow docs worksonnet— standard implementation, debugging, and reviewopus— architecture, deep analysis, consensus planning, and high-risk reviewfable— Claude Fable 5 (above Opus); pass it explicitly on the Task call or pin it per agent withagents.<name>.model- The session model chosen with
/modelapplies to the main loop only. Delegated agents run on their pinned tier unless the Task call passesmodelexplicitly or the agent is overridden viaagents.<name>.model. To run delegated work on Fable, use one of those two surfaces; selecting Fable in/modelalone does not change delegation.
版本历史
-
74e4e11
当前 2026-08-28 11:12
修复了Log部分的存储路径描述缺失问题,补充了log.md的完整说明。
- 41a4c0f 2026-07-25 07:06


