Wiki

Yeachan-Heo/oh-my-claudecode/skills/wiki

作者 Yeachan-Heo454bae017356ed1d056182cd929b6eb6cf6143ad无许可证收录于 2026年10月9日更新于 2026年10月9日

LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)

AI 生成的概览

维护一个持久的 Markdown 项目知识库,支持录入、查询、检查与页面管理操作。

功能
该技能定义了一个持久、自我维护的 Markdown 知识库,用于保存项目与会话知识,并按架构、决策、模式、调试、环境、会话日志等类别组织。它描述了将知识录入页面的操作、按关键词和标签查询页面、运行健康检查以发现孤立页面、过期内容、失效交叉引用、超大页面和结构性矛盾,以及添加、列出、读取或删除页面。页面以带 YAML frontmatter 的 Markdown 形式存储在项目本地目录中,配有自动维护的索引和仅追加的操作日志,交叉引用使用 wiki 链接语法。会话结束时,重要发现可自动记录为会话日志页面。
适用场景
适用于项目需要跨会话持久保留、可不断积累,并能按关键词或标签检索的笔记时。适合记录架构决策、模式、调试发现和环境细节,并对这些积累的知识进行查询或健康检查。
运行要求
不附带脚本,仅为说明文档。它依赖项目本地的存储目录来保存页面、索引和日志,并需要一个配置文件来设置自动捕获。查询仅使用关键词和标签匹配,不使用向量嵌入。

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 pagewiki_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 work
  • sonnet — standard implementation, debugging, and review
  • opus — architecture, deep analysis, consensus planning, and high-risk review
  • fable — Claude Fable 5 (above Opus); pass it explicitly on the Task call or pin it per agent with agents.<name>.model
  • The session model chosen with /model applies to the main loop only. Delegated agents run on their pinned tier unless the Task call passes model explicitly or the agent is overridden via agents.<name>.model. To run delegated work on Fable, use one of those two surfaces; selecting Fable in /model alone does not change delegation.

来源与署名

来源:Yeachan-Heo/oh-my-claudecode位于skills/wiki提交454bae0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架