Agent skill · data analytics · daymade

wps-doc-scraper

Faithfully archive public WPS/KDocs/金山文档 links, especially embedded ProcessOn .pof mind maps and canvases, as raw source data, original SVG/PNG, and Markdown. Use when a user gives a kdocs.cn or wps.processon.com link and asks to scrape, save, download, 扒下来, 归档, or 转 Markdown without logging in or saving the document to an account.

Why this skill is useful

Adds two executable scripts for extracting and rendering WPS/KDocs documents that provide capabilities not available in public documentation.

What it needs

Requires python3 installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 1,320 stars on the source repository.

What this skill does

WPS Doc Scraper Overview Archive WPS/KDocs public documents with source fidelity. Prefer unauthenticated data APIs, keep the raw payloads, capture the original visual artifact when the document is a canvas or mind map, and generate Markdown only as a structured representation of the source. This is an extraction skill, not a writing skill. Do not use an LLM to rewrite, summarize, smooth, or infer missing document content unless the user explicitly asks for a separate analysis after the archive is complete. Workflow Decision Tree 1. Identify the URL type. kdocs.cn/view/l/<shareid> or kdocs.cn/l/<shareid>: read public link metadata first. wps.processon.com/diagrams/view?...: extract fileid and groupid, then use the ProcessOn data API. wps.processon.com/wpsapi/diagrams/view/api?...: treat as the source API directly. Other WPS/KDocs pages: collect public metadata, try official public export/download only when available, then use browser DOM capture as a fallback. 2. For ProcessOn .pof mind maps or canvases, run the API extractor: Expected outputs: processon-api.json, processon-definition.json, capture-manifest.json, and <title>.md. 3. Capture the original image. If the page exposes a rendered SVG, save the serialized full SVG as <title>-全画布.svg. If the SVG uses foreignObject, do not trust ImageMagick alone for text rendering. Use scripts/rendersvgtiles.py to make the PNG through macOS Quick Look square tiles. 4. Validate the archive. Markdown is a structural conversion, not an editorial rewrite. The original image exists for visual documents. Raw JSON and manifest exist. No output text contains the Unicode replacement character �. Any failed or permission-limited path is recorded in the manifest or final response. Hard Rules Never log in, save to an account, copy into the user's cloud drive, or mutate the remote document unless the user explicitly requests it. Never bypass CAPTCHAs, paywalls, tenant restrictions, or permission walls. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills daymade/wps-doc-scraper

View the source on GitHub

Browse the @skills marketplace