← 返回 Skills 市场
onlyloveher

Docx Toolkit

作者 onlyloveher · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
106
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install docx-toolkit-zhouli
功能描述
Extract text, tables, and images from .docx and legacy .doc files. Handles large documents, CJK text, and complex table structures. Includes deduplication an...
使用说明 (SKILL.md)

DOCX Toolkit

A complete toolkit for processing Microsoft Word documents (.docx and legacy .doc formats).

Capabilities

1. Text + Table Extraction (.docx)

python3 {baseDir}/scripts/extract_text.py input.docx output.txt

Extracts all paragraphs and tables with structure preserved. Tables are formatted as pipe-delimited rows for easy parsing.

2. Text Extraction (Legacy .doc)

python3 {baseDir}/scripts/extract_doc_text.py input.doc output.txt

Handles legacy OLE2 .doc format using olefile. Extracts Unicode text from the WordDocument stream.

3. Image Extraction (.docx)

python3 {baseDir}/scripts/extract_images.py input.docx output_dir/

Extracts all embedded images with:

  • Automatic deduplication (MD5 hash comparison)
  • Size filtering (skips tiny icons \x3C5KB by default)
  • Sequential renaming (img_001.png, img_002.jpg, etc.)

4. Image Compression

python3 {baseDir}/scripts/resize_images.py input_dir/ output_dir/ [--max-width 1024]

Batch resize/compress images for API processing (saves 50-70% on vision API costs).

Dependencies

  • Python 3.6+
  • python-docx — for .docx processing
  • olefile — for legacy .doc processing
  • Pillow — for image resizing (optional, only needed for resize script)

Install:

pip3 install python-docx olefile Pillow

Use Cases

  • Document analysis: Extract text for AI review/summarization
  • Migration: Pull content from Word docs into other formats
  • Image audit: Extract and review all embedded images
  • Cost optimization: Compress images before sending to vision APIs
  • Batch processing: Process multiple documents in a pipeline

Notes

  • Large .doc files (>200MB) may require significant RAM for olefile processing
  • Image extraction preserves original format (png/jpg/gif/etc.)
  • Deduplication catches exact duplicates; near-duplicates still pass through
  • CJK (Chinese/Japanese/Korean) text is fully supported in both extractors
安全使用建议
This skill appears coherent and its code is consistent with the described functionality, but take normal precautions before running bundled scripts: run them in a sandboxed/isolated environment or virtualenv, install Python package dependencies from official PyPI sources, and avoid processing sensitive/confidential documents unless you trust the environment—extracted text and images are written to disk. Note there is no required credential access and no network endpoints in the code, but the package metadata/source provenance is limited (registry/source marked unknown), so prefer running locally with restricted permissions and inspect files before use.
功能分析
Type: OpenClaw Skill Name: docx-toolkit-zhouli Version: 1.0.0 The docx-toolkit is a legitimate utility for extracting text, tables, and images from Microsoft Word documents (.docx and .doc). The scripts (extract_text.py, extract_doc_text.py, extract_images.py, and resize_images.py) use standard libraries like python-docx, olefile, and Pillow to perform their stated functions. While the image extraction script includes logic to categorize images based on surrounding text context (e.g., identifying contracts or certificates), this behavior is consistent with the toolkit's stated purpose of document analysis and does not exhibit signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description (docx/doc extraction, image dedup/compression) matches the included scripts and declared Python dependencies (python-docx, olefile, Pillow). There are no unrelated credentials, binaries, or config paths requested.
Instruction Scope
SKILL.md instructs the agent to run local Python scripts on user-provided files and directories. The scripts operate on the given input files, read/write local output paths, and do not reference external endpoints, extra environment variables, or unrelated system files.
Install Mechanism
No install spec is provided (instruction-only with bundled scripts). Dependencies are standard Python packages installable via pip. No remote downloads or archive extraction from third-party URLs are performed by the skill itself.
Credentials
The skill declares no required environment variables or credentials. The scripts use only local filesystem access and in-memory processing; requested resources (Python packages) are proportional to the task.
Persistence & Privilege
always:false and no indication the skill attempts to persist or modify other skills or system-wide agent settings. It does not request elevated or permanent platform privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install docx-toolkit-zhouli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /docx-toolkit-zhouli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of docx-toolkit — a comprehensive tool for extracting content from Word documents. - Extracts text, tables (with structure), and images from both .docx and legacy .doc files - Supports large documents and complex/CJK (Chinese, Japanese, Korean) text - Automatic deduplication and filtering for extracted images - Includes batch image resize/compression to reduce vision API costs - Simple command-line usage with support for pipelines and automation
元数据
Slug docx-toolkit-zhouli
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Docx Toolkit 是什么?

Extract text, tables, and images from .docx and legacy .doc files. Handles large documents, CJK text, and complex table structures. Includes deduplication an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 106 次。

如何安装 Docx Toolkit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install docx-toolkit-zhouli」即可一键安装,无需额外配置。

Docx Toolkit 是免费的吗?

是的,Docx Toolkit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Docx Toolkit 支持哪些平台?

Docx Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Docx Toolkit?

由 onlyloveher(@onlyloveher)开发并维护,当前版本 v1.0.0。

💬 留言讨论