Knowledge Base logo

Knowledge Base

CommunityPopular
xerrors
knowledge-base

使用 Yuxi 知识库进行检索、打开文档、文档内定位和查看思维导图。当用户需要基于已配置知识库回答问题、核验资料或引用文档内容时使用此技能。

Overview

Publisherxerrors
RepositoryYuxi
Skill nameknowledge-base
Stars
7.1K
Forks
1.1K
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Knowledge Base 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.
  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/xerrors/Yuxi.git /tmp/Yuxi
mkdir -p .claude/skills
cp -r /tmp/Yuxi/backend/package/yuxi/agents/skills/buildin/knowledge-base .claude/skills/knowledge-base
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Knowledge Base 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 Knowledge Base 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 Knowledge Base 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.

知识库技能

当用户要求基于项目知识库、内部资料、上传入库文档或知识图谱相关内容回答问题时,使用此技能。

可用工具

  • list_kbs:列出当前会话可访问且已启用的知识库。
  • query_kb:按 kb_id 在指定知识库中检索内容,返回 file_id 和相关片段。
  • open_kb_document:按 kb_idfile_id 打开文档原文窗口,适合查看更完整上下文。
  • find_kb_document:在已知文档内用关键词或正则定位段落。
  • get_mindmap:查看知识库思维导图结构。
  • search_file:按文件名关键词搜索知识库中的文件,支持指定知识库或跨知识库,返回文件列表与分页信息。
  • download_kb_file:按 kb_idfile_id 下载知识库原始二进制(pdf/docx/xlsx 等)到沙盒 outputs 目录,返回沙盒内可见的 virtual_path。当后续需要用代码读取原始文件结构(如 openpyxl 读 xlsx 单元格、pdfplumber 重新解析版面)时使用;query_kb/open_kb_document 只返回文本切片,无法满足需要文件对象的场景。

操作流程

  1. 需要先确认当前会话有哪些知识库可用;不确定时调用 list_kbs
  2. 针对用户问题选择最相关的知识库,使用 query_kb 检索。
  3. 如果检索片段不足以回答,使用返回的 file_id 调用 open_kb_document 查看上下文。
  4. 如果用户要求定位术语、指标、章节或原文证据,使用 find_kb_document 在候选文档内查找。
  5. 当用户关心知识库结构、文件分类或知识框架时,使用 get_mindmap

关键约束

  • 只能访问当前会话配置和用户权限允许的知识库。
  • 不要编造 kb_idfile_id;优先从 list_kbsquery_kb 的返回结果中获取。
  • 回答需要可追溯时,应说明依据来自哪个知识库、文件或检索片段。
  • Dify 等外部只读知识库可能只支持检索,不一定支持打开全文或文档内查找;遇到工具返回限制说明时,应如实告知用户。

Frequently asked questions

What does the Knowledge Base AI skill do?

使用 Yuxi 知识库进行检索、打开文档、文档内定位和查看思维导图。当用户需要基于已配置知识库回答问题、核验资料或引用文档内容时使用此技能。

Why use Knowledge Base on TypingMind?

Because you install it once and use it with any model. Knowledge Base 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 Knowledge Base in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xerrors/Yuxi/tree/main/backend/package/yuxi/agents/skills/buildin/knowledge-base. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Knowledge Base?

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 Knowledge Base?

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

Is the Knowledge Base AI skill free?

Yes. It is published on GitHub by xerrors under the MIT license. 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 👇