yuque-personal-knowledge-connect
npx skills add https://github.com/yuque/yuque-plugin --skill yuque-personal-knowledge-connect
Agent 安装分布
Skill 文档
Knowledge Connect â Discover Document Relationships & Build Knowledge Networks
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.
When to Use
- User wants to find documents related to a specific topic
- User says “æåªäºç¸å ³ææ¡£”, “find related docs”, “帮æå»ºç«ç¥è¯å ³è”
- User wants to build a knowledge map or graph for a topic
- User says “è¿ä¸ªä¸»é¢è¿æåªäºç¸å ³ç”, “帮æä¸²èä¸ä¸ç¥è¯”, “æå»ºç¥è¯å¾è°±”
Required MCP Tools
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 documents
Workflow
Step 1: Identify the Starting Point
The user may provide:
- A specific document to find connections for
- A topic or keyword to explore
- A request to map an entire knowledge area
If starting from a document:
Tool: yuque_get_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"
Extract key concepts, terms, and themes from the document.
Step 2: Discover Related Documents
Search for related content using extracted keywords:
Tool: yuque_search
Parameters:
query: "<keyword 1>"
type: "doc"
Repeat with different keywords to cast a wider net. Use:
- Direct topic keywords
- Synonyms and related terms
- Key people or project names mentioned
- Technical terms and concepts
Also scan repos for broader discovery:
Tool: yuque_list_docs
Parameters:
namespace: "<repo_namespace>"
Step 3: Read and Analyze Connections
For each potentially related document (top 5-10):
Tool: yuque_get_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"
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 | 两ç¯å¯¹åä¸é®é¢æä¸åæ¹æ¡ |
Step 4: Build the Knowledge Map
Present the discovered connections:
# ðºï¸ ç¥è¯å
³èå¾ï¼[主é¢/ææ¡£æ é¢]
> åºäºã[èµ·å§ææ¡£]ãåç°çç¥è¯ç½ç»
> æ«æèå´ï¼X 个ç¥è¯åºï¼XX ç¯ææ¡£
> çææ¶é´ï¼YYYY-MM-DD
---
## ð¯ ä¸å¿èç¹
**[èµ·å§ææ¡£æ é¢](龿¥)**
- ç¥è¯åºï¼[åºå]
- æ ¸å¿æ¦å¿µï¼[æ¦å¿µ1]ã[æ¦å¿µ2]ã[æ¦å¿µ3]
---
## ð å
³èææ¡£
### ç´æ¥ç¸å
³
| ææ¡£ | ç¥è¯åº | å
³èç±»å | å
³è说æ |
|------|--------|----------|----------|
| [æ é¢](龿¥) | [åºå] | ð ç´æ¥ç¸å
³ | [为ä»ä¹ç¸å
³] |
| [æ é¢](龿¥) | [åºå] | ð§© äºè¡¥ | [äºè¡¥ç¹è¯´æ] |
### 延伸é
读
| ææ¡£ | ç¥è¯åº | å
³èç±»å | å
³è说æ |
|------|--------|----------|----------|
| [æ é¢](龿¥) | [åºå] | ð åç½®ç¥è¯ | [说æ] |
| [æ é¢](龿¥) | [åºå] | ð 交åå¼ç¨ | [å
±åæ¦å¿µ] |
---
## ð§ ç¥è¯ç½ç»
[ä¸å¿ææ¡£] âââ ð [ç´æ¥ç¸å ³ææ¡£ 1] â âââ ð [交åå¼ç¨ææ¡£ A] âââ ð§© [äºè¡¥ææ¡£ 2] âââ ð [åç½®ææ¡£ 3] â âââ ð [æ´åç½®ææ¡£ B] âââ â¡ [å¯¹æ¯ææ¡£ 4]
---
## ð¡ åç°ä¸å»ºè®®
- **ç¥è¯èç±»**ï¼[åç°çç¥è¯è类模å¼]
- **ç¥è¯ç¼ºå£**ï¼[åç°ç¼ºå°çå
³èææ¡£æä¸»é¢]
- **建议è¡å¨**ï¼
1. [建议åå»ºçææ¡£æè¡¥å
çå
容]
2. [建议建ç«çæ°å
³è]
---
> æ¬ç¥è¯å¾è°±ç± AI 婿èªå¨çæï¼å
³èå
³ç³»åºäºå
容åæã
Step 5: (Optional) Add Cross-References
If the user agrees, add “ç¸å ³ææ¡£” sections to the connected documents:
Tool: yuque_update_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"
body: "<original content>\n\n---\n\n## ð ç¸å
³ææ¡£\n\n- [ç¸å
³ææ¡£ 1](龿¥) â [å
³è说æ]\n- [ç¸å
³ææ¡£ 2](龿¥) â [å
³è说æ]\n"
Ask before modifying any existing document:
- “è¦å¨è¿äºææ¡£ä¸æ·»å ç¸äºå¼ç¨é¾æ¥åï¼”
Step 6: (Optional) Save Knowledge Map
Tool: yuque_create_doc
Parameters:
repo_id: "<namespace>"
title: "ðºï¸ ç¥è¯å¾è°±ï¼[主é¢]"
body: "<knowledge map content>"
format: "markdown"
Step 7: Confirm
â
ç¥è¯å
³èåæå®æï¼
ðºï¸ **åç° X ç¯ç¸å
³ææ¡£ï¼å»ºç«äº X 个å
³è**
### å
³èæ¦è§
- ð ç´æ¥ç¸å
³ï¼X ç¯
- ð§© äºè¡¥ææ¡£ï¼X ç¯
- ð åç½®/åç»ï¼X ç¯
- ð 交åå¼ç¨ï¼X ç¯
ð¡ 建议ï¼[æéè¦ç䏿¡å»ºè®®]
Guidelines
- Start broad, then narrow â search with multiple keywords to find unexpected connections
- Quality over quantity â 5 strong connections are better than 20 weak ones
- Explain why documents are related, not just that they are
- Always ask before modifying existing documents (adding cross-references)
- The knowledge map should be actionable â include specific suggestions for strengthening the knowledge network
- Identify knowledge gaps â what’s missing is as valuable as what’s connected
- For large knowledge bases, focus on one topic area at a time
- Default language is Chinese
Error Handling
| 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 |