compare-docs

Compares two documents (docx, md, txt, pdf) to identify substantive differences, focusing on financial data, key clauses, and statistical discrepancies. Generates a formatted comparison report. Use when the user asks to "compare documents", "check differences between files", "find discrepancies", "比对文档", "查看差异", "比较实质性差异", or "核对合同".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "compare-docs" with this command: npx skills add lennonli/compare-docs/lennonli-compare-docs-compare-docs

Document Comparison Skill

This skill compares two documents to find substantive differences, errors, or inconsistencies. It is particularly useful for legal contracts, financial reports, or revised document versions.

Usage

# Compare two specific files
/compare-docs file1.docx file2.docx

# Compare with specific focus
/compare-docs file1.docx file2.docx --focus "financial data"

Workflow

  1. Input Verification:

    • Verify both input files exist.
    • Determine file type (.docx, .pdf, .md, .txt).
  2. Content Extraction:

    • If files are .docx, use pandoc to convert them to Markdown for clear text analysis.
      pandoc -t markdown "file1.docx" -o "file1.md"
      pandoc -t markdown "file2.docx" -o "file2.md"
      
    • If files are .pdf, use available PDF reading tools.
  3. Analysis & Comparison:

    • Read the extracted content.
    • Compare the documents section by section or key-value by key-value.
    • Focus Areas:
      • Numbers & Dates: Check for discrepancies in financial figures, dates, percentages, and quantities.
      • Key Clauses: Identify added, removed, or modified clauses (especially in legal/contractual contexts).
      • Definitions: Check for changes in defined terms.
    • Note: Ignore minor formatting changes unless explicitly requested.
  4. Report Generation:

    • Create a Markdown report (comparison_report.md) structured as follows:
      • Summary: Brief overview of the comparison result.
      • Critical Differences (High Risk): Data mismatches, missing clauses, conflicting obligations.
      • Substantive Changes: Changes in meaning or scope.
      • Stylistic/Format Changes: (Optional) Brief mention of layout or phrasing changes that don't alter meaning.
      • Recommendations: Actionable advice based on findings.
  5. Output formatting & Delivery:

    • Convert the Markdown report to a professional .docx document using pandoc.
      pandoc "comparison_report.md" -o "Comparison_Report.docx"
      
    • Open the file: Automatically open the generated document so the user can view it immediately.
      • On macOS: open "Comparison_Report.docx"
      • On Windows: start "Comparison_Report.docx"
      • On Linux: xdg-open "Comparison_Report.docx"
    • Inform the user of the report location.
  6. Cleanup:

    • Remove temporary intermediate files (e.g., converted .md files) to keep the workspace clean.

Example Output Structure

Comparison Report

1. Executive Summary

...

2. Key Discrepancies

ItemFile A ValueFile B ValueImpact
Revenue$10M$12MSignificant
............

3. Detailed Clause Analysis

...

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

错敏信息检测

1. 安装https://clawhub.ai/xxxx/sensitive-check-skill 这个技能 2. 调用错敏信息检测技能,传入参数 userKey=xxxx,content=xxxx

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated