daymade/claude-code-skills

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.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/daymade/claude-code-skills --skill wps-doc-scraper

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

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/<share_id> or kdocs.cn/l/<share_id>: read public link metadata first.
  • wps.processon.com/diagrams/view?...: extract file_id and group_id, 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.
  1. For ProcessOn .pof mind maps or canvases, run the API extractor:
bash
   python3 /path/to/wps-doc-scraper/scripts/wps_processon_extract.py \
     --url "https://www.kdocs.cn/view/l/..." \
     --output-dir "/path/to/archive-dir"

Expected outputs: processon-api.json, processon-definition.json, capture-manifest.json, and <title>.md.

  1. 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/render_svg_tiles.py to make the PNG through macOS Quick Look square tiles.
bash
   python3 /path/to/wps-doc-scraper/scripts/render_svg_tiles.py \
     --svg "/path/to/<title>-全画布.svg" \
     --output "/path/to/<title>-全画布.png"
  1. 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. A public link that requires login is a hard boundary unless the user provides authorized access.
  • Do not infer hidden nodes or missing text. Preserve what the API or rendered DOM actually exposes.
  • HTTP 200 is not enough. Detect login-wall payloads such as 用户未登录, empty definitions, and placeholder shells.
  • Keep raw source artifacts before transformation: API JSON, parsed definition JSON, serialized SVG, screenshots or PNGs, and a capture manifest.
  • For browser fallback, capture DOM/source data before screenshots when possible; screenshots alone are not a faithful text archive.
  • Report extraction gaps plainly. Do not silently produce a polished Markdown file from partial data.

Bundled Resources

scripts/

  • wps_processon_extract.py: deterministic extractor for public WPS/KDocs ProcessOn .pof mind maps. It resolves KDocs share metadata, downloads the ProcessOn data API JSON, parses the embedded definition, and writes Markdown plus a manifest.
  • render_svg_tiles.py: macOS Quick Look based SVG-to-PNG renderer for full-canvas SVGs with foreignObject text. It renders square vertical tiles and stitches them into one PNG.

references/

  • processon-mindmap-api.md: endpoint pattern and payload shape for WPS-hosted ProcessOn files.
  • rendered-svg-capture.md: browser-side process for extracting the rendered full-canvas SVG and producing a PNG.
  • capture-manifest.md: minimum manifest fields and acceptance checks.
  • permission-and-failure-boundaries.md: login walls, forbidden escalation, and failure reporting rules.

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills
daymade
コミュニティ

github-ops

Operates GitHub via gh CLI and REST/GraphQL — PRs, issues, Actions, repos, collaborators, org permissions, 2FA — with explicit target, authorization, and independent readback. Use when a write reports success but state didn't change, or choosing gh/REST/GraphQL/UI-only. Not for local Git recovery (use git-safety-net), maintainer PR review (use github-review-pr), or upstream contribution (use github-contributor).

導入数
2
GitHub Stars
1482
更新日
10月20日
daymade
コミュニティ

audio-router

Routes audio: StepFun ASR/语音识别, StepFun TTS/配音, transcript/妙记→会议纪要, merge/review minutes. Reads one bundled specialist; generic ASR and correction stay direct.

導入数
2
GitHub Stars
1482
更新日
10月20日
daymade
コミュニティ

product-analysis

Multi-path parallel product analysis with cross-model test-time compute scaling. Spawns parallel agents (Claude Code agent teams + Codex CLI) to explore product from multiple perspectives, then synthesizes findings into actionable optimization plans. Can invoke competitors-analysis for competitive benchmarking. Use when "product audit", "self-review", "发布前审查", "产品分析", "analyze our product", "UX audit", or "信息架构审计".

導入数
2
GitHub Stars
1466
更新日
10月15日
daymade
コミュニティ

fact-checker

Verifies factual claims in documents using web search and official sources, then proposes corrections with user confirmation. Use when the user asks to fact-check, verify information, validate claims, check accuracy, or update outdated information in documents. Supports AI model specs, technical documentation, statistics, and general factual statements.

導入数
1
GitHub Stars
1442
更新日
10月4日