Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问clear审计通过

compare-docs比较文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

1,818

周安装

75

GitHub Stars

1

下载量

594
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:compare-docs(比较文档)
来源仓库:https://github.com/lennonli/compare-docs
仓库路径:skills/compare-docs
安装命令:
npx skills add https://github.com/lennonli/compare-docs --skill compare-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/lennonli/compare-docs --skill compare-docs

简介

compare-docs 用于检测两份文档之间的实质性差异与错误。

  • 支持 .docx/.pdf/.md/.txt 多种格式,自动转换后做文本比对。
  • 通过 GitHub 安装,使用 npx skills add 命令添加指定仓库中的技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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).

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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

...

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

32.04%
按下载量换算190

OpenCode

21.81%
按下载量换算130

Gemini CLI

17.99%
按下载量换算107

windsurf

15.11%
按下载量换算90

trae

8.2%
按下载量换算49

Cursor

3.77%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills