{"skill":{"slug":"file-summary","displayName":"文件总结 File Summary & Analysis","summary":"Local document summary tool. Activate when user mentions \"总结文件\", \"帮我总结\", \"总结文档\", \"分析文档\" or provides a local file path (txt/docx/pdf/xlsx/xls).","description":"---\r\nname: file-summary\r\ndescription: |\r\n  Local document summary tool. Activate when user mentions \"总结文件\", \"帮我总结\", \"总结文档\", \"分析文档\" or provides a local file path (txt/docx/pdf/xlsx/xls).\r\n---\r\n\r\n# File Summary Tool\r\n\r\nSingle tool `file_summary` for local document text extraction and summary.\r\n\r\n## Token Extraction\r\n\r\nFrom user input `帮我总结 D:\\测试.pdf` → `file_path` = `D:\\测试.pdf`\r\n\r\n## Actions\r\n\r\n### Extract Document Content\r\n\r\n{ \"action\": \"extract\", \"file_path\": \"D:\\\\测试.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\r\n\r\n{ \"action\": \"summary\", \"file_path\": \"D:\\\\测试.pdf\" }\r\n\r\nReturns: Concise summary of the document content (integrated with OpenClaw LLM)\r\n\r\n## Workflow\r\n\r\nTo summarize a local document:\r\n1. Extract content: `{ \"action\": \"extract\", \"file_path\": \"your_file_path\" }` → returns plain text\r\n2. Generate summary: OpenClaw LLM summarizes 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. User input example:\r\n   - \"帮我总结 D:\\测试.pdf\"\r\n   - \"总结文件 D:\\数据\\销售表.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\"","tags":{"Python":"1.0.0","analysis":"1.0.0","document":"1.0.0","docx":"1.0.0","file":"1.0.0","latest":"1.0.0","multilingual":"1.0.0","pdf":"1.0.0","summary":"1.0.0","txt":"1.0.0","xls":"1.0.0","xlsx":"1.0.0"},"stats":{"comments":0,"downloads":3591,"installsAllTime":51,"installsCurrent":51,"stars":1,"versions":1},"createdAt":1772657474557,"updatedAt":1778491721623},"latestVersion":{"version":"1.0.0","createdAt":1772657474557,"changelog":"首次发布：支持本地txt/docx/pdf/xlsx/xls文件内容提取与总结，Python环境自动安装依赖库，对接OpenClaw聊天调用，输入「帮我总结 + 文件路径」即可一键使用\nInitial release: Multi-language local document summary & analysis tool. Supports Chinese/English triggers, extracts content from txt/docx/pdf/xlsx/xls, auto-installs Python dependencies, and integrates with OpenClaw chat.","license":null},"metadata":null,"owner":{"handle":"leonthepro2012","userId":"s17d7r3gv53ygf2jwjthmsd27d8855hw","displayName":"LeonThePro","image":"https://avatars.githubusercontent.com/u/88210194?v=4"},"moderation":null}