LeonThePro

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

知识管理v1.0.4
作者:LeonThePro更新于 2026-05-11共 4 个版本 · 最新版本发布于 2026-03-04file-summary-zongjie@clawhub_leonthepro2012/file-summary-zongjie
摘要总结文档问答#Document Analysis#Privacy#PDF#Summarize#总结

据 AlphaMoat 统计,截至 2026-09,文档内容总结 Summary & Analysis txt/docx/pdf/xlsx/xls 累计下载 3,261 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,494 位,在「知识管理」分类(442 个)中排名第 300 位。

累计安装
412
累计下载
3,261
星标
1
全站排名
#3,494
全站前 69% · 「知识管理」前 68%
平台累计安装累计下载星标评论
ClawHub ↗341,329--
SkillHub ↗4123,2611—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

支持文本、Word、PDF 和 Excel 文件;提取依赖 Python 及对应格式包,需获得本地文件读取和 Python 执行权限。提取内容会发送给模型,文档明确不用于敏感或机密文件。

资料发布于 2026-10-27

可以用来做什么

  • 总结获准读取的本地文档或分析要点

什么时候用

  • 支持格式的本地文件允许共享给所配置语言模型时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

提取这份非机密文档,概括要点并说明提取错误。

月度数据趋势

累计下载3,261
6392,0473,4552026-03 · 累计下载 8332026-05 · 累计下载 1,3952026-06 · 累计下载 1,6942026-07 · 累计下载 2,1212026-08 · 累计下载 2,5212026-09 · 累计下载 3,26126-0326-09
星标1
0112026-03 · 星标 -2026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,261—1
2026-082,521+18.9%1
2026-072,121+25.2%1
2026-061,694+21.4%1
2026-051,395—1
2026-03833—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.5 KB · ClawHub v1.0.4
---
name: file-summary
description: |
  local document summary & analysis tool. 
  triggers: 
  帮我总结, 总结文件, 分析文档, 分析总结, 总结一下, 分析一下
  summarize for me, analyze for me, summarize the file, analyze the document, file summary, document analysis
  Supported formats: txt, docx, pdf, xlsx, xls
  ⚠️ Privacy Note: Extracted content will be sent to OpenClaw LLM for summary/analysis — DO NOT use with sensitive/confidential files.
---
展开全部(共 92 行)
# 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:\data\sales.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"

「知识管理」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。