LeonThePro

文件总结 File Summary & Analysis

Knowledgev1.0.0
By LeonTheProUpdated 2026-05-11file-summary@clawhub_leonthepro2012/file-summary
SummarizationDocument Q&A#总结文档#Document#PDF#总结

According to AlphaMoat, as of 2026-09, 文件总结 File Summary & Analysis has 4,787 downloads and 1 stars — ranked #1,972 of 5,078 AI skills overall, and #182 of 442 in Knowledge.

Installs
509
Downloads
4.8K
Stars
1
Overall Rank
#1,972
Top 39% overall · Top 42% in Knowledge
PlatformInstallsDownloadsStarsComments
ClawHub ↗1404.2K1-
SkillHub ↗5094.8K1—

Platforms count differently and update at different times.

What this skill does

The skill provides one file_summary tool and works with txt, docx, pdf, xlsx and xls files in multiple formats: the extract action returns the plain text of the document, the summary action returns a concise summary produced by the OpenClaw LLM, and the workflow extracts the text first and then lets the OpenClaw LLM summarize it. Running it needs a Python 3.8+ environment plus the parser packages the script installs by itself - python-docx, pypdf, openpyxl and xlrd==1.2.0 - and it is enabled by turning on file_summary and python under channels.local.tools. On permissions, the user has to grant local file read access, while Python execution needs no special system permissions. Two risks are that the script reads local documents selected by the user and passes the extracted text into an LLM summarization flow, and it may auto-install Python parser packages whose versions are not pinned; its mitigations are to use only files approved for LLM processing, to prefer deployments that require explicit confirmation before reading or summarizing, and to install reviewed, pinned dependencies through a controlled environment or to disable automatic package installation in managed deployments.

Profile published 2026-10-29

What you can do with it

  • Extract the plain text of a local document for further processing
  • Produce a concise summary of a local document
  • Summarize a document from a Chinese or English prompt

When to use it

  • When the user says summarize this document or asks for a document summary
  • When the user provides a path to a local document
  • When document text should be handed to the OpenClaw LLM for summarization

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Summarize D:\测试.pdf
Summarize the file D:\数据\销售表.xlsx
Analyze this document and give me the key points

Monthly Trend

Downloads4.8K
2.3K3.6K5.0K2026-03 · Downloads 2.5K2026-05 · Downloads 3.5K2026-06 · Downloads 3.7K2026-07 · Downloads 4.0K2026-08 · Downloads 4.3K2026-09 · Downloads 4.8K26-0326-09
Stars1
0112026-03 · Stars -2026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.8K—1
2026-084.3K+6.9%1
2026-074.0K+9.2%1
2026-063.7K+6.8%1
2026-053.5K—1
2026-032.5K—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.3 KB · ClawHub v1.0.0
---
name: file-summary
description: |
  Local document summary tool. Activate when user mentions "总结文件", "帮我总结", "总结文档", "分析文档" or provides a local file path (txt/docx/pdf/xlsx/xls).
---

# File Summary Tool

Single tool `file_summary` for local document text extraction and summary.

Show all (81 lines)
## Token Extraction

From user input `帮我总结 D:\测试.pdf` → `file_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
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. 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"

Popular in Knowledge

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.