← 返回
数据分析 中文

文件总结 File Summary & Analysis

Local document summary tool. Activate when user mentions "总结文件", "帮我总结", "总结文档", "分析文档" or provides a local file path (txt/docx/pdf/xlsx/xls).
Local document summary tool. Activate when user mentions "总结文件", "帮我总结", "总结文档", "分析文档" or provides a local file path (txt/docx/pdf/xlsx/xls).
leonthepro2012
数据分析 clawhub v1.0.0 1 版本 99745.6 Key: 无需
★ 1
Stars
📥 3,509
下载
💾 509
安装
1
版本
#analysis#document#docx#file#latest#multilingual#pdf#python#summary#txt#xls#xlsx

概述

File Summary Tool

Single tool file_summary for local document text extraction and summary.

Token Extraction

From user input 帮我总结 D:\测试.pdffile_path = D:\测试.pdf

Actions

Extract Document Content

{ "action": "extract", "file_path": "D:\\测试.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

{ "action": "summary", "file_path": "D:\\测试.pdf" }

Returns: Concise summary of the document content (integrated with OpenClaw LLM)

Workflow

To summarize a local document:

  1. Extract content: { "action": "extract", "file_path": "your_file_path" } → returns plain text
  2. Generate summary: OpenClaw LLM summarizes 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

  1. 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. User input example:
    • "帮我总结 D:\测试.pdf"
    • "总结文件 D:\数据\销售表.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"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 00:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,932
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 269 📥 56,910
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,104