Agent skill

LLM Wiki Operations

by liucongg in liucongg/liucong-skills

Maintains an LLM Wiki in a Feishu knowledge base: initial setup, ingesting sources and articles, answering queries, health checks and entry upkeep.

Apache-2.0Auto-check passedKnowledge Management

SKILL.md written in Chinese; this summary is our English description.

Install LLM Wiki Operations

skills CLI
$ npx skills add liucongg/liucong-skills --skill llm-wiki-ops -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install liucongg/liucong-skills llm-wiki-ops --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/liucongg/liucong-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/llm-wiki-ops .claude/skills/llm-wiki-ops && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
llm-wiki-ops
GitHub stars
248
Token cost
~898 tokens
SKILL.md length
170 words
Files
9 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Maintains an LLM Wiki in a Feishu knowledge base: initial setup, ingesting sources and articles, answering queries, health checks and entry upkeep.

  • Works in 5 steps: Ingest(入库) → Query(查询) → Lint(体检) → …
  • Adding source documents or articles to a Feishu-hosted LLM Wiki
  • SKILL.md covers 第一步:检测绑定状态, 已绑定:直接运维, 词条文档规范(强制) and 未绑定:初始化流程, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Before every use the skill reads `config/wiki-binding.json` to see whether a knowledge base is already bound. If a valid space ID and node list are present it goes straight to maintenance. Otherwise it asks whether you already have an LLM Wiki, then either parses the space link you give it or creates a new Feishu knowledge space with a standard layout: raw sources, entries, finished and draft articles, an index, an update log and an AGENT.md file.

Day-to-day work covers ingesting materials and articles into source cards and entries, querying through the index with cited answers that can be filed back as new pages, and linting for contradictions, orphan entries, missing pages, absent cross-references and unsourced facts. Each entry holds a definition, sourced key facts and linked relations to other entries. Facts must come from your materials, missing information is marked as unavailable, and deleting an entry needs your explicit approval. The index stays in A to Z order and the update log is append-only.

When your agent uses it

  • Adding source documents or articles to a Feishu-hosted LLM Wiki
  • Querying or checking the health of an existing Feishu knowledge base
  • Setting up a new wiki space with the standard folder structure
  • Updating the index or log after changing wiki entries

Example prompts

  • “Ingest this article into my LLM Wiki and link its concepts to existing entries.”
  • “Run a lint pass on the wiki and list the orphan entries.”
  • “Query the wiki for everything we have on retrieval-augmented generation.”
  • “Set up a new LLM Wiki in Feishu for my research notes.”

Requirements

  • A Feishu account with access to a knowledge space (wiki)
  • A bound config/wiki-binding.json, created during setup

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Ingest(入库)
  2. Query(查询)
  3. Lint(体检)
  4. 词条管理
  5. 索引与日志维护

What it can do on your machine

Read from SKILL.md and the folder at commit d08416a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

LLM Wiki Operations loads about 898 tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 39 tokens; SKILL.md has 170 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~898
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from liucongg/liucong-skills at commit d08416a, republished under its Apache-2.0 licence (© liucongg). 170 words, ~898 tokens.

Download SKILL.mdSave it as .claude/skills/llm-wiki-ops/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
llm-wiki-ops
description
LLM Wiki 知识库运维技能。用于在飞书知识库中进行 LLM Wiki 的初始化、绑定、入库、查询、体检和词条管理。当用户要求操作 LLM Wiki 知识库、入库资料/文章、查询词条、体检知识库、管理索引/日志时使用。支持自动检测绑定状态,未绑定时引导初始化,已绑定时直接运维。
license
Apache-2.0
metadata.author
liucongg
metadata.version
1.0.0

LLM Wiki 运维技能

在飞书知识库中运维 LLM Wiki——基于 Karpathy 的 LLM Wiki 模式:LLM 把原始资料持续编译成互相链接的持久化 wiki。

第一步:检测绑定状态

