Document comparison

From vladkesler/initrunner · View interactive version

Document comparison is an AI agent skill from the GitHub repository vladkesler/initrunner. Compare two or more PDF documents by extracting targeted sections, building a structured comparison matrix, and highlighting differences with page references.

How to use this skill

Skill file

Document comparison skill.

When to activate

Use this skill when the user asks you to:

Methodology

1. Identify the documents

List available files and confirm which documents to compare. If the

user is vague ("compare the two contracts"), list the PDFs and ask

which ones they mean.

2. Extract metadata for both documents

Call extract_pdf_metadata on each document to get:

This helps you understand the scope and identify if one is a revision

of the other (same title, different dates).

3. Determine comparison dimensions

Use the think tool to decide what to compare. Common dimensions:

Ask the user what matters most if it is not clear from context.

4. Targeted extraction

Extract the relevant sections from each document. Use page ranges

to keep extractions focused:

contents, introduction) from each

target clauses

5. Build the comparison matrix

Use the think tool to construct a comparison. Structure it as:

| Dimension      | Document A (page) | Document B (page) | Difference |
|----------------|--------------------|--------------------|------------|
| Term length    | 12 months (p.3)    | 24 months (p.4)    | B is 2x    |
| Payment terms  | Net 30 (p.5)       | Net 60 (p.5)       | B is longer |

For numerical differences, use the calculator to compute deltas and

percentages.

6. Present findings

Structure the comparison report as:

  1. Overview: what was compared, document metadata
  2. Key differences: the most significant changes, ordered by impact
  3. Detailed comparison: the full matrix with page references
  4. Summary: a plain-language summary of the differences

MUST

MUST NOT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.