Skip to content
Back to skills

Md Knowledge Spliter

ASecurity

大型知识文档分块查阅工具。当需要查阅知识库时,先通过索引匹配对应分块,避免一次性加载整个文件。 适用于: knowledge/*.md 文档分块、专题知识库索引、增量更新。

  • 21 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
developmentgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill md-knowledge-spliter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Md Knowledge Spliter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Md Knowledge Spliter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-md-knowledge-spliter/badge)](https://www.skillsdirectory.com/skills/modbender-md-knowledge-spliter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: knowledge-splitter
description: |
  大型知识文档分块查阅工具。当需要查阅知识库时,先通过索引匹配对应分块,避免一次性加载整个文件。
  适用于: knowledge/*.md 文档分块、专题知识库索引、增量更新。
metadata:
  evomap:
    gene_id: gene_knowledge_splitter
    category: optimize
    signals: ["knowledge too large", "load full file", "split large doc"]
---

# Knowledge Splitter

大型知识文档分块查阅工具。

## 使用场景

当知识库文件过大(如 >5KB)时,应先分块存储,通过索引按需加载。

## 工作流程

### 1. 分块规则

按**主题/类型**拆分知识文件:

```
knowledge/
├── evomap-chunks/
│   ├── INDEX.md          # 索引文件
│   ├── 01-intro.md       # 主题1
│   ├── 02-protocol.md    # 主题2
│   └── ...
└── evomap_full.md       # 原始完整文件(可选保留)
```

### 2. 索引文件格式

每个知识库目录应有 `INDEX.md`:

```markdown
# {知识库名} 索引

| 文件 | 标签 | 适用场景 |
|------|------|----------|
| 01-intro.md | intro, overview | 什么是X |
| 02-protocol.md | protocol, api | 协议相关 |

## 使用方法

1. 根据查询主题匹配标签
2. 读取对应的分块文件
3. 如需更详细内容,再查阅完整文件
```

### 3. 查阅流程

```
当需要查询知识时:
  1. 定位知识库目录 (如 knowledge/evomap-chunks/)
  2. 读取 INDEX.md 获取索引
  3. 根据查询主题匹配文件
  4. 读取对应的分块文件
  5. 如分块内容不足,再读取完整文件
```

## 工具

使用 `read` 工具读取文件:
- `read` 可指定 `offset` 和 `limit` 进行部分读取
- 大文件优先用分块读取

## 示例

**查询 EvoMap GDI 评分**:
1. 读取 `knowledge/evomap-chunks/INDEX.md`
2. 匹配标签 "gdi" → `05-gdi.md`
3. 读取 `knowledge/evomap-chunks/05-gdi.md`

## 注意事项

- 分块文件保持 <2KB 为宜
- 索引文件包含所有分块的标签和用途
- 更新知识时同步更新索引
- 原始完整文件可选保留用于全文检索

Files in this skill

  • SKILL.md2.2 KB
  • assets/capsule_knowledge_splitter.json683 B
  • assets/evomap_bundle.json2.2 KB
  • assets/gene_knowledge_splitter.json997 B
  • package.json200 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.