kdocs-skill

The official Kingsoft Docs (WPS) skill set: Claude Code and Codex create and edit cloud documents through kdocs-cli

  • 66 ★ on the repository
  • Last commit
SkillOfficial

Broad access

Why this level

  • The agent receives an access token for the cloud drive and can create, change, move and delete documents
  • The `kdocs-cli` utility is downloaded and installed by a script, and the token is kept in the system keychain
All reasons and checks

kdocs-app/kdocs-skill

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/kdocs-skill

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • The agent receives an access token for the cloud drive and can create, change, move and delete documents
  • The `kdocs-cli` utility is downloaded and installed by a script, and the token is kept in the system keychain

This is third-party code. Review the repository files before installing.

What it does

The skill drives the Kingsoft Docs (Kdocs, WPS Cloud) online office through the `kdocs-cli` command-line tool. The agent works with links such as `kdocs.cn/l/...`, creating, reading, editing, finding, moving and sharing documents and spreadsheets. The root `SKILL.md` sets general rules and the `kdocs-cli <service> <action>` call, and subskills live in `skills/`. They include `kdocs-drive` for cloud storage (search, upload, move, permissions, comments, recycle bin), `kdocs-db` for multidimensional tables, `kdocs-ap` for writing Markdown into smart documents, `kdocs-aippt` for presentations from a topic or documents and `kdocs-auto-sheet` for automations such as record-event notifications and scheduled alerts. The rules are strict: the token must never appear in dialogue or logs, it is kept in the system keychain, and irreversible operations (delete, close) need confirmation. After creating a document the agent must show its link. The tool installs with the scripts in `scripts/` (`setup.sh`, `setup.ps1`, `setup.cjs`), and `kdocs-cli upgrade` updates it with a rollback.

Who it is for. Users of Kingsoft Docs and WPS Cloud who want to manage cloud documents, tables and presentations through an AI agent.

Good fit when

  • An agent must create a document or read one from a `kdocs.cn/l/...` link
  • A table or multidimensional base must be filled and edited automatically
  • A presentation must be built from a topic or several documents
  • Search, moving and access rights for cloud drive files are handled by an agent

Not a fit when

  • Documents live in Google Docs, Microsoft 365 or Yandex Docs: the skill knows only Kdocs
  • There is no Kdocs account and access token
  • Work without installing the third-party `kdocs-cli` utility is needed

Example request

Find the quarter plan file in my Kingsoft Docs cloud, read it and build a presentation from it

Limitations

The skill works only with the Kdocs service and requires the `kdocs-cli` utility, installed by the repository scripts and then authorized with `kdocs-cli auth login` or `kdocs-cli auth set-token`. The token must not appear in dialogue and is kept in the system keychain. Skill text and capability descriptions are in Chinese, and when file access is denied the agent stops by rule and does not try to bypass the denial. Large uploads are passed as Base64 through a script. Kdocs availability from Russia is not guaranteed and should be checked in advance.

How to disable. Delete the `kdocs` skill folder from `~/.claude/skills/`, sign out with `kdocs-cli auth logout` and optionally remove the `kdocs-cli` utility.

FAQ

How do I install kdocs-skill in Claude Code?

Clone the repository into `~/.claude/skills/kdocs`, then run `bash scripts/setup.sh` (Windows: `scripts/setup.ps1`, Node: `scripts/setup.cjs`) and run `kdocs-cli auth login`.

How do I authorize the utility?

Run `kdocs-cli auth login` or, if you already have a token, `kdocs-cli auth set-token`. `kdocs-cli auth status` shows the state and `kdocs-cli auth logout` signs out.

Which subskills are included?

They include `kdocs-drive` for cloud storage, `kdocs-db` for multidimensional tables, `kdocs-ap` for smart documents, `kdocs-aippt` for presentations and `kdocs-auto-sheet` for automations.

How do I update the utility and skill?

`kdocs-cli upgrade -y` updates the utility with a backup and `kdocs-cli upgrade --rollback` restores the previous version. If the update fails, run the install script again.

What does the agent do with irreversible actions?

Under the skill rules, deleting and closing documents happens only after user confirmation, and when file access is denied the agent stops working with that file.

Discussion

No questions or reviews yet.

Skills

16 ready skills for Cursor, Claude Code and Codex: theses, PDF and Office, draw.io diagrams, project documentation

SkillExtended access3.2KRepository stars

A skill plus the docx program: the agent fills forms, edits tables and reviews Word files with tracked changes

SkillExtended access246Repository stars

21 skills for Chinese-language work: web material capture, documents and spreadsheets, audio, animated diagrams and book building

SkillExtended access649Repository stars

An MCP server and four skills for WPS Office: spreadsheets, documents and presentations edited from Claude Code and Cursor in plain language

MCP serverExtended access697Repository stars

Skills for Claude Code and Codex turn PDF, DOCX and HTML into a local knowledge base with the original, full text and summary.

SkillExtended access274Repository stars

Deckuse is a CLI and skill that edits PPTX and DOCX via JSON commands, with versioned workspaces, validation and undo.

CLIMinimal access105Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
kdocs-skill (this card)yes66
WPS Skillsnonot required697a skill set for WPS Office files, whereas this drives the Kdocs cloud through `kdocs-cli`
WPS Note Skillsno187WPS notes skills, whereas this covers documents, tables, presentations and automations of the cloud service

README in short

The root `SKILL.md` sets out the strict rules, version update procedure, utility installation and authorization, call format and parameter passing. Subskills describe individual services with sample workflows.

README badge

Original SKILL.md

