AI Agent Hub
Back to skills
Kingsoft Docs CLI icon

Kingsoft Docs CLI

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_d6510c26/jinshanwenjian according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem It Addresses

When an agent operates Kingsoft Docs directly, issues include credential exposure, oversized Base64 payloads, CJK multiline shell escaping, hard-to-reverse writes, missing post-write validation, and mismatched CLI/Skill versions. This skill routes those operations through kdocs-cli: tokens are stored in the system keychain instead of chat, logs, or code comments; large content is prepared by scripts and passed as files rather than streamed Base64; complex arguments use --file or stdin to avoid encoding damage in PowerShell.

How It Works

The skill first classifies the request into create/write, partial update, type-specific features, read, file locating, file management, AI slide generation, or knowledge-base organization. It supports .otl, .xlsx, .ksheet, .pdf, .docx, .pptx, .dbt, and .form documents. A typical flow resolves the target file to file_id and drive_id, then calls write or read tools; after creation it verifies with an independent read and displays link_url or fetches the link. For unknown action, unknown service, or version-related errors, it checks CLI/Skill versions first; rate limits, circuit breakers, timeouts, and concurrency conflicts use wait, larger --timeout, serialization, or backoff.

Boundaries And Cautions

This is useful for agent workflows such as web clipping, search-read-report, table cleanup, knowledge-base archiving, and PPT generation. It is not suitable for blind bulk writes when authentication, network, or resource permissions are missing. Delete, close, cancel-share, and other irreversible operations require confirmation; batch writes should avoid lock contention; slow operations should be checked for idempotency before retry.

Use Cases

  • Customer support clips ticket pages into smart docs and files them in a knowledge base folder.
  • Operations reads several online sheets weekly, consolidates findings, and writes a smart doc report.
  • Admin imports selected slides from an external PPTX into an existing deck, then shares it.
  • Data owners extract group signup text into an online sheet and adds data validation rules.

Best For

  • Developers who need agents to read and write Kingsoft docs, sheets, slides, and knowledge bases.
  • Automation engineers building pipelines for web clipping, document extraction, and report writing.
  • Ops and data staff who manage online sheets, multi-dimensional table records, sharing, and permissions.
  • Admin or business users who import local PPTX slides into decks and generate reporting materials.