skillfed

wecomcli-smartpage

Manage WeChat Work smart documents by publishing local Markdown files as smart pages and exporting document content back to Markdown format. Supports document lookup by ID or URL, with async export operations and multi-page creation.

wecomcli-smartpage creates and exports WeChat Work smart documents from local Markdown files.

AI-generated summary based on this skill's SKILL.md

2,561 172 MIT updated by WecomTeam

Install

WecomTeam/wecom-cli/wecomcli-smartpage · repository language: Rust

CLI (skillfed)coming soon
git clone https://github.com/WecomTeam/wecom-cli
cp -r wecom-cli/skills/wecomcli-smartpage ~/.claude/skills/wecomcli-smartpage

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I create a smart page from a markdown file with wecomcli-smartpage?

wecomcli-smartpage enables you to publish local Markdown files as WeChat Work smart documents. Use the CLI to convert your Markdown content into smart pages, specifying the file path and desired document settings. The skill supports direct document creation with customizable titles and content types for efficient multi-page publishing.

Can wecomcli-smartpage export smartpage content as markdown?

Yes, wecomcli-smartpage supports asynchronous export of smart document content back to Markdown format. You can retrieve and poll export task results to extract document content, allowing seamless synchronization between WeChat Work smart pages and local Markdown files.

How do I manage WeChat Work documents using wecomcli-smartpage CLI?

wecomcli-smartpage provides CLI commands to manage intelligent documents via docid or URL lookup. You can create, retrieve, and export smart pages directly from the command line, with support for batch operations and custom document configurations.

What's the license for wecomcli-smartpage?

wecomcli-smartpage is released under the MIT license, allowing free use, modification, and distribution with minimal restrictions.

Does wecomcli-smartpage support batch document creation?

Yes, wecomcli-smartpage automates multi-page document creation with custom titles and content types. You can process multiple Markdown files and create corresponding smart pages in batch operations through the CLI.

How do I check wecomcli-smartpage export task status?

wecomcli-smartpage allows you to retrieve and poll export task results for document content extraction. After initiating an async export operation, you can monitor task progress and download the converted Markdown content once processing completes.

SKILL.md

rendered from the published skill — quoted content, verbatim

企业微信智能文档管理

> wecom-cli 是企业微信提供的命令行程序,所有操作通过执行 wecom-cli 命令完成。

资源型技能,负责智能文档(原名智能主页,/smartpage/*)的创建与内容导出。

调用方式

通过 wecom-cli 调用,品类为 doc

wecom-cli doc <tool_name> '<json_params>'

返回格式说明

所有接口返回 JSON 对象,包含以下公共字段:

字段 类型 说明
errcode integer 返回码,0 表示成功,非 0 表示失败
errmsg string 错误信息,成功时为 "ok"

errcode 不为 0 时,说明接口调用失败,可重试 1 次;若仍失败,将 errcodeerrmsg 展示给用户。

特殊错误码
errcode errmsg 含义 处理方式
851002 incompatible doc type 文档品类与所调用的接口不匹配 确认目标 URL 为 /smartpage/*;若不是,请跳转到对应品类的 skill

接口详述

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 3 files
skills/wecomcli-smartpage/SKILL.md
skills/wecomcli-smartpage/references/smartpage-create.md
skills/wecomcli-smartpage/references/smartpage-export.md

Related skills

Tags

markdown-publishing document-export async-operations cli-automation content-synchronization batch-processing document-management wecom-integration