---
name: kdocs
description: 操作金山文档(WPS 云文档 / Kdocs)云文档的官方 Skill,支持处理 `https://kdocs.cn/l/...`、`https://www.kdocs.cn/l/...` 或 `https://365.kdocs.cn/l/...` 形式的文档 URL。核心能力覆盖云端新建、读取、编辑、搜索、分享、整理在线文档(智能文档、Word、Excel、PDF、PPT、演示文稿、智能表格、多维表格)。当用户的任务涉及云文档操作时使用,包括但不限于:写周报/日报/工作汇报、处理合同/发票、创建报名表/登记表、网页剪藏、接龙转表格、信息收集、文档总结与内容生成、改写仿写、翻译、AI PPT生成、PDF拆分导出、标签分类归档、收藏管理、碎片笔记整理、表格美化、回收站还原。勿直接执行,先转交子 Skill。
homepage: https://www.kdocs.cn/latest
version: 2.9.0
metadata: {"requires":{"bins":["kdocs-cli"],"cliHelp":"kdocs-cli help"},"openclaw":{"category":"kdocs","tokenUrl":"https://www.kdocs.cn/latest","emoji":"📝","keywords":["金山文档","金山表格","金山收藏","WPS","WPS文档","云文档","在线文档","kdocs","WPS云文档","接龙转表格","接龙","群接龙","报名表","信息收集","收集表","登记表","网页剪藏","剪藏","保存网页","网页保存到文档","保存文章","收藏文章","总结","帮我总结","帮我整理","帮我写","帮我翻译","帮我做PPT","翻译文档 - 做PPT - 生成PPT - 培训课件 - 方案展示 - 项目展示","文档总结","内容生成","改写","仿写","翻译","文档翻译","PPT","演示文稿","幻灯片","PDF","拆分PDF","导出PDF","Word","Excel","表格","Markdown","碎片整理","笔记整理","表格优化","文档处理","文件处理","办公助手","文档助手","周报","日报","工作汇报","合同","发票"]},"file_types":["pdf","doc","docx","xlsx","xls","pptx","ppt","otl","ksheet","dbt","form","jpg","jpeg","png","bmp","gif","webp","url","md","txt","html"],"category":"productivity"}
---

# 金山文档 CLI Skill 使用指南

金山文档 CLI Skill 提供了一套完整的在线文档操作工具,通过 `kdocs-cli` 命令行工具与金山文档 API 交互。支持创建、查询、读取、编辑、分享、移动多种类型的在线文档。

## 严格规则

### 禁止(NEVER)

- 禁止将 Token 明文出现在对话、日志、命令输出、代码注释或任何文件中;Token 仅允许通过 `kdocs-cli auth set-token` 或 `kdocs-cli auth login` 保存到系统密钥链
- 上传写入等接口需传入的 `content_base64` 可能非常大(编码后 >1 MB),禁止在对话中逐 token 生成 Base64 字符串,用脚本完成文件读取、编码和传参
- 工具返回或 stderr 明确表示**当前文件/链接整份不可访问**(如整文件无权限、需向所有者申请访问、无权打开该文档等)时:**停止对该文件的后续读写**,不得换参数对该文件变通重试;告知用户联系文件所有者授权。若用户提供了其他可访问文件或明确换目标,可继续处理其它文件。单次字段/单表/局部操作权限不足且未声明整文件不可用时:说明原因,跳过该步或询问用户是否继续,**不得**仅因子串「权限」就终止本会话内所有云文档操作

### 必须(MUST)

- 不可逆操作(delete/close 类)执行前必须向用户确认
- 创建云文档文件并验证通过后,必须向用户展示可访问链接。若响应包含 `data.link_url` 则直接展示;若响应无链接时,调用 `get_file_link` 获取并展示。
- 除 SKILL.md 已给出最小可用示例的主路径工具外,其他工具调用前须先执行 `kdocs-cli help <tool>` 获取详细参考文档;参数细节(类型、可选值、约束)以工具参考文档为准
- 满足「问题反馈」章节触发条件时,必须运行 feedback 命令并展示完整反馈链接,并遵守该章节的防重复规则;禁止仅口头告知联系客服或仅以「暂不支持」结束对话
- 参考文档按本技能总览或索引中的文件路径读取,不猜文件名、不把目录当文件、不套用其他技能的路径。路径报错时先核对索引。

---

## 保持最新版本
何时触发:**首次使用** Skill / **距上次自检 >24h** / **收到 `unknown action` 或 `unknown service` 错误**。

1. **CLI 版本**:`kdocs-cli version` — 若命令不存在则按下方「工具安装与认证」安装;若低于本文件 frontmatter `version`,运行 `kdocs-cli upgrade -y`(自动备份旧版本,失败可 `kdocs-cli upgrade --rollback`)
2. **Skill 版本**:若本文件 `version` 低于 `kdocs-cli version`,运行 `kdocs-cli call check_skill_update --args '{"version":"2.9.0","skill_name":"kdocs"}'`,若返回 `update_available: true`,从 `instruction` 中提取 zip 下载链接,下载解压替换当前 Skill 目录

若 upgrade 和 rollback 均失败,在本 Skill 目录下重新运行安装脚本(`bash setup.sh` / `powershell setup.ps1` / `node setup.cjs`,脚本位于 `scripts/`)可从 CDN 重新安装。
若仍无法更新,以各能力域 service 参考页内工具选型指引与 `kdocs-cli version` 所对应能力为准,并运行 `kdocs-cli feedback`。

---

## 工具安装与认证

| 操作 | 命令 |
|------|------|

Report a problem