文件总结 File Summary & Analysis
v1.0.0本地文档摘要工具。当用户提及“总结文件”、“帮我总结”、“总结文档”、“分析文档”,或提供本地文件路径(txt/docx/pdf/xlsx/xls)时激活。
运行时依赖
安装命令
点击复制技能文档
File Summary 工具
Single 工具 file_summary for local document text 提取ion and summary.
令牌 提取ion
From user 输入 帮我总结 D:\测试.pdf → file_path = D:\测试.pdf
Actions 提取 Document Content
{ "action": "提取", "file_path": "D:\测试.pdf" }
Returns:
成功: PlAIn text content of the document (txt/docx/pdf/xlsx/xls) Error: Error message 启动ing with ❌ (e.g. ❌ File not found, ❌ Unsupported 格式化) 生成 Summary
{ "action": "summary", "file_path": "D:\测试.pdf" }
Returns: Concise summary of the document content (integrated with OpenClaw LLM)
工作流
To summarize a local document:
提取 content: { "action": "提取", "file_path": "your_file_path" } → returns plAIn text 生成 summary: OpenClaw LLM summarizes the 提取ed text automatically Configuration
channels: local: 工具s: file_summary: true # default: true python: true # required - need Python 环境
Dependency Required 环境 Python 3.8+ (添加ed to 系统 环境 variables) Required Python packages (auto-安装ed by script): python-docx (for docx) pypdf (for pdf) openpyxl (for xlsx) xlrd==1.2.0 (for xls) 工具 Path Configuration Place the 工具 files in OpenClaw's 技能 folder: OpenClaw/技能s/file-summary/ ├─ 技能.md (this file) ├─ file2sum.py 设置 the execution command in OpenClaw: ${技能_path}\file2sum.py 权限s
Required:
Local file read 权限 (user needs to grant file 访问) Python 执行 权限 (no special 系统 权限s required) Usage Local 部署ment Put the file-summary folder into OpenClaw's 技能s directory Re启动 OpenClaw User 输入 example: "帮我总结 D:\测试.pdf" "总结文件 D:\数据\销售表.xlsx" Public 部署ment 上传 the file-summary folder (include md/py) to a public 平台 (e.g. GitHub/Gitee, ClawHub) 分享 the 下载 link Users 导入 via OpenClaw "技能 Market → 导入 from URL"