Calliper SaaS Markdown
БесплатноЗапускает вложенные скриптыНе проверенCompare two local documents and convert differences into LLM-ready Markdown in one synchronous call. Supports PDF, Word, PPT, and image documents accepted by…
от paodingai1 710 установок в других каталогахОб этом скилле
Calliper-Compare2Markdown
Run a JavaScript workflow that submits two local files to the calliper synchronous API through PDRouter (POST /openapi/{serviceCode}/compare/markdown by default) and returns Markdown diff output in one step. This is suitable for document comparison, change extraction, compliance checks, and feeding structured diff content into follow-up scripts.
Installation
npx skills add PaodingAI/skills
Usage
node skills/calliper-compare2markdown/scripts/compare_to_markdown.js <left-file-path> <right-file-path> [output-markdown-path]
Execution Constraints
- You must invoke
scripts/compare_to_markdown.jsdirectly. Do not reimplement the API flow yourself. - The behavior contract below explains what the script does, what it outputs, and when to use it. It is not a manual checklist for the model to imitate step by step.
- For any task that depends on cross-document differences, you must run this script first and continue from the generated Markdown result.
- Only inspect or modify the script implementation when the script itself is unavailable, failing, or needs a fix. Do not bypass it during normal use.
When to Use
- Use this skill when the user wants to compare two documents and get structured differences in Markdown.
- Use this skill when the user says things like "diff to markdown", "compare and output markdown", "导出差异 markdown", or asks for a machine-readable diff summary.
- When downstream work depends on differences, such as clause extraction, mismatch validation, or rule checks, use this skill first.
- When the diff content is only intermediate input, prefer writing to a working file and extract only required segments instead of returning full raw Markdown.
- When the user explicitly asks for the original markdown diff output, return the full Markdown directly.
Environment Variables
PAODINGAI_API_KEY: Preferred bearer token used by the script.CALLIPER_ACCESS_TOKEN: Optional fallback bearer token whenPAODINGAI_API_KEYis absent.PD_ROUTER_BASE_URL: Optional. Defaults tohttps://platform.paodingai.com/platform/.PD_ROUTER_SERVICE_CODE: Optional. Defaults tocalliper.PD_ROUTER_COMPARE_ENDPOINT: Optional. Defaults to/compare/markdown. Use only when routing endpoint differs.CALLIPER_COMPARE_CONFIG: Optional. JSON string forwarded asconfigform field. Default is{}.
Script Behavior
- Read bearer token from
PAODINGAI_API_KEY; fallback toCALLIPER_ACCESS_TOKEN; fail if both are missing. - Validate both local input files exist.
- Send one multipart request with
file1,file2, and optionalconfigtoPOST /openapi/{serviceCode}{compareEndpoint}usingAuthorization: Bearer <token>. - Parse final response and output:
- Markdown text directly when response is markdown/plain text.
- Otherwise, resolve markdown from common JSON fields (
data.markdown,markdown) or fallback to JSON text.
- If
output-markdown-pathis provided, also write the same output text to that file while still printing to stdout. - Write progress and errors to stderr and return non-zero exit code on failure.
- For field/table extraction tasks, parse and return only required fragments unless user explicitly asks for the full markdown diff.
Установить Calliper SaaS Markdown в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Calliper SaaS Markdown?
Compare two local documents and convert differences into LLM-ready Markdown in one synchronous call. Supports PDF, Word, PPT, and image documents accepted by Calliper, and returns a structured markdown diff table suitable for change review, clause comparison, downstream extraction, and rule-based validation.
Как установить скилл Calliper SaaS Markdown?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Calliper SaaS Markdown запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic