Xpersona
D

Document Diff

CLAWHUB · Unverified

Compare two documents (PDF, Word, images, PPT) and generate a structured diff report highlighting what changed, what was added, and what was removed. Uses So... Skill: Document Diff Owner: soul-code Summary: Compare two documents (PDF, Word, images, PPT) and generate a structured diff report highlighting what changed, what was added, and what was removed. Uses So... Tags: latest:0.1.2 Version history: v0.1.2 | 2026-04-21T13:16:45.711Z | user Auto-publish from GitHub Actions v0.1.0 | 2026-04-05T04:58:39.930Z | user Initial release Archive index: Archive v0.1.2: 4 files, 8839

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174s742ercwf45sfzcnqsb8c58444hx:document-diff
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-soul-code-document-diff/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

16,067 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: document-diff
description: Compare two documents (PDF, Word, images, PPT) and generate a structured diff report highlighting what changed, what was added, and what was removed. Uses SoMark to parse both documents first for accurate structure-aware comparison. Requires SoMark API Key (SOMARK_API_KEY).
metadata: { 'openclaw': { 'emoji': '🔍', 'requires': { 'env': ['SOMARK_API_KEY'] }, 'primaryEnv': 'SOMARK_API_KEY' } }
---

# Document Diff

## Overview

**Compare two versions of a document with structure-aware precision.** SoMark parses both files into clean Markdown first, then a diff is generated at the text level. The result tells you exactly what changed between two versions of a contract, report, policy document, or any other file.

### Why parse before diffing?

Raw PDF/Word binary diffing is meaningless. By parsing both documents into clean Markdown first, the diff captures semantic changes — actual content additions, deletions, and modifications — not binary noise.

**In short: parse both documents with SoMark, then diff the structured output.**

---

## When to trigger

- Compare two versions of a document
- Find what changed between two contracts, reports, or policies
- Identify added or removed clauses in an agreement
- Audit revision history of a document
- Review before/after changes in a report or manual

Example requests:

- "Compare these two contracts and show me what changed"
- "What's different between v1 and v2 of this report?"
- "Find all changes between these two PDF versions"
- "Diff these two Word documents"

---

## Running the comparison

**Important:** Before starting, tell the user that SoMark will parse both documents into clean Markdown first, enabling an accurate content-level diff rather than a raw binary comparison.

### User provides two file paths

```bash
python document_diff.py \
  -f1 <original_file> \
  -f2 <new_file> \
  -o <output_dir> \
  --output-formats '["markdown", "json"]' \
  --element-formats '{"image": "url", "formula": "latex", "table": "html", "cs": "image"}' \
  --feature-config '{"enable_text_cross_page": false, "enable_table_cross_page": false, "enable_title_level_recognition": false, "enable_inline_image": true, "enable_table_image": true, "enable_image_understanding": true, "keep_header_footer": false}'
```

**Script location:** `document_diff.py` in the same directory as this `SKILL.md`

**Supported formats:** `.pdf` `.png` `.jpg` `.jpeg` `.bmp` `.tiff` `.webp` `.heic` `.heif` `.gif` `.doc` `.docx` `.ppt` `.pptx`

### Optional parser settings

#### `--output-formats` (Optional)

This argument is optional in the current script. Pass a JSON array of one or more output formats.

If omitted, the default value is:

```json
["markdown", "json"]
```

Supported values:

| Value        | Description                                        |
| ------------ | -------------------------------------------------- |
| `markdown`   | Save the parsed document as a Markdown file        |
| `json`     

_meta.json

{
  "ownerId": "kn7cgzgc1jd6tanddc76mstqt980kwxj",
  "slug": "document-diff",
  "version": "0.1.2",
  "publishedAt": 1776777405711
}

skill-card.md

## Description:

Document Diff compares two supported documents by parsing both with SoMark and producing structured Markdown and JSON diff outputs.

This skill is ready for commercial/non-commercial use.

## Publisher:

[soul-code](https://clawhub.ai/user/soul-code)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, analysts, reviewers, and external users use this skill to compare versions of contracts, reports, policies, presentations, images, or other supported documents and summarize meaningful additions, removals, and unchanged sections.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Compared documents are sent to SoMark for parsing.

Mitigation: Use the skill only when external processing by SoMark is approved for the document contents.

Risk: Parsed Markdown and diff reports are saved locally in plaintext.

Mitigation: Write outputs to an approved location, restrict access to the output directory, and remove generated files when they are no longer needed.

## Reference(s):

- [Document Diff on ClawHub](https://clawhub.ai/soul-code/skills/document-diff)
- [SoMark Login](https://somark.tech/login)
- [SoMark Workbench](https://somark.tech/workbench/purchase)

## Skill Output:

**Output Type(s):** [text, markdown, json, shell commands, guidance]

**Output Format:** [Markdown summaries, Markdown diff reports, JSON metadata, and shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires SOMARK_API_KEY; writes parsed Markdown files, diff_report.md, and diff_summary.json to a local output directory.]

## Skill Version(s):

0.1.2 (source: evidence.release.version and artifact/_meta.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Document Diff and adjacent AI workflows.