Install
openclaw skills install calliper-compare2markdownCompare 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.
openclaw skills install calliper-compare2markdownRun 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.
npx skills add PaodingAI/skills
node skills/calliper-saas-markdown/scripts/compare_to_markdown.js <left-file-path> <right-file-path> [output-markdown-path]
scripts/compare_to_markdown.js directly. Do not reimplement the API flow yourself.PD_ROUTER_API_KEY: Preferred bearer token used by the script.CALLIPER_ACCESS_TOKEN: Optional fallback bearer token when PD_ROUTER_API_KEY is absent.PD_ROUTER_BASE_URL: Optional. Defaults to https://platform.paodingai.com/.PD_ROUTER_SERVICE_CODE: Optional. Defaults to calliper.PD_ROUTER_COMPARE_ENDPOINT: Optional. Defaults to /compare/markdown. Use only when routing endpoint differs.CALLIPER_COMPARE_CONFIG: Optional. JSON string forwarded as config form field. Default is {}.PD_ROUTER_API_KEY; fallback to CALLIPER_ACCESS_TOKEN; fail if both are missing.file1, file2, and optional config to POST /openapi/{serviceCode}{compareEndpoint} using Authorization: Bearer <token>.data.markdown, markdown) or fallback to JSON text.output-markdown-path is provided, also write the same output text to that file while still printing to stdout.