feat: 初始化黄小瓜AI助手记忆仓库
- 核心配置: IDENTITY, USER, SOUL, AGENTS, TOOLS, HEARTBEAT, MEMORY - memory/: 每日总结和临时记录 - skills/: 所有已安装技能 - notes/: 语音配置笔记
This commit is contained in:
115
skills/tencent-docs/doc/doc_format/README.md
Normal file
115
skills/tencent-docs/doc/doc_format/README.md
Normal file
@@ -0,0 +1,115 @@
|
||||
# 文本格式化模块
|
||||
|
||||
纯文本 → 结构化 XML → 样式美化的工程化流程。
|
||||
|
||||
---
|
||||
|
||||
## 文件结构
|
||||
|
||||
```
|
||||
doc_format/
|
||||
├── prompt/
|
||||
│ ├── scenario_recognition_prompt.txt # 场景识别 Prompt
|
||||
│ ├── pure_text_system_prompt.txt # 文本转 XML Prompt
|
||||
│ └── style_customization_prompt.txt # 样式解析 Prompt
|
||||
└── templates/
|
||||
├── general.json # 通用场景模板
|
||||
├── paper.json # 学术论文模板
|
||||
├── contract.json # 合同模板
|
||||
├── essay.json # 作文模板
|
||||
├── government.json # 公文模板
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 工作流程
|
||||
|
||||
你需要按照以下步骤完成文本美化任务:
|
||||
|
||||
### 步骤 1: 场景识别与标题生成
|
||||
|
||||
分析用户提供的文本内容,识别所属场景并生成文档标题。
|
||||
|
||||
**参考规则:** `prompt/scenario_recognition_prompt.txt`
|
||||
|
||||
**你必须输出给用户:**
|
||||
```json
|
||||
{
|
||||
"scenario": "场景标识",
|
||||
"title": "生成的标题(2-25字符)"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 步骤 2: 样式自定义(可选)
|
||||
|
||||
**仅当用户明确提出样式要求时执行此步骤**,例如:
|
||||
- "标题用初号黑体"
|
||||
- "正文改成小四"
|
||||
- "标题居中显示"
|
||||
|
||||
**允许样式:** 参考 `templates/{scenario}.json` 中的 `schema.children[].structure` 字段,必须为叶节点的样式。
|
||||
**参考规则:** `prompt/style_customization_prompt.txt`
|
||||
|
||||
**你必须输出给用户(JSON 数组格式):**
|
||||
```json
|
||||
[
|
||||
{
|
||||
"structureName": "Title",
|
||||
"fontSize": 42,
|
||||
"fontFamily": "黑体",
|
||||
"fontColor": "AE2E19",
|
||||
"alignment": 2,
|
||||
"lineSpacing": 1.5
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
如果用户没有样式要求,此步骤不输出。
|
||||
|
||||
---
|
||||
|
||||
### 步骤 3: 文本转 XML 结构化
|
||||
|
||||
根据识别的场景,加载对应模板,将纯文本转换为结构化 XML。
|
||||
|
||||
**模板位置:** `templates/{scenario}.json`
|
||||
|
||||
**参考规则:** `prompt/pure_text_system_prompt.txt`
|
||||
|
||||
**你必须输出给用户:**
|
||||
```json
|
||||
{
|
||||
"xml": "<root>...</root>"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 步骤 4: 调用套用 MCP 工具
|
||||
|
||||
使用 `tencent-docs` MCP Server 对应的 MCP 工具 `doc.ai_format_pure_text` 调用套用 API,传入前面步骤的结果,生成在线腾讯文档链接。
|
||||
|
||||
**MCP 工具参数:**
|
||||
- `title`: 文档标题(步骤 1 的输出)
|
||||
- `xml`: 格式套用后的文档 XML 结构(步骤 3 的输出)
|
||||
- `scenario`: 模板场景(步骤 1 的输出)
|
||||
- `customStyles`: 对文档的自定义样式(步骤 2 的输出,可选,需序列化为 JSON 字符串)
|
||||
|
||||
**最终输出文档链接给用户。**
|
||||
|
||||
## 注意事项
|
||||
|
||||
### JSON 序列化
|
||||
文本中的引号必须正确转义:
|
||||
|
||||
❌ 错误:
|
||||
```json
|
||||
{"text": "合同(以下简称"本合同")"}
|
||||
```
|
||||
|
||||
✅ 正确:
|
||||
```json
|
||||
{"text": "合同(以下简称\"本合同\")"}
|
||||
```
|
||||
@@ -0,0 +1,87 @@
|
||||
# 纯文本转XML结构化任务
|
||||
|
||||
## 输入格式
|
||||
{
|
||||
"text": '纯文本内容...',
|
||||
}
|
||||
|
||||
## 规则
|
||||
| 规则 | 说明 |
|
||||
|-----|-----|
|
||||
| 语义识别 | 按语义将文本片段映射到模板标签(标题、正文、签发机关等) |
|
||||
| 内容保留 | 原始文本内容填充到XML元素中,保持完整性 |
|
||||
| 层级包裹 | 叶子节点需包裹在父节点内 |
|
||||
| 智能补充 | 检测缺失的必需元素并补充,填充合理内容 |
|
||||
| 顺序不变 | 文本片段相对顺序保持不变 |
|
||||
| 额外效果 | 如配置了effects,根据matchRules识别符合条件的文本,添加`effect="效果名"`属性 |
|
||||
| 禁止空标签 | 不得生成空标签,无内容的标签应省略,或智能补充 |
|
||||
|
||||
## 示例说明
|
||||
|
||||
### 示例1:标签映射
|
||||
```text
|
||||
// 输入纯文本
|
||||
办公室
|
||||
2023年12月08日
|
||||
|
||||
// 输出XML(基于模板)
|
||||
<root>
|
||||
<SignOff>办公室</SignOff>
|
||||
<SignOff>2023年12月08日</SignOff>
|
||||
</root>
|
||||
```
|
||||
|
||||
### 示例2:结构补充
|
||||
```text
|
||||
// 输入纯文本
|
||||
特此通知
|
||||
|
||||
// 输出XML(检测到缺少必需的Title和SignOff,智能补充,以实际规定为准)
|
||||
<root>
|
||||
<Title>通知</Title>
|
||||
<Text>特此通知</Text>
|
||||
<SignOff>相关签发单位</SignOff>
|
||||
</root>
|
||||
```
|
||||
|
||||
### 示例3:嵌套结构处理
|
||||
```text
|
||||
// 输入纯文本
|
||||
甲方:某公司
|
||||
第一条 合同内容
|
||||
本合同约定...
|
||||
甲方签名:
|
||||
|
||||
// 输出XML(识别出PartyInfo、Clause、PartySignature三个结构性容器,以实际规定为准)
|
||||
<root>
|
||||
<PartyInfo>
|
||||
<Text>甲方:某公司</Text>
|
||||
</PartyInfo>
|
||||
<Clause>
|
||||
<Heading1>第一条 合同内容</Heading1>
|
||||
<Text>本合同约定...</Text>
|
||||
</Clause>
|
||||
<PartySignature>
|
||||
<Text>甲方签名:</Text>
|
||||
</PartySignature>
|
||||
</root>
|
||||
```
|
||||
|
||||
## 模板结构说明
|
||||
|
||||
**字段说明**:
|
||||
schema: 模板结构,其中:`structure`=标签名, `required`=必需, `multiple`=可多次匹配, `pattern`=正则匹配, `description`=语义
|
||||
examples: 对应模板的输入/输出示例,可以参考
|
||||
effects: 额外效果配置,其中:`name`=效果名, `description`=效果描述, `matchRules`=识别规则, `applicableTags`=可应用的标签列表
|
||||
|
||||
**模板结构**:
|
||||
{{.template_content}}
|
||||
|
||||
## 输出格式
|
||||
返回纯 JSON,不要其他文字或解释,不要使用代码块标记(如```json):
|
||||
{
|
||||
"xml": '<root>...</root>',
|
||||
}
|
||||
|
||||
## 任务
|
||||
{{.query}}
|
||||
@@ -0,0 +1,33 @@
|
||||
# 文档场景识别与标题生成任务
|
||||
|
||||
## 任务
|
||||
分析文本内容,识别所属行业场景并生成简洁标题(2-25字符)。
|
||||
|
||||
## 支持的场景
|
||||
|
||||
| 场景标识 | 场景名称 | 典型特征 |
|
||||
|---------|---------|---------|
|
||||
| paper | 学术论文 | 包含「摘要」「关键词」「参考文献」「致谢」「研究方法」「结论」等学术关键词;具有研究目的、方法、结果等学术结构;语言严谨客观 |
|
||||
| contract | 合同 | 包含「甲方」「乙方」「合同」「协议」「条款」「履行」「违约」等法律关键词;涉及权利义务、责任划分;语言正式严谨 |
|
||||
| essay | 作文 | 结构简单(开头、正文、结尾);具有叙事性或抒情性;语言生动个人化 |
|
||||
| government | 公文 | 包含「关于」「通知」「决定」「意见」「批复」「函」「报告」「证明」等公文关键词;具有公文相关信息(如正文、落款、日期);语言庄重规范 |
|
||||
| general | 通用 | 不具备上述任何行业明显特征;内容通用或混合 |
|
||||
|
||||
## 规则
|
||||
| 规则 | 说明 |
|
||||
|-----|-----|
|
||||
| 场景匹配 | scenario 必须从上表中选择,优先匹配典型特征最明显的场景 |
|
||||
| 标题生成 | title 长度 2-25 字符,与文本内容相关,不使用特殊符号或表情 |
|
||||
| 空文本处理 | 文本为空或无法识别时返回 `{"scenario": "general", "title": "未命名文档"}` |
|
||||
| 短文本处理 | 文本少于 10 字符时,尽可能生成标题,场景默认为 general |
|
||||
|
||||
## 输出格式
|
||||
返回纯 JSON(不要使用 ```json 标记):
|
||||
|
||||
{
|
||||
"scenario": "场景标识",
|
||||
"title": "生成的标题"
|
||||
}
|
||||
|
||||
## 需要识别的文本内容
|
||||
{{.query}}
|
||||
@@ -0,0 +1,49 @@
|
||||
你是样式配置解析助手。根据用户请求和可用样式名,输出 JSON 数组。
|
||||
|
||||
## 可用样式名
|
||||
{{.available_styles}}
|
||||
|
||||
## 输出格式
|
||||
[{"structureName":"结构名","fontSize":数字,"fontFamily":"字体名","fontColor":"颜色值","alignment":对齐方式,"lineSpacing":行距}]
|
||||
|
||||
## 中文字号对应关系
|
||||
初号=42pt, 小初=36pt, 一号=26pt, 小一=24pt, 二号=22pt, 小二=18pt, 三号=16pt, 小三=15pt, 四号=14pt, 小四=12pt, 五号=10.5pt, 小五=9pt
|
||||
|
||||
## 可用颜色对应关系
|
||||
白色=FFFFFF, 黑色=000000, 红色=AE2E19, 橙色=F4C243, 黄色=FEFB54, 绿色=53AD5B, 蓝色=326FBA, 紫色=0A205C
|
||||
|
||||
## 对齐方式对应关系
|
||||
左对齐=1, 居中对齐=2, 右对齐=3, 两端对齐=4, 分散对齐=6
|
||||
|
||||
## 行距对应关系
|
||||
单倍行距=1, 1.5倍行距=1.5, 2倍行距=2, 3倍行距=3
|
||||
|
||||
## 规则
|
||||
1. structureName 必须从可用样式名中选择
|
||||
2. fontSize 单位为 pt,仅输出数字(如 14、22、10.5);用户说"三号"、"小四"等中文字号时,按上述映射转换为 pt;用户说"14pt"、"22"等直接使用数字时,去掉 pt 单位
|
||||
3. fontFamily 为字体名称字符串
|
||||
4. fontColor 为颜色十六进制值,不包括#(如 AE2E19);用户说"红色"、"蓝色"等时,按可用颜色映射转换;如果用户指定的颜色不在可用颜色列表中,则省略该字段
|
||||
5. alignment 为对齐方式的数字值(1/2/3/4/6);用户说"居中"、"左对齐"等时,按对齐方式映射转换为数字
|
||||
6. lineSpacing 为行距倍数(如 1、1.5、2、3);用户说"单倍行距"、"1.5倍行距"等时,按行距映射转换为数字
|
||||
7. 未提及的字段省略(不要输出 undefined 或 null)
|
||||
8. 仅输出有效的 JSON 数组,不要其他文字或解释,不要使用代码块标记(如```json)
|
||||
|
||||
## 示例
|
||||
用户请求: "把标题改成初号"
|
||||
可用样式名: 标题
|
||||
输出: [{"structureName":"标题","fontSize":42}]
|
||||
|
||||
用户请求: "把标题改成三号黑体,正文改成小四宋体"
|
||||
可用样式名: Title, Text
|
||||
输出: [{"structureName":"Title","fontSize":16,"fontFamily":"黑体"},{"structureName":"Text","fontSize":12,"fontFamily":"宋体"}]
|
||||
|
||||
用户请求: "把标题改成红色居中,正文改成1.5倍行距"
|
||||
可用样式名: 标题, 正文
|
||||
输出: [{"structureName":"标题","fontColor":"#AE2E19","alignment":2},{"structureName":"正文","lineSpacing":1.5}]
|
||||
|
||||
用户请求: "把标题改成小二号蓝色黑体居中对齐"
|
||||
可用样式名: Title
|
||||
输出: [{"structureName":"Title","fontSize":18,"fontColor":"#326FBA","fontFamily":"黑体","alignment":2}]
|
||||
|
||||
## 用户请求
|
||||
{{.query}}
|
||||
41
skills/tencent-docs/doc/doc_format/templates/contract.json
Normal file
41
skills/tencent-docs/doc/doc_format/templates/contract.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"schema": {
|
||||
"structure": "doc",
|
||||
"children": [
|
||||
{
|
||||
"structure": "Title",
|
||||
"description": "合同标题,通常出现在文档开头或者靠前位置",
|
||||
"examples": [
|
||||
"房屋租赁合同",
|
||||
"买卖合同"
|
||||
],
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "EmphasizedTitle",
|
||||
"description": "强调标题,用于强调展示最高层级的条款",
|
||||
"examples": [
|
||||
"第一条 工作内容",
|
||||
"第二条 租赁期限",
|
||||
"一、合同标的",
|
||||
"1. 条款说明"
|
||||
],
|
||||
"required": true,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Text",
|
||||
"description": "合同的正文内容,合同描述、甲乙方签名、日期等都属于正文内容",
|
||||
"examples": [
|
||||
"本合同自双方签字之日起生效",
|
||||
"甲方",
|
||||
"乙方",
|
||||
"日期"
|
||||
],
|
||||
"required": true,
|
||||
"multiple": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
23
skills/tencent-docs/doc/doc_format/templates/essay.json
Normal file
23
skills/tencent-docs/doc/doc_format/templates/essay.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"schema": {
|
||||
"structure": "doc",
|
||||
"children": [
|
||||
{
|
||||
"structure": "Title",
|
||||
"description": "作文标题,一般位于文档开头段落",
|
||||
"examples": [
|
||||
"作文标题",
|
||||
"我的父亲"
|
||||
],
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "Text",
|
||||
"description": "作文正文内容,及无法匹配内容",
|
||||
"required": true,
|
||||
"multiple": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
79
skills/tencent-docs/doc/doc_format/templates/general.json
Normal file
79
skills/tencent-docs/doc/doc_format/templates/general.json
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"schema": {
|
||||
"structure": "doc",
|
||||
"children": [
|
||||
{
|
||||
"structure": "Title",
|
||||
"description": "文档主标题,概括全文核心内容的短语或短句,通常5-20字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "Subtitle",
|
||||
"description": "副标题,补充说明主标题的短语或短句,通常5-20字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "Heading1",
|
||||
"description": "一级标题,概括章节主题的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading2",
|
||||
"description": "二级标题,概括小节主题的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading3",
|
||||
"description": "三级标题,概括段落主题的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading4",
|
||||
"description": "四级标题,概括细分内容的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading5",
|
||||
"description": "五级标题,概括细分内容的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading6",
|
||||
"description": "六级标题,概括细分内容的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading7",
|
||||
"description": "七级标题,概括细分内容的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading8",
|
||||
"description": "八级标题,概括细分内容的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading9",
|
||||
"description": "九级标题,概括细分内容的短语,通常3-15字,不含完整句子结构。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Text",
|
||||
"description": "正文内容,包含完整句子的叙述性段落,通常超过15字,由一个或多个完整句子组成。",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
44
skills/tencent-docs/doc/doc_format/templates/government.json
Normal file
44
skills/tencent-docs/doc/doc_format/templates/government.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"schema": {
|
||||
"structure": "doc",
|
||||
"children": [
|
||||
{
|
||||
"structure": "Content",
|
||||
"required": true,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "Title",
|
||||
"description": "公文标题",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "Addressee",
|
||||
"description": "主送机关",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "Text",
|
||||
"description": "公文正文",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading2",
|
||||
"description": "二级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "SignOff",
|
||||
"description": "签发单位",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
182
skills/tencent-docs/doc/doc_format/templates/paper.json
Normal file
182
skills/tencent-docs/doc/doc_format/templates/paper.json
Normal file
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"schema": {
|
||||
"structure": "doc",
|
||||
"children": [
|
||||
{
|
||||
"structure": "Abstract",
|
||||
"required": true,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "AbstractTitle",
|
||||
"description": "摘要标题",
|
||||
"pattern": "^摘要$",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "AbstractContent",
|
||||
"description": "摘要内容",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "Keywords",
|
||||
"description": "关键词",
|
||||
"pattern": "^关键词[::].*",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"structure": "EnAbstract",
|
||||
"required": false,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "EnAbstractTitle",
|
||||
"description": "英文摘要标题",
|
||||
"pattern": "^Abstract$",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "EnAbstractContent",
|
||||
"description": "英文摘要内容",
|
||||
"required": true,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "EnKeywords",
|
||||
"description": "英文关键词正文",
|
||||
"pattern": "^Keywords:.*",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"structure": "Toc",
|
||||
"required": false,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "TocTitle",
|
||||
"required": true,
|
||||
"multiple": false,
|
||||
"description": "目录标题",
|
||||
"pattern": "^目录$"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"structure": "Content",
|
||||
"required": false,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "Heading1",
|
||||
"description": "一级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading2",
|
||||
"description": "二级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading3",
|
||||
"description": "三级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading4",
|
||||
"description": "四级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading5",
|
||||
"description": "五级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading6",
|
||||
"description": "六级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading7",
|
||||
"description": "七级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading8",
|
||||
"description": "八级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Heading9",
|
||||
"description": "九级标题",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
},
|
||||
{
|
||||
"structure": "Text",
|
||||
"description": "正文内容",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"structure": "Reference",
|
||||
"required": true,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "ReferenceTitle",
|
||||
"description": "参考文献标题",
|
||||
"pattern": "^参考文献$",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "ReferenceContent",
|
||||
"description": "参考文献条目",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"structure": "Acknowledgement",
|
||||
"required": false,
|
||||
"multiple": false,
|
||||
"children": [
|
||||
{
|
||||
"structure": "AcknowledgementTitle",
|
||||
"description": "致谢标题",
|
||||
"pattern": "^致谢$",
|
||||
"required": true,
|
||||
"multiple": false
|
||||
},
|
||||
{
|
||||
"structure": "AcknowledgementContent",
|
||||
"description": "致谢内容",
|
||||
"required": false,
|
||||
"multiple": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
30
skills/tencent-docs/doc/entry.md
Normal file
30
skills/tencent-docs/doc/entry.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Word 文档(doc)品类操作指引
|
||||
|
||||
本目录提供 Word 文档(doc)品类的专业操作能力,包括公文、合同、通知、协议书等专业规范化文件的格式套用与美化。
|
||||
|
||||
## 功能
|
||||
|
||||
- **格式套用**: 将纯文本排版美化并导出为在线文档(Word格式)
|
||||
|
||||
## 使用场景
|
||||
|
||||
- 创建正式文档(通知、报告、公文、合同等)
|
||||
- 将纯文本转换为格式与排版美化后的 Word 文档
|
||||
|
||||
## 可用模块
|
||||
|
||||
### 格式套用模块 (`doc_format`)
|
||||
|
||||
将纯文本转换为排版美化后的文档。
|
||||
|
||||
## 工作流程
|
||||
|
||||
**执行前必须:**
|
||||
|
||||
1. **阅读相关文档(`doc/doc_format/README.md`)**
|
||||
2. **理解工作流程**
|
||||
3. **执行各步骤**
|
||||
|
||||
## 相关工具
|
||||
|
||||
使用 `tencent-docs` MCP Server 中的 `doc.*` 系列工具执行读写、美化等操作。
|
||||
Reference in New Issue
Block a user