数据分析与咨询
#excel
office-suite
通用 Office 三件套(Word/Excel/PPT)处理工具。支持 .docx/.xlsx/.pptx 文件的读取、创建、修改和内容提取。当用户需要操作 Word 文档、Excel 表格或 PowerPoint 演示文稿时使用此 skill。
DeepseekModel
官方收录技能
质量 良好 · 48
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=zhu-lord-kimi-claw-backup-skills-office-suite-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name office-suite description 通用 Office 三件套(Word/Excel/PPT)处理工具。支持 .docx/.xlsx/.pptx 文件的读取、创建、修改和内容提取。当用户需要操作 Word 文档、Excel 表格或 PowerPoint 演示文稿时使用此 skill。 Office 三件套处理 Skill 此 Skill 提供对 Microsoft Office 三件套(Word、Excel、PowerPoint)的统一处理能力。 支持的操作 文件类型 扩展名 支持的操作 Word .docx 创建、读取、修改、表格操作 Excel .xlsx, .xlsm 创建、读取、修改、单元格操作 PowerPoint .pptx 创建、读取、修改、幻灯片管理 依赖安装 使用前请确保已安装 Python 依赖: pip install python-docx openpyxl python-pptx 使用方式 脚本位置 主脚本: scripts/office_handler.py 命令行用法 # Word - 创建文档 python3 scripts/office_handler.py -- type word --action create --output report.docx \ --data '{"content": [{"type": "heading", "text": "报告", "level": 1}, {"type": "paragraph", "text": "这是正文"}]}' # Word - 读取文档 python3 scripts/office_handler.py -- type word --action read --input report.docx # Excel - 创建表格 python3 scripts/office_handler.py -- type excel --action create --output data.xlsx \ --data '{"sheet_name": "Sheet1", "headers": ["姓名", "年龄"], "rows": [["张三", 25], ["李四", 30]]}' # Excel - 读取表格 python3 scripts/office_handler.py -- type excel --action read --input data.xlsx # PPT - 创建演示文稿 python3 scripts/office_handler.py -- type ppt --action create --output presentation.pptx \ --data '{"slides": [{"layout": 0, "title": "标题页", "content": "副标题"}]}' # PPT - 读取演示文稿 python3 scripts/office_handler.py -- type ppt --action read --input presentation.pptx 数据格式参考 Word 内容结构 { "content" : [ { "type" : "heading" , "text" : "一级标题" , "level" : 1 } , { "type" : "heading" , "text" : "二级标题" , "level" : 2 } , { "type" : "paragraph" , "text" : "普通段落文本" } , { "type" : "table" , "rows" : 3 , "cols" : 2 , "data" : [ [ "A" , "B" ] , [ "C" , "D" ] , [ "E" , "F" ] ] } ] } Excel 数据格式 { "sheet_name" : "工作表名称" , "headers" : [ "列1" , "列2" , "列3" ] , "rows" : [ [ "数据1" , "数据2" , "数据3" ] , [ "数据4" , "数据5" , "数据6" ] ] } PPT 幻灯片格式 { "slides" : [ { "layout" : 0 , "title" : "标题幻灯片" } , { "layout" : 1 , "title" : "内容页" , "content" : "要点1\n要点2" } ] } 自动文件类型检测 当不指定 --type 时,脚本会根据文件扩展名自动检测类型: .docx → Word .xlsx , .xlsm → Excel .pptx → PowerPoint 高级用法 批量处理多个文件 参考 references/batch_examples.md 了解批量处理模式。 Excel 公式和样式 参考 references/excel_advanced.md 了解公式、图表和样式设置。 Word 模板和样式 参考 references/word_advanced.md 了解模板使用和复杂格式。 限制说明 不支持 .doc 格式 :仅支持 .docx(Word 2007+) 不支持 .ppt 格式 :仅支持 .pptx(PowerPoint 2007+) 宏文件 :.xlsm 可以读取但无法执行或修改宏代码 复杂格式 :某些高级格式(如 Word 的修订模式)可能无法完全保留 故障排除 模块未找到 pip install python-docx openpyxl python-pptx 中文显示问题 确保系统已安装中文字体,或在代码中指定字体。 文件被占用 关闭正在使用该文件的 Office 应用程序后再操作。
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |