当前位置: 首页 > Skill >

文档内容总结 Summary & Analysis txt/docx/pdf/xlsx/xls

文档内容总结 Summary & Analysis txt/docx/pdf/xlsx/xls

1.0.4 2026.11.25 浏览:521
获取Skill文件查看使用说明
作者:叶安许可证:
本文目录展开

File Summary & Analysis Tool (文件总结与分析工具)

A universal tool for extracting text from local documents and generating summaries/analysis, supporting both Chinese and English trigger words.

Token Extraction (参数提取)

Chinese Input Example (中文示例)

From user input 帮我总结 D:测试.pdf → file_path = D:测试.pdf

English Input Example (英文示例)

From user input summarize for me C:test.pdf → file_path = C:test.pdf

Actions (操作指令)

Extract Document Content (提取文档内容)

{ "action": "extract", "file_path": "D:测试.pdf" } { "action": "extract", "file_path": "C:test.pdf" }

Returns (返回结果):

  • Success: Plain text content of the document (txt/docx/pdf/xlsx/xls)
  • Error: Error message starting with ❌ (e.g. ❌ File not found, ❌ Unsupported format)

Generate Summary/Analysis (生成总结/分析)

{ "action": "summary", "file_path": "D:测试.pdf" } { "action": "analysis", "file_path": "C:test.pdf" }

Returns (返回结果):

  • Summary: Concise key-point summary of the document content (integrated with OpenClaw LLM)
  • Analysis: In-depth analysis of the document content (integrated with OpenClaw LLM)

Workflow (工作流程)

To summarize/analyze a local document:

  1. Extract content: { "action": "extract/analysis", "file_path": "your_file_path" } → returns plain text
  2. Generate result: OpenClaw LLM summarizes/analyzes the extracted text automatically

Configuration (配置项)

channels: local: tools: file_summary: true # default: true python: true # required - need Python environment

Dependency (依赖环境)

Required Environment (必备环境)

  1. Python 3.8+ (added to system environment variables)
  2. Required Python packages (auto-installed by script):
    • python-docx (for docx)
    • pypdf (for pdf)
    • openpyxl (for xlsx)
    • xlrd==1.2.0 (for xls)

Tool Path Configuration (工具路径配置)

  1. Place the tool files in OpenClaw's skill folder: OpenClaw/skills/file-summary/ ├─ SKILL.md (this file) ├─ file2sum.py
  2. Set the execution command in OpenClaw: ${skill_path}file2sum.py

Permissions (权限要求)

Required (必备):

  • Local file read permission (user needs to grant file access)
  • Python execute permission (no special system permissions required)

Usage (使用方法)

Local Deployment (本地部署)

  1. Put the file-summary folder into OpenClaw's skills directory
  2. Restart OpenClaw
  3. Input Examples (输入示例):
    • Chinese (中文): "帮我总结 D:测试.pdf", "分析文档 C:数据销售表.xlsx"
    • English (英文): "summarize for me C:test.pdf", "analyze the document D:datasales.xlsx"

Public Deployment (公开发布)

  1. Upload the file-summary folder (include md/py) to a public platform (e.g. GitHub/Gitee, ClawHub)
  2. Share the download link
  3. Users import via OpenClaw "Skill Market → Import from URL"

相关文章

更多
document.execCommand() 命令详解与使用限制

document.execCommand 是用于在文档中执行编辑命令的 JavaScript 方法,支持复制、粘贴、格式化等丰富文本操作。该方法在 Firefox 等现代浏览器中支持度较差,许多命令如 BlockDirLTR、JustifyFull 等尚未支持。常用命令包括 Bold、Italic、CreateLink、Copy、Cut、Paste 等,可控制字体、颜色、对齐及插入图片链接等元素。使用时需注意浏览器兼容性差异,部分功能仅在 IE 或旧版浏览器中有效。

2026.01.11 946
document.execCommand 命令参数详解

document.execCommand 方法通过不同的 command 参数控制文档的编辑行为。该 API 支持多种格式化操作,如 Bold、Italic 和 Underline 切换样式,以及 Copy、Cut、Paste 等剪贴板管理功能。此外,它还允许插入链接、书签、图像及各类表单控件,并处理对齐、缩进和列表格式。部分高级或特定于旧版浏览器的功能目前尚未得到支持。

2026.03.27 710
C# 中使用iTextSharp组件创建PDF的简单方法

本文介绍在C#项目中利用iTextSharp库生成PDF文件的具体步骤。首先需将iTextSharp.dll引入bin目录并添加命名空间引用,随后通过实例化Document对象设置页面尺寸,并使用PdfWriter指定输出路径。关键步骤包括在打开文档前配置作者、标题等元数据,以及通过BaseFont加载本地字体(如黑体)以解决中文显示问题,最终写入段落内容并关闭流。

2025.09.10 687
JavaScript操作Cookie:创建、读取、修改与删除详解

Cookie是存储在用户电脑上的文本文件,用于解决服务端无法记录客户端信息的问题。本文介绍如何利用JavaScript的document.cookie属性进行Cookie的创建、读取、修改和删除操作。通过设置过期时间、路径等参数,以及编写setCookie、getCookie和removeCookie函数,开发者可以灵活管理用户会话数据。

2025.03.31 657
JavaScript document.execCommand() 常用命令详解

document.execCommand 是 JavaScript 中用于在文档或选中区域执行编辑命令的接口。本文整理了该方法的常用参数,涵盖文本格式化(如粗体、斜体)、内容插入(如图片、链接、列表)、剪贴板操作(复制、粘贴)以及对齐方式等核心功能。部分高级或特定于浏览器的命令目前尚未得到广泛支持。

2025.02.19 463
解决SoapFault (looks like we got no XML document)报错

在调试项目时遇到SoapFault异常,提示looks like we got no XML document。该问题通常由环境配置缺失引起,只需在PHP配置文件中启用php_soap扩展模块并重启Apache服务器即可恢复正常。

2026.03.18 410
Skill 文件
  • SKILL.md
    • File Summary & Analysis Tool (文件总结与分析工具)
    • Token Extraction (参数提取)
      • Chinese Input Example (中文示例)
      • English Input Example (英文示例)
    • Actions (操作指令)
      • Extract Document Content (提取文档内容)
      • Generate Summary/Analysis (生成总结/分析)
    • Workflow (工作流程)
    • Configuration (配置项)
    • Dependency (依赖环境)
      • Required Environment (必备环境)
      • Tool Path Configuration (工具路径配置)
    • Permissions (权限要求)
    • Usage (使用方法)
      • Local Deployment (本地部署)
      • Public Deployment (公开发布)
  • 项目或源文件

相关 Skill

更多
Excel-to-PDF Excel-to-PDF Convert Excel (.xlsx) sign-in sheets and rosters to print-ready A4 PDFs with Chinese font support. Use when the user needs to (1) convert an Excel table/roster/sign-in sheet to PDF for printing, (2) generate A4 PDF from .xlsx with table formatting, (3) batch export Excel sheets to PDF with Chinese text. Triggers on requests like "turn this Excel into PDF", "print this table as PDF", "convert xlsx to pdf for printing", "generate a printable PDF from this spreadsheet".
GI Excel PDF Process GI Excel PDF Process 处理Excel和PDF文件——提取数据、解析表格、生成报告。适用于处理.xlsx、.xls、.csv、.pdf文件,或用户提及电子表格...
PDF to Excel PDF to Excel 将PDF中的表格和文本提取到Excel工作簿(XLSX),每页对应一个工作表。
pdf-ppt-docx-xlsx-tools pdf-ppt-docx-xlsx-tools 文档格式转换工具集,支持 PDF、PPTX、DOCX、XLSX 四种格式互转及衍生操作(转图片、合并、拆分、提取文本/表格、加水印等)。用于文档格式转换、PDF 处理及 Office 文件操作。
PDF 表格 OCR 识别转 Excel PDF 表格 OCR 识别转 Excel 调用腾讯云 OCR 识别 PDF 中的银行流水/表格,智能映射到指定 Excel 模板列