Skip to content

文件总结 File Summary & Analysis

Verified

文件总结 File Summary & Analysis — documentation and writing tool. Supports or provides, local file path, txt/docx/pdf/xlsx/xls.

715

Install

Claude Code

Add to .claude/skills/

About This Skill

  • # File Summary Tool
  • Single tool `file_summary` for local document text extraction and summary.
  • ## 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"

Use Cases

  • Summarize file contents to understand purpose without reading the full file
  • Generate descriptions of source code files for documentation
  • Create file inventories with brief descriptions for project handoffs
  • Produce changelogs by summarizing modified files
  • Build project maps by summarizing each directory's contents

Pros & Cons

Pros

  • + Saves time by providing quick file understanding without full reading
  • + Scales to summarize entire directories for project overview
  • + Output format is suitable for documentation and project maps

Cons

  • - Documentation partially in Chinese
  • - Only available on claude-code and openclaw platforms
  • - Summaries may miss nuances that only become apparent from reading the full file

Frequently Asked Questions

What does 文件总结 File Summary & Analysis do?

文件总结 File Summary & Analysis — documentation and writing tool. Supports or provides, local file path, txt/docx/pdf/xlsx/xls.

What platforms support 文件总结 File Summary & Analysis?

文件总结 File Summary & Analysis is available on Claude Code, OpenClaw.

What are the use cases for 文件总结 File Summary & Analysis?

Summarize file contents to understand purpose without reading the full file. Generate descriptions of source code files for documentation. Create file inventories with brief descriptions for project handoffs.

Stay Updated on Agent Skills

Get weekly curated skills + safety alerts