{"skill":{"slug":"file-summary-zongjie","displayName":"文档内容总结 Summary & Analysis txt/docx/pdf/xlsx/xls","summary":"local document summary & analysis tool. triggers: 帮我总结, 总结文件, 分析文档, 分析总结, 总结一下, 分析一下 summarize for me, analyze for me, summarize the file, analyze the docume...","description":"---\r\nname: file-summary\r\ndescription: |\r\n  local document summary & analysis tool. \r\n  triggers: \r\n  帮我总结, 总结文件, 分析文档, 分析总结, 总结一下, 分析一下\r\n  summarize for me, analyze for me, summarize the file, analyze the document, file summary, document analysis\r\n  Supported formats: txt, docx, pdf, xlsx, xls\r\n  ⚠️ Privacy Note: Extracted content will be sent to OpenClaw LLM for summary/analysis — DO NOT use with sensitive/confidential files.\r\n---\r\n\r\n# File Summary & Analysis Tool (文件总结与分析工具)\r\n\r\nA universal tool for extracting text from local documents and generating summaries/analysis, supporting both Chinese and English trigger words.\r\n\r\n## Token Extraction (参数提取)\r\n\r\n### Chinese Input Example (中文示例)\r\nFrom user input `帮我总结 D:\\测试.pdf` → `file_path` = `D:\\测试.pdf`\r\n\r\n### English Input Example (英文示例)\r\nFrom user input `summarize for me C:\\test.pdf` → `file_path` = `C:\\test.pdf`\r\n\r\n## Actions (操作指令)\r\n\r\n### Extract Document Content (提取文档内容)\r\n{ \"action\": \"extract\", \"file_path\": \"D:\\\\测试.pdf\" }\r\n{ \"action\": \"extract\", \"file_path\": \"C:\\\\test.pdf\" }\r\n\r\nReturns (返回结果):\r\n- Success: Plain text content of the document (txt/docx/pdf/xlsx/xls)\r\n- Error: Error message starting with ❌ (e.g. ❌ File not found, ❌ Unsupported format)\r\n\r\n### Generate Summary/Analysis (生成总结/分析)\r\n{ \"action\": \"summary\", \"file_path\": \"D:\\\\测试.pdf\" }\r\n{ \"action\": \"analysis\", \"file_path\": \"C:\\\\test.pdf\" }\r\n\r\nReturns (返回结果):\r\n- Summary: Concise key-point summary of the document content (integrated with OpenClaw LLM)\r\n- Analysis: In-depth analysis of the document content (integrated with OpenClaw LLM)\r\n\r\n## Workflow (工作流程)\r\n\r\nTo summarize/analyze a local document:\r\n1. Extract content: `{ \"action\": \"extract/analysis\", \"file_path\": \"your_file_path\" }` → returns plain text\r\n2. Generate result: OpenClaw LLM summarizes/analyzes the extracted text automatically\r\n\r\n## Configuration (配置项)\r\n\r\nchannels:\r\n  local:\r\n    tools:\r\n      file_summary: true # default: true\r\n      python: true # required - need Python environment\r\n\r\n## Dependency (依赖环境)\r\n\r\n### Required Environment (必备环境)\r\n1. Python 3.8+ (added to system environment variables)\r\n2. Required Python packages (auto-installed by script):\r\n   - python-docx (for docx)\r\n   - pypdf (for pdf)\r\n   - openpyxl (for xlsx)\r\n   - xlrd==1.2.0 (for xls)\r\n\r\n### Tool Path Configuration (工具路径配置)\r\n1. Place the tool files in OpenClaw's skill folder:\r\n   OpenClaw/skills/file-summary/\r\n   ├─ SKILL.md (this file)\r\n   ├─ file2sum.py\r\n2. Set the execution command in OpenClaw:\r\n   ${skill_path}\\\\file2sum.py\r\n\r\n## Permissions (权限要求)\r\n\r\nRequired (必备):\r\n- Local file read permission (user needs to grant file access)\r\n- Python execute permission (no special system permissions required)\r\n\r\n## Usage (使用方法)\r\n\r\n### Local Deployment (本地部署)\r\n1. Put the `file-summary` folder into OpenClaw's `skills` directory\r\n2. Restart OpenClaw\r\n3. Input Examples (输入示例):\r\n   - Chinese (中文): \"帮我总结 D:\\测试.pdf\", \"分析文档 C:\\数据\\销售表.xlsx\"\r\n   - English (英文): \"summarize for me C:\\test.pdf\", \"analyze the document D:\\data\\sales.xlsx\"\r\n\r\n### Public Deployment (公开发布)\r\n1. Upload the `file-summary` folder (include md/py) to a public platform (e.g. GitHub/Gitee, ClawHub)\r\n2. Share the download link\r\n3. Users import via OpenClaw \"Skill Market → Import from URL\"","topics":["Document Analysis","Privacy","PDF","Summarize","总结"],"tags":{"latest":"1.0.4","Python":"1.0.2","analysis":"1.0.2","document":"1.0.2","docx":"1.0.2","file":"1.0.2","multilingual":"1.0.2","pdf":"1.0.2","summary":"1.0.2","txt":"1.0.2","xls":"1.0.2","xlsx":"1.0.2"},"stats":{"comments":0,"downloads":883,"installsAllTime":34,"installsCurrent":2,"stars":0,"versions":4},"createdAt":1772658724330,"updatedAt":1778491721623},"latestVersion":{"version":"1.0.4","createdAt":1772661476972,"changelog":"- Updated the skill description to be more concise and moved all trigger words under a single \"triggers\" field.\n- Removed redundant \"Multi-language\" wording from the description.\n- No functional changes; files remain unchanged.","license":null},"metadata":null,"owner":{"handle":"leonthepro2012","userId":"s17d7r3gv53ygf2jwjthmsd27d8855hw","displayName":"LeonThePro","image":"https://avatars.githubusercontent.com/u/88210194?v=4"},"moderation":null}