npx skills add ...
npx skills add yuque/yuque-plugin --skill yuque-personal-knowledge-connect
Discover connections between documents, build knowledge networks, and establish bidirectional links across your personal Yuque knowledge base. For personal/individual use — operates on your own docs.
npx skills add yuque/yuque-plugin --skill yuque-personal-knowledge-connect
Help the user discover hidden connections between their documents, find related content, and build a knowledge network with bidirectional links across their personal Yuque knowledge base.
All tools are from the yuque-mcp server:
yuque_search — Search for related documents by keywordyuque_get_doc — Read document content to analyze connectionsyuque_list_repos — List personal repos to scanyuque_list_docs — List documents in repos for broader discoveryyuque_update_doc — Add cross-reference links to documentsyuque_create_doc — Create knowledge map documentsThe user may provide:
If starting from a document:
Extract key concepts, terms, and themes from the document.
Search for related content using extracted keywords:
Repeat with different keywords to cast a wider net. Use:
Also scan repos for broader discovery:
For each potentially related document (top 5-10):
Analyze the relationship type:
| Relationship | Description | Example |
|---|---|---|
| 🔗 直接相关 | Same topic, different angle | 两篇都讲微服务架构 |
| 🧩 互补 | Fills gaps in each other | 一篇讲设计,一篇讲实现 |
| 📚 前置/后续 | Sequential knowledge | 入门篇 → 进阶篇 |
| 🔀 交叉引用 | Shared concepts across topics | 都提到了 Redis 缓存策略 |
| ⚡ 矛盾/对比 | Conflicting viewpoints | 两篇对同一问题有不同方案 |
Present the discovered connections:
[中心文档] ├── 🔗 [直接相关文档 1] │ └── 🔀 [交叉引用文档 A] ├── 🧩 [互补文档 2] ├── 📚 [前置文档 3] │ └── 📚 [更前置文档 B] └── ⚡ [对比文档 4]
If the user agrees, add "相关文档" sections to the connected documents:
Ask before modifying any existing document:
| Situation | Action |
|---|---|
yuque_search returns few results | Broaden keywords; try synonyms and related terms |
| Starting document has no clear connections | Suggest the document may be on a new topic; offer to search broader |
| Too many connections found (>15) | Prioritize by relevance strength; group into clusters |
yuque_update_doc fails when adding links | Skip that document; note it in the report |
| User's knowledge base is very small | Acknowledge limited scope; suggest topics to write about to build the network |