Analyze a user's writing style from their Yuque documents — vocabulary habits, sentence patterns, tone characteristics — and generate a style profile that can be used to maintain consistent voice when writing new content. For personal/individual use.
Analyze your existing Yuque documents to extract your unique writing style — vocabulary habits, sentence structures, tone characteristics. Generate a reusable style profile that helps you (or AI) maintain a consistent voice when writing new content.
All tools are from the yuque-mcp server:
yuque_list_books — List user's knowledge basesyuque_list_docs — List documents in a knowledge baseyuque_get_doc — Read document content for style analysisyuque_search — Find specific types of documents for analysisyuque_create_doc — Save the style profile as a documentAsk the user for source material:
Case A — Specific documents: User provides links to documents they consider representative of their style.
Case B — Entire knowledge base: User specifies a knowledge base. Sample documents from it.
Case C — Auto-detect best samples: If the user isn't sure, search for their most substantial documents:
Tool: yuque_list_books
Tool: yuque_list_docs
Parameters:
repo_id: "<namespace>"
Select 5-10 documents that are:
For each selected document:
Tool: yuque_get_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"
Analyze the collected writing samples across these dimensions:
Create a structured style profile:
# ✍️ 写作风格画像
> 基于 [N] 篇文档分析生成
> 分析日期:YYYY-MM-DD
## 一句话风格概括
[用一句话描述用户的整体写作风格,如 "简洁直接的技术写作者,偏好短句和大量代码示例,语气自信但不傲慢"]
## 用词习惯
- **正式程度**:[描述 + 示例]
- **术语密度**:[描述 + 示例]
- **高频词汇**:[列出 5-10 个标志性用词]
- **过渡词偏好**:[常用的连接词和过渡表达]
- **中英混用**:[模式描述,如 "技术名词用英文,解释用中文"]
## 句式特征
- **句子长度**:[平均字数/句,与参考值对比]
- **段落长度**:[平均句数/段]
- **复杂度**:[简单句为主 / 复合句为主]
- **标志性句式**:[用户常用的句式模式,附原文示例]
## 语气画像
- **视角**:[第一人称 / 第二人称 / 无人称]
- **自信度**:[断言型 / 探讨型 / 谦逊型]
- **幽默感**:[描述]
- **互动性**:[对话式 / 独白式 / 教学式]
## 结构偏好
- **开头方式**:[描述 + 示例]
- **结尾方式**:[描述 + 示例]
- **标题风格**:[描述]
- **举例频率**:[高 / 中 / 低]
- **格式偏好**:[常用的 Markdown 元素]
## 风格指纹(供 AI 参考)
当需要模仿此风格写作时,遵循以下规则:
1. [具体规则 1,如 "每段不超过 4 句话"]
2. [具体规则 2,如 "技术概念首次出现时用中文解释 + 英文原词"]
3. [具体规则 3,如 "多用反问句引导思考"]
4. [具体规则 4,如 "避免使用'众所周知'等套话"]
5. [具体规则 5,如 "结尾倾向于提出开放性问题而非总结"]
## 示例对比
### 原文片段
> [从用户文档中摘取的典型段落]
### 风格要素标注
[标注该段落中体现的风格特征]
Show the style profile to the user and ask:
"这个风格画像准确吗?有没有哪些地方需要调整?"
Iterate based on user feedback. They might say:
Ask the user: "要把风格画像保存到语雀吗?以后写作时可以参考。"
If confirmed:
Tool: yuque_create_doc
Parameters:
repo_id: "<target namespace>"
title: "✍️ 我的写作风格画像"
body: "<style profile in markdown>"
Confirm: "风格画像已保存到「[知识库名称]」:[文档链接]"
When the user later asks to write content in their style:
| Situation | Action |
|---|---|
| Document not found (404) | Skip and note it; continue with other documents |
| Permission denied (403) | Tell user they may lack permission to access this document |
| Too few documents (< 3) | Inform user: "文档数量较少,风格分析可能不够准确。建议提供至少 5 篇文档" |
| Documents are mostly copied/quoted content | Inform user: "这些文档大部分是引用内容,需要你原创的文档来分析风格" |
yuque_create_doc fails | Present the style profile in chat for manual saving |
| Mixed authorship | Ask user to confirm which documents are their own writing |