Generate intelligent summaries for Yuque knowledge bases or multiple documents, providing a quick overview of content landscape and key insights. For personal/individual use — summarizes your own knowledge bases.
Generate intelligent summaries for an entire knowledge base or a set of documents, helping users quickly understand content landscape, key themes, and important insights.
All tools are from the yuque-mcp server:
yuque_list_repos — List personal knowledge basesyuque_get_repo_toc — Get the table of contents of a knowledge baseyuque_get_doc — Read full document contentyuque_search — Search documents by keyword (for topic-based summaries)Determine what the user wants summarized:
Option A: Entire knowledge base
Tool: yuque_list_repos
Parameters:
type: "user"
Then let the user pick a repo, or use the one they specified.
Option B: Specific topic across repos
Tool: yuque_search
Parameters:
query: "<topic keywords>"
type: "doc"
Option C: User specifies exact documents Proceed directly to reading them.
For a knowledge base summary, get the table of contents:
Tool: yuque_get_repo_toc
Parameters:
repo_id: "<namespace>"
This gives you the full structure — titles, hierarchy, and document slugs.
For large knowledge bases (>20 docs), use a sampling strategy:
Tool: yuque_get_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"
As you read, track:
Compose the summary in the following format:
## 📚 知识库摘要:「知识库名称」
### 概览
- **文档总数**:X 篇
- **最近更新**:YYYY-MM-DD
- **主要语言**:中文/英文/混合
---
### 🗂️ 内容结构
知识库包含以下主要板块:
1. **[板块名称]**(X 篇文档)
- [简要描述这个板块的内容]
- 代表文档:[文档标题](链接)
2. **[板块名称]**(X 篇文档)
- [简要描述]
- 代表文档:[文档标题](链接)
3. **[板块名称]**(X 篇文档)
- [简要描述]
- 代表文档:[文档标题](链接)
---
### 🔑 核心要点
从整个知识库中提炼的关键信息:
1. **[要点 1]**:[2-3 句话概括]
2. **[要点 2]**:[2-3 句话概括]
3. **[要点 3]**:[2-3 句话概括]
4. **[要点 4]**:[2-3 句话概括]
5. **[要点 5]**:[2-3 句话概括]
---
### 📊 知识库健康度
| 指标 | 状态 |
|------|------|
| 内容覆盖 | [全面/有缺口/待补充] |
| 更新频率 | [活跃/一般/较少更新] |
| 结构清晰度 | [清晰/一般/需要整理] |
| 文档质量 | [高/中/参差不齐] |
---
### 💡 建议
- [建议 1:如"XX 板块内容较少,建议补充"]
- [建议 2:如"部分文档超过 6 个月未更新,建议检查时效性"]
- [建议 3:如"建议添加一篇总览文档串联各板块"]
If summarizing specific documents rather than a whole repo:
## 📄 文档摘要
### 文档列表
| # | 标题 | 知识库 | 更新时间 |
|---|------|--------|----------|
| 1 | [标题](链接) | 「库名」 | YYYY-MM-DD |
| 2 | [标题](链接) | 「库名」 | YYYY-MM-DD |
### 综合摘要
[3-5 段话,综合所有文档的核心内容,突出共同主题和关键信息]
### 各文档要点
#### 1. [文档标题]
- [要点 1]
- [要点 2]
- [要点 3]
#### 2. [文档标题]
- [要点 1]
- [要点 2]
- [要点 3]
### 文档间关联
- [文档 A 和文档 B 在 XX 方面互相补充]
- [文档 C 是文档 A 的深入展开]
yuque-group plugin| Situation | Action |
|---|---|
yuque_list_repos returns empty | Ask user for the exact repo name or ID |
yuque_get_repo_toc returns empty | Inform user the knowledge base appears to be empty |
yuque_get_doc fails (404) | Skip this doc, note it may have been deleted |
yuque_get_doc fails (403) | Tell user they may lack permission to access this doc |
| API timeout | Retry once, then inform user of connectivity issue |
| Knowledge base has >50 docs | Sample 10-15 docs, clearly state the sampling approach |