每次使用本技能前,必须先检测知识库绑定状态。

  1. 读取本技能目录下的 config/wiki-binding.json。
  2. 如果文件存在且包含有效的 space_id 和 nodes,则视为已绑定,直接进入运维模式。
  3. 如果文件不存在、为空或缺少关键字段,则视为未绑定,进入初始化流程(见 references/init.md)。

绑定文件路径:<skill_dir>/config/wiki-binding.json

已绑定:直接运维

绑定后,所有操作基于 wiki-binding.json 中的节点 token 和 doc_id 执行。无需再让用户提供知识库地址。

核心操作
1. Ingest(入库)

原始资料入库:

  1. 读取用户提供的资料文件(全文,不跳过)。
  2. 在「原始资料」区创建资料卡文档,保留原文链接。
  3. 从资料中提取值得沉淀的实体/概念/方法论,在「词条」区创建词条文档。
  4. 每个新词条必须同时建立与已有词条的双链关系(见下方「双链规则」)。
  5. 更新「索引」文档(A-Z 排序,先英文后中文)。
  6. 在「更新日志」追加 ingest 条目。

文章入库:

  1. 判断是成稿还是草稿,分别放入「我的文章/成稿」或「我的文章/草稿」。
  2. 清理文章中的无关内容(如视频播放器 UI 文字)。
  3. 从文章中提取有价值的概念/实体创建词条(词条来源标注文章标题)。
  4. 更新索引和日志。

详细流程见 references/ingest.md。

2. Query(查询)
  1. 先读「索引」定位相关词条和资料卡。
  2. 深入阅读相关文档。
  3. 综合出带引用的答案。
  4. 有价值的答案(比较、分析、新连接)归档回 wiki 成为新页面,并更新索引与日志。

详细流程见 references/query.md。

3. Lint(体检)

定期检查:

  • 页面间矛盾、过期论断
  • 孤儿页(无入链的词条)——发现后立即补全双链
  • 提到但缺页的概念
  • 缺失的交叉引用
  • 事实标注是否完整(每条事实是否标注来源)
  • 索引与实际词条是否一致

结果记录到更新日志,类型为 lint。详细流程见 references/lint.md。

4. 词条管理
  • 新建词条:必须包含定义、关键事实(标注来源)、与其他词条的关系(双链)、来源四个部分。
  • 更新词条:只改被点名的范围,保留未要求改动的内容。
  • 删除词条:需用户明确授权,删除后更新索引和相关词条的双链。

词条模板见 references/entry-template.md。

5. 索引与日志维护
  • 索引:每次入库/删除后必须更新。按 A-Z 字母排序,每个字母下先英文后中文。包含原始资料、我的文章(成稿+草稿)、词条三个区域。
  • 更新日志:追加式记录,不修改历史。条目格式:## [YYYY-MM-DD] <动作> | <主题>,动作取值:ingest/query/lint/init/update。

词条文档规范(强制)

每篇词条文档必须包含以下结构:

  1. 定义:一句话定义该实体/概念。
  2. 关键事实:列出从资料/文章中提取的事实。
  3. 与其他词条的关系:说明与其他词条的关联,必须使用飞书文档双链链接。
  4. 来源:标注来源文件名或文章标题。
事实与来源规则(强制)
  • 所有事实必须来自用户提供的资料和文章,禁止编造。
  • 每条事实必须标注来源,格式:(来源:<文件名/文章标题>)。
  • 资料里没有的信息,明确写「暂无资料」,不得臆造。
双链规则(强制)
  • 每个词条的「与其他词条的关系」部分必须使用飞书文档链接([词条名](https://<tenant>.feishu.cn/docx/<doc_id>)),不得使用纯文本。
  • 禁止产生孤儿词条:每个新词条至少链接到 1-2 个已有词条;被链接的词条也应在关系部分回链。
  • 关系描述要具体,不能只写“相关”,要说明是什么关系(对比、基于、同属、被采用等)。
  • 绑定文件 wiki-binding.json 中不记录每个词条的 doc_id;查询时通过索引或 wiki 节点列表获取。

未绑定:初始化流程

如果检测到未绑定,按以下流程初始化:

  1. 询问用户是否已有 LLM Wiki 知识库。
    • 已有:让用户提供知识库的 space_id 或 wiki 链接,自动解析节点结构,生成 wiki-binding.json。
    • 没有:在飞书创建新知识空间,建立标准目录结构(原始资料、词条、我的文章/成稿、我的文章/草稿、索引、更新日志、AGENT.md),生成 wiki-binding.json。
  2. 初始化完成后,告知用户绑定成功,并可直接开始运维。

详细流程见 references/init.md。

绑定文件格式

config/wiki-binding.json 必须包含:

json
{
  "wiki_name": "LLM Wiki",
  "space_id": "<飞书知识空间ID>",
  "space_url": "<知识库URL>",
  "root_node_token": "<根节点token>",
  "nodes": {
    "原始资料": { "node_token": "...", "obj_token": "..." },
    "词条": { "node_token": "...", "obj_token": "..." },
    "我的文章": {
      "node_token": "...",
      "children": {
        "成稿": { "node_token": "...", "obj_token": "..." },
        "草稿": { "node_token": "...", "obj_token": "..." }
      }
    }
  },
  "docs": {
    "索引": { "doc_id": "..." },
    "更新日志": { "doc_id": "..." },
    "AGENT.md": { "file_token": "..." }
  },
  "created_at": "YYYY-MM-DD",
  "last_updated": "YYYY-MM-DD"
}

注意事项

  • 本技能操作的是飞书知识库,需要飞书登录态。操作前确认 lark-cli 可用;如果 Agent 提供等价的飞书知识库和文档工具,也可以使用等价工具完成同一操作。
  • 绑定文件是本技能的核心运行时状态,不要提交到版本库。如果知识库结构发生变化(如新增节点),必须同步更新绑定文件。
  • 写入绑定前确保 config/ 目录存在。可参考 config/wiki-binding.example.json,但不得把示例占位值视为有效绑定。
  • 所有写入操作(创建文档、更新索引、追加日志)执行后,必须验证结果(列出节点确认数量、读取文档确认内容)。
  • 用户可在对话中直接要求执行入库、查询、体检或词条管理,无需重复确认绑定状态(已在第一步检测)。

© liucongg, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in skills/llm-wiki-ops of liucongg/liucong-skills.

  • SKILL.md
  • .gitignore
  • README.md
  • config/wiki-binding.example.json
  • references/entry-template.md
  • references/ingest.md
  • references/init.md
  • references/lint.md
  • references/query.md

Open the folder on GitHubat commit d08416a

Compare with similar skills

LLM Wiki Operations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

LLM Wiki Operations compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
LLM Wiki Operations this skillliucongg/liucong-skills248—~898Automated safety check: PassApache-2.0
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k—~1.5kAutomated safety check: PassMIT
Mini Context Graphgithub/awesome-copilot40k1 repos~2kAutomated safety check: PassMIT
Personal Knowledge Wikizhayujie/CowAgent47k—~924Automated safety check: PassMIT
Large Codebase Knowledge Base BuilderTencent/teamai-cli5.2k—~4.4kAutomated safety check: PassCustom licence
LLM Wikilewislulu/llm-wiki-skill655—~3.7kAutomated safety check: PassNone

Similar skills

  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub stars~1.5k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Mini Context Graph

    github/awesome-copilot

    Official

    A persistent, compounding knowledge base combining Karpathy's LLM Wiki pattern with a structured knowledge graph.

    40k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check passed
  • Personal Knowledge Wiki

    zhayujie/CowAgent

    Maintains a structured Markdown knowledge base in a knowledge/ folder by ingesting shared articles, synthesizing conversations and answering questions from it.

    47k GitHub stars~924 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Compresses a large multi-repository codebase into a structured knowledge base through architecture reverse-engineering, a Graph RAG graph and AST analysis.

    5.2k GitHub stars~4.4k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • LLM Wiki

    lewislulu/llm-wiki-skill

    Build and maintain a Karpathy-style LLM knowledge base — a self-compiling Obsidian markdown wiki where an Agent ingests raw sources, compiles cross-linked concept/entity/summary pages, answers…

    655 GitHub stars~3.7k tokensUpdated 5 mo ago
    Knowledge ManagementAuto-check passed
  • Obsidian Wiki Vault Setup

    AgriciDaniel/claude-obsidian

    Sets up or adopts a separate Obsidian knowledge vault through the claude-obsidian core script and routes follow-up work to the right wiki sub-skill.

    15k GitHub stars~1.3k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed

More from liucongg/liucong-skills

  • Design-Led Website Builder

    liucongg/liucong-skills

    Turns a short brief into a researched, distinctive website: lock the intent with at most one question, research live reference sites, source materials, then build and verify.

    248 GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Traceable Model Evaluation

    liucongg/liucong-skills

    Sets up and runs side-by-side model evaluations with frozen questions, isolated tools and traceable results, using your own question bank or benchmark subsets.

    248 GitHub stars~752 tokensUpdated 1 mo ago
    Auto-check passed
  • Painterly 3D2 Cinema Prompts

    liucongg/liucong-skills

    Expands one sentence into a prompt package for painterly 3D-to-2D short films: story, 15-second segments, characters, scenes, Midjourney storyboards and Seedance video prompts.

    248 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • WeChat Article Title Strategist

    liucongg/liucong-skills

    Generates, rewrites, critiques and ranks titles for Chinese WeChat official account articles, grounded in the article's real content and any history data supplied.

    248 GitHub stars~471 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about LLM Wiki Operations

What does LLM Wiki Operations do?

Maintains an LLM Wiki in a Feishu knowledge base: initial setup, ingesting sources and articles, answering queries, health checks and entry upkeep. json` to see whether a knowledge base is already bound. If a valid space ID and node list are present it goes straight to maintenance.

When should I use LLM Wiki Operations?

LLM Wiki Operations fits situations like: adding source documents or articles to a Feishu-hosted LLM Wiki; querying or checking the health of an existing Feishu knowledge base; setting up a new wiki space with the standard folder structure; updating the index or log after changing wiki entries.

How do I install LLM Wiki Operations in Claude Code?

Run `npx skills add liucongg/liucong-skills --skill llm-wiki-ops -a claude-code`. Or copy the skill folder (skills/llm-wiki-ops in liucongg/liucong-skills) into .claude/skills/llm-wiki-ops in your project. Claude Code loads it when a task matches its description.

How do I install LLM Wiki Operations in Codex?

Run `npx skills add liucongg/liucong-skills --skill llm-wiki-ops -a codex`. Or copy the skill folder (skills/llm-wiki-ops in liucongg/liucong-skills) into .agents/skills/llm-wiki-ops in your project. Codex loads it when a task matches its description.

Can I use LLM Wiki Operations in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add liucongg/liucong-skills --skill llm-wiki-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/llm-wiki-ops, .gemini/skills/llm-wiki-ops, .github/skills/llm-wiki-ops and .opencode/skills/llm-wiki-ops in your project.

What does LLM Wiki Operations need to run?

SKILL.md names no scripts, command-line tools or credentials: LLM Wiki Operations is instructions for the agent only. Our summary lists: A Feishu account with access to a knowledge space (wiki); A bound config/wiki-binding.json, created during setup.

Does LLM Wiki Operations access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is LLM Wiki Operations safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does LLM Wiki Operations use?

LLM Wiki Operations is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does LLM Wiki Operations use?

About 898 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.1k tokens, read only when the agent opens those files.

What are the alternatives to LLM Wiki Operations?

Skills that share tags, products or a category with LLM Wiki Operations: LLM Wiki Knowledge Graph (Egonex-AI/Understand-Anything, 86k stars), Mini Context Graph (github/awesome-copilot, 40k stars), Personal Knowledge Wiki (zhayujie/CowAgent, 47k stars) and Large Codebase Knowledge Base Builder (Tencent/teamai-cli, 5.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains LLM Wiki Operations?

liucongg (a GitHub user) maintains it in liucongg/liucong-skills, which has 248 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 8, 2026.

Source: liucongg/liucong-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.