Shihao Jiang (Zac)

DOCX Toolkit

Officev1.0.0
By Shihao Jiang (Zac)Updated 2026-05-11docx-toolkit@clawhub_zacjiang/docx-toolkit
Documents#Docx#Cjk#Doc#Extract#Images

According to AlphaMoat, as of 2026-09, DOCX Toolkit has 2,944 downloads and 0 stars — ranked #3,770 of 5,078 AI skills overall, and #278 of 435 in Office.

Installs
179
Downloads
2.9K
Stars
-
Overall Rank
#3,770
Top 75% overall · Top 64% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗361.3K--
SkillHub ↗1792.9K-—

Platforms count differently and update at different times.

What this skill does

The documentation covers DOCX and legacy DOC files and exports paragraphs, tables, and embedded images while preserving structure. Extracted output may copy sensitive content from the original; store inputs and outputs in restricted locations and manage dependencies in an isolated environment.

Profile published 2026-10-27

What you can do with it

  • Extract document text and tables
  • Extract embedded images for review
  • Prepare extracted text for downstream analysis

When to use it

  • When analyzing or migrating Word document content
  • When authorized to process the document and able to protect extracted output

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Extract text, tables, and images from this authorized document and state where the output will be stored.

Monthly Trend

Downloads2.9K
4871.8K3.1K2026-03 · Downloads 6692026-05 · Downloads 1.7K2026-06 · Downloads 1.9K2026-07 · Downloads 2.1K2026-08 · Downloads 2.3K2026-09 · Downloads 2.9K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.9K—-
2026-082.3K+8.1%-
2026-072.1K+14.0%-
2026-061.9K+11.6%-
2026-051.7K—-
2026-03669—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.3 KB · ClawHub v1.0.0
---
name: docx-toolkit
description: Extract text, tables, and images from .docx and legacy .doc files. Handles large documents, CJK text, and complex table structures. Includes deduplication and filtering for extracted images.
author: zacjiang
version: 1.0.0
tags: docx, doc, word, extract, text, tables, images, document, office, CJK, chinese
---

# DOCX Toolkit
Show all (68 lines)
A complete toolkit for processing Microsoft Word documents (.docx and legacy .doc formats).

## Capabilities

### 1. Text + Table Extraction (.docx)
```bash
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)
```bash
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)
```bash
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 <5KB by default)
- Sequential renaming (img_001.png, img_002.jpg, etc.)

### 4. Image Compression
```bash
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:
```bash
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

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.