Llm Wiki Lark logo

Llm Wiki Lark

Community
harryzhz
llm-wiki-lark

LLM Wiki:在飞书云盘或知识库中构建三层 LLM 知识库,支持 init/import/ingest/query/lint。触发词:llm wiki, 知识库, wiki ingest, wiki query, wiki lint, wiki init, wiki import, 添加素材, 导入素材

Overview

Publisherharryzhz
Repositoryllm-wiki-lark
Skill namellm-wiki-lark
Stars
26
Forks
5
Bundled files
15
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 15 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by harryzhz on GitHub. Read the source before you install it.

Installation

Install the Llm Wiki Lark AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/harryzhz/llm-wiki-lark/tree/main/skills/llm-wiki-lark
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/harryzhz/llm-wiki-lark.git /tmp/llm-wiki-lark
mkdir -p .claude/skills
cp -r /tmp/llm-wiki-lark/skills/llm-wiki-lark .claude/skills/llm-wiki-lark
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Llm Wiki Lark in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Llm Wiki Lark on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Llm Wiki Lark is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

LLM Wiki on Lark

在飞书云盘或知识库中构建和维护一个 LLM 驱动的结构化知识库。支持云盘模式(个人云盘文件夹)和知识库模式(飞书知识库节点树)两种存储后端。严格遵循三层架构:Schema(行为规范)、Raw(原始素材)、Wiki(LLM 知识层)。

知识编译一次、持续更新,而非每次查询从零推导。LLM 负责所有维护工作 — 摘要、交叉引用、归类、一致性检查。

前置检查

在执行 init/import/ingest/query/lint 之前,必须先运行以下检查,缺失项自动安装:

Step 1: 检查 lark-cli
  命令: which lark-cli
  如果不存在:
    npm install -g @larksuite/cli

Step 2: 检查认证
  命令: lark-cli auth status
  如果未认证:
    提示用户运行: ! lark-cli auth login

快速决策树

用户意图操作
"初始化知识库" / "创建新的 wiki"init
"把这篇论文存到 raw" / "添加这个 URL" / "上传这个文件" / "先把素材收进来"import
"摄入这篇文章" / "分析这个素材" / "把这个加到知识库"ingest
"关于 X 我们知道什么" / "从知识库回答"query
"检查知识库健康" / "有没有孤立页面"lint

五大操作

  • 除 init 外,选定 wiki 后先 fetch AGENTS 文档查看规范,并按 存量 AGENTS 引用规范迁移 检查它是否仍要求旧引用格式。文档写入语法以当前技能的 docs v2 契约为准;AGENTS 的领域、命名和工作流约定继续保留。发现冲突时报告 D2 规范过时,不得沿用旧标签写入。
  • Wiki 选择规则(按优先级):
    1. 用户在本次请求中指定了 wiki 名称 → 从本地配置的 wikis 数组按 wiki_name 匹配
    2. 当前对话上下文已确定 wiki → 沿用
    3. 读取 ~/.llm_wiki.setting.json:仅 1 个 wiki → 自动使用;多个 wiki → 列出所有 wiki(名称 + 创建时间),请用户选择
    4. 用户直接提供 INDEX doc_id → 直接使用
操作说明详细步骤
init创建完整目录树 + AGENTS.md + INDEX + LOGinit.md
import将素材(飞书文档/本地文件/外部链接)归档到 raw/ 对应子目录import.md
ingest从 raw/ 读取素材 → 创建 Source/Entity/Concept 页面 → 维护交叉引用ingest.md
query从 INDEX 定位 → fetch 相关页面 → 综合回答 → 有价值的回答归档回流query.md
lint检查矛盾、孤立页、断链等 → 生成报告 → 用户确认后修复lint.md

命令参考

  • 云盘模式命令见 Drive Adapter
  • 知识库模式命令见 Wiki Adapter
  • 文档操作仅支持 docs v2,已验证 lark-cli 1.0.98,不提供 v1 回退。Markdown 正文须显式指定 --doc-format markdown。
  • 命令报错时,使用 lark-doc / lark-drive / lark-wiki skill 获取完整参数和示例;如未安装,可通过 npx skills add larksuite/cli -y -g 安装。
操作v2 命令
创建文档lark-cli docs +create --as user --title "<TITLE>" --parent-token <PARENT_TOKEN> --content "<MARKDOWN>" --doc-format markdown
读取正文lark-cli docs +fetch --as user --doc <DOC_ID> --doc-format markdown
追加正文lark-cli docs +update --as user --doc <DOC_ID> --command append --content "<MARKDOWN>" --doc-format markdown
覆盖全文lark-cli docs +update --as user --doc <DOC_ID> --command overwrite --content "<MARKDOWN>" --doc-format markdown
替换单块lark-cli docs +update --as user --doc <DOC_ID> --command block_replace --block-id <BLOCK_ID> --content "<MARKDOWN>" --doc-format markdown
替换简单行内文本lark-cli docs +update --as user --doc <DOC_ID> --command str_replace --pattern "<OLD_TEXT>" --content "<NEW_TEXT>" --doc-format markdown
  • 创建结果从 .data.document.document_id / .data.document.url 读取;fetch 正文从 .data.document.content 读取。
  • --parent-token:云盘传 folder_token,知识库传 node_token。Drive 上传、移动、快捷方式仍按各自命令使用 --folder-token。
  • 替换段落或多块内容前,先用 docs +fetch --doc <DOC_ID> --detail with-ids 获取最新 block ID。单块用 --block-id;同一父节点下的连续闭区间用 --start-block-id <FIRST_BLOCK_ID> --end-block-id <LAST_BLOCK_ID>。区间包含标题时,替换内容须包含标题;不包含下一节标题。每次修改后重新 fetch,不复用旧 ID。
  • str_replace 仅处理简单行内文本,不能替换整节、多块内容或文档/附件引用。长内容用 --content - 加带单引号的 heredoc,或 --content @./draft.md。

其他参考文档

关键约束

  • 文档中引用其他飞书文档禁止使用原始 URL(外部链接除外) — 统一使用 v2 XML 文档引用:<cite type="doc" doc-id="<DOC_ID>"></cite>;上传文件附件使用 <source token="<FILE_TOKEN>" name="<FILENAME>"></source>
  • 文档中写入流程图、架构图、时序图必须用飞书画板的 DSL 格式
  • 新文档必须放入对应子目录,创建时指定 --parent-token
  • 飞书文档增量更新优先,避免 overwrite,默认使用分段写入:docs +create --title "<TITLE>" --parent-token <PARENT_TOKEN> --doc-format markdown --content "" 仅写标题骨架拿到 doc_id,正文再用 docs +update --command append --doc-format markdown --content - 追加

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Llm Wiki Lark AI skill do?

LLM Wiki:在飞书云盘或知识库中构建三层 LLM 知识库,支持 init/import/ingest/query/lint。触发词:llm wiki, 知识库, wiki ingest, wiki query, wiki lint, wiki init, wiki import, 添加素材, 导入素材

Why use Llm Wiki Lark on TypingMind?

Because you install it once and use it with any model. Llm Wiki Lark is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Llm Wiki Lark in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/harryzhz/llm-wiki-lark/tree/main/skills/llm-wiki-lark. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Llm Wiki Lark?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Llm Wiki Lark?

As many as you like. As long as a model supports skills, you can use Llm Wiki Lark with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Llm Wiki Lark AI skill free?

It is published on GitHub by harryzhz. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