DOCX Compare / Duplicate Check for Openclaw

An automated tool to identify duplicate text paragraphs and images between two Microsoft Word documents using fuzzy matching and MD5 hashing.

zmz209
v1.0.2
Apr 30, 2026
0
759
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install docx-compare

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install docx-compare using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is DOCX Compare / Duplicate Check?

This skill provides a robust solution for comparing two Word documents (.docx) to identify overlapping content. By leveraging advanced matching algorithms, it detects exact string matches, fuzzy text similarities via difflib, and identical images through MD5 checksums. It is an essential utility within the Openclaw Skills ecosystem for developers and content reviewers who need to track version changes, prevent plagiarism, or audit media assets across large document sets without manual inspection.

DOCX Compare / Duplicate Check Use Cases

  • Comparing different versions of a legal contract or technical manual to identify revisions.
  • Detecting plagiarism or content overlap in academic or professional reports.
  • Identifying and consolidating duplicate images across multiple project documents.
  • Auditing document sets for consistency and redundancy during archival or migration processes.

How DOCX Compare / Duplicate Check Works

  1. The user provides two .docx files and specifies an optional output directory.
  2. The script parses the internal XML structure of both documents to extract text paragraphs and embedded media objects.
  3. Text content is normalized and compared using exact matching and a configurable fuzzy threshold (default 95%).
  4. Images are processed using MD5 hashing to find binary-identical files, regardless of their filenames within the document container.
  5. The system generates annotated versions of the original documents with highlighted text and image comments, alongside a comprehensive text-based summary report.

DOCX Compare / Duplicate Check Setup

To use this feature with Openclaw Skills, ensure you have Python installed and then install the required dependencies:

pip install python-docx

Run the comparison script using the following command structure:

python scripts/compare_docx.py --file1 DocumentA.docx --file2 DocumentB.docx --output ./results

DOCX Compare / Duplicate Check Data Schema & Taxonomy

The skill generates structured outputs to help users organize and review comparison data efficiently:

Output File Content Description
*_highlighted.docx The original document with duplicate text sections highlighted in yellow.
*_image_duplicates.docx The original document containing annotations for identified duplicate images.
*_report.txt A detailed plain-text log containing similarity scores and specific duplication locations.

DOCX Compare / Duplicate Check Advanced Features

  • Configurable similarity thresholds (e.g., --threshold 0.90) allow users to adjust the sensitivity of fuzzy matching.
  • Multi-mode execution allows targeting specific content types like only text, only images, or a full document scan.
  • Content-based image verification ensures duplicates are caught even if they have different filenames or internal metadata.
  • Designed for modular workflows, allowing it to work in tandem with other Openclaw Skills for automated document processing pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*