KingDoc: Managing the Full Lifecycle of WPS Online Documents with Agent Skill

Preface

Handling online documents in an Agent typically involves downloading the entire file, editing locally, then uploading again, or calling only a limited set of open APIs. Paragraph-level edits, field automation in multi-dimensional tables, compliance scanning, and Webhook integration often require you to stitch together scripts yourself. If your team’s documents live on Kingsoft Docs (WPS) and you want your Agent to follow different editing strategies by category, you need a Skill that aligns with the WPS Open Platform and cleanly separates local capabilities from cloud APIs.

Below is the SkillHub community Skill “KingDoc” (coordinate @user_1a470ba8/kingdoc, current version 4.3.5). It provides full lifecycle management across 9 categories of online documents and declares 21 Kingsoft-side enhancements on top of comparable Tencent Docs capabilities.

What Is This

KingDoc is an office-efficiency Skill published on SkillHub, sourced from the community, and maintained by user_1a470ba8.

In one sentence: an AI collaboration assistant for Kingsoft Docs that deeply integrates with the native Kingsoft Docs (WPS) Open Platform APIs, covering documents, smart canvases, spreadsheets, presentations, multi-dimensional tables, forms, visualizations, history management, full-text search, attachments, and more.

The Skill page is marked requires_api_key=true, meaning calls to cloud capabilities such as the WPS Open Platform usually require key configuration. At the same time, the official description lists many “zero-key available” capabilities (local generation, OCR, hardware profiling, WPS AI, full-text search, block-level editing, quota management, bridging, AirScript, view rendering, CRDT, data I/O, Webhook, knowledge hub, government/enterprise compliance, theme generation, cross-category comparison, compliance facade, industry packs, scheduled weekly scans, quota alerts, etc.). In practice, refer to the Skill’s internal docs: before reading/writing cloud documents or performing space-level operations, complete API configuration first.

Core Features

The following summarizes the official SkillHub introduction, organized by category and version capabilities.

Nine Categories and Editing Strategies

Category Management (Official Description)
Docs / Presentations / Visualizations Local generation → upload and overwrite
Spreadsheets / Multi-dimensional Tables Fine-grained editing via Open Platform APIs
Smart Canvas Element-level CRUD + Markdown incremental append
Block-level Editing Paragraph-level online editing, replacing whole-file replacement

Other categories (forms, history management, full-text search, attachments, etc.) are included under the same full lifecycle management narrative.

Kingsoft-side Enhancements (21 items, excerpt)

As listed by the vendor (non-exhaustive): Recycle Bin, version history, format conversion (jpg/png/txt, etc.), plain-text extraction, local OCR (prefers bridging to wps-office-suite; falls back to Tesseract if not installed, keeping data local), notification push, Webhook, batch tasks, government/enterprise compliance, hardware-adaptive performance, WPS AI, collaboration conflict resolution, document compliance checks, real-time collaborative editing, document comparison, template market, multi-dimensional table view enhancements, handwriting/formula recognition, smart canvas element-level editing, full-text search, block-level editing, presentation slide replacement, quota manager, wps-office-suite bidirectional bridge, zwjh memory base integration, form response collection & statistics, AirScript online automation, multi-dimensional table field automation, kanban/Gantt view rendering, CRDT spreadsheet extension (cell-level conflict-free collaboration), Excel/CSV bidirectional import/export (serialization for date/link/select/person fields), Webhook & notification center (three-channel delivery + signature verification + SQLite deduplication).

v4.1: Multi-dimensional Tables and Online Automation

  • AirScript: Natural language → script generation → precheck → confirmation → online execution.
  • Field automation: formula, linked, and aggregate fields.
  • View rendering: matplotlib kanban bar charts, mermaid Gantt timelines.
  • CRDT spreadsheet extension: cell-level operation logs + vector clock conflict marking.
  • Excel/CSV bidirectional I/O: serialization for four field types.
  • Webhook notification center: subscribe to create/update/delete events; deliver via Kingsoft Collaboration / WeCom / DingTalk (three channels).

v4.2: Knowledge Hub and Government/Enterprise Compliance

  • Team knowledge base: space-level inverted index search + permission-matrix filtering (authorize first, then search).
  • Government/Enterprise Compliance Center: classification labeling persisted to DB, full-scan reports for sensitive words and data leakage, and a data-locality declaration.
  • One-click theme generation: WPS AI adapter layer generate (outline → draft smart document/PPT/spreadsheet; switchable local fallback with alternative sources).
  • Cross-category comparison & timeline: poll version history to derive who/when/what; spreadsheets support cell-level diff.
  • OCR convergence: single entry point; prefer wps-office-suite, otherwise Tesseract.

v4.3: Compliance Center v2 and Ops Alerts

  • Compliance suite facade: single entry quick_scan / full_scan, merging v4.2 government/enterprise compliance and v3.4 content compliance checks, with unified sensitive-word loading logic.
  • Industry-specific sensitive word packs: base general + education/training, healthcare, finance, government; 200+ entries each, packs can be stacked; reports classified by high/medium/low risk with paragraph location and owner fields.
  • Global scheduled scanning: schtasks runs weekly scans of the space; newly detected items are pushed via Webhook across three channels with signature verification; cross-week deduplication only pushes new items.
  • Quota manager threshold alerts: usage at 80% / 95% triggers two-tier alerts via Webhook across three channels, idempotent by day and level.

Installation and Activation

The Skill uses the universal SKILL.md format. The official installation method is to have your Agent follow SkillHub’s installation documentation and install coordinate @user_1a470ba8/kingdoc.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is present:

command -v skillhub && skillhub --version

If not installed, run the full installation per SkillHub docs (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If you only need the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Full installation instructions: https://skillhub.cn/install/skillhub.md.

2. Install KingDoc into the current Agent’s skills directory

When installing, you must pass --dir pointing to the skills directory recognized by your Agent; otherwise it will default to ./skills/, which may not be loaded.

skillhub install @user_1a470ba8/kingdoc --dir <skills directory>

Common paths (from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also send the official prompt directly in the conversation:

请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_1a470ba8/kingdoc`。

3. API Keys and Zero-key Capabilities

The Skill is tagged requires_api_key=true. Connecting to the WPS Open Platform, creating/modifying documents in cloud spaces, and similar operations require configuring the corresponding keys in the Skill documentation or environment variables (see the installed SKILL.md for exact field names).

Capabilities officially listed as “zero-key available” (e.g., local generation, OCR, compliance scan facade, Webhook configuration, quota alerts) can be partially used without keys. If tasks involve cloud document IDs, space permissions, or online collaboration, complete Open Platform authorization in advance.

Typical Usage

The official page does not provide standalone CLI example commands. Typical usage is for the Agent with the installed Skill to orchestrate the following capabilities via natural language (expressions should match tool names in SKILL.md).

  1. Write docs / make PPTs / visualizations: describe the outline or edit intent → Skill generates content locally → upload and overwrite the corresponding Kingsoft Docs.
  2. Edit spreadsheets / multi-dimensional tables: describe cell, field, or view requirements → fine-grained editing via APIs; for automation, use AirScript (generate script → precheck → confirm → execute online).
  3. Smart Canvas: add/delete/modify canvas elements or incrementally append content via Markdown.
  4. Block-level editing: specify paragraph-level edits to avoid replacing the entire file.
  5. Compliance: call the compliance facade quick_scan or full_scan; for government/enterprise scenarios, stack industry sensitive-word packs; for ongoing governance, configure schtasks weekly scans and Webhook push.
  6. Ops and integration: subscribe to document change events and push via Kingsoft Collaboration / WeCom / DingTalk; receive alerts when quotas approach 80% / 95%.

With the above steps, the Agent encapsulates “category differences + local/cloud division of labor” inside the Skill, so you primarily describe business goals instead of hand-writing Open Platform requests.

Use Cases and Considerations

Who it’s for

  • Teams whose documents primarily live on Kingsoft Docs / WPS and want the Agent to handle multiple document categories and attachments uniformly.
  • Those needing multi-dimensional table automation, CRDT collaboration, Excel/CSV round-trips, kanban/Gantt view rendering, and similar enhancements beyond simple upload/download.
  • Government/enterprise or intranet scenarios focused on compliance scanning, classification labeling, data-local OCR, scheduled scans, and Webhook alerts.

Limitations and Notes

  • Cloud capabilities depend on WPS Open Platform keys and account permissions; without configuration, only the official zero-key subset can be used.
  • OCR prefers the wps-office-suite bridge; without the bridge, it falls back to Tesseract, and recognition quality depends on the environment.
  • Weekly scans, Webhooks, and quota alerts involve local schtasks and three-channel configuration; signature and deduplication logic should be tested in the target environment.
  • SkillHub page statistics (as of the data capture): rating 100000, downloads 4750; version per the page’s label 4.3.5.

Conclusion

KingDoc consolidates WPS nine-category document management, 21 enhancement capabilities, and v4.1–v4.3 automation and compliance features into a single Agent Skill, distinguishing two main paths: “local generation + upload” and “spreadsheet API fine-grained editing.” If you are evaluating office-efficiency Skills on SkillHub, view the full feature list on the official page and install @user_1a470ba8/kingdoc.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye