jinhong270/ai-agent/file-summary
Claude Code and agent skill by jinhong270/ai-agent
- community
Checking that the SKILL.md file is still in the repository.
Local document summary tool. Activate when user mentions "总结文件", "帮我总结", "总结文档", "分析文档" or provides a local file path (txt/docx/pdf/xlsx/xls).
Install
npx vskill@latest install jinhong270/ai-agent/file-summarySKILL.md
The same SKILL.md was published earlier as jinhong270/ai-agent/file-summary.
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:
- Extract content:
{ "action": "extract", "file_path": "your_file_path" }→ returns plain text - 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
- Python 3.8+ (added to system environment variables)
- 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
- Place the tool files in OpenClaw's skill folder:
OpenClaw/skills/file-summary/ ├─ SKILL.md (this file) ├─ file2sum.py
- 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
- Put the
file-summaryfolder into OpenClaw'sskillsdirectory - Restart OpenClaw
- User input example:
- "帮我总结 D:\测试.pdf"
- "总结文件 D:\数据\销售表.xlsx"
Public Deployment
- Upload the
file-summaryfolder (include md/py) to a public platform (e.g. GitHub/Gitee, ClawHub) - Share the download link
- Users import via OpenClaw "Skill Market → Import from URL"
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingXiao-Q/skills/file-summary/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jinhong270/ai-agent/file-summary)