wecomcli-smartpage

Create, read, and edit WeCom smartpage documents via the wecom-cli command line.

2.0k|291|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-smartpage-pinvou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-smartpage
Source: https://github.com/Pinvou/pinvou-agent/tree/main/pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-smartpage
Command: npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-smartpage-pinvou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-cli, and includes references (resource) components.

What problem does it solve? It lets an AI agent operate WeCom (Enterprise WeChat) smart documents (smartpage) end to end—creating documents from Markdown, reading page trees, editing content at page or block level, and building data-driven pages with charts and forms—without manual work in the WeCom client. ## Core Features & Use Cases - Document creation and import: Create blank smartpages or import Markdown/MDX files in one step, then manage the page tree (create, rename, move, delete, layout). - Content editing: Append, overwrite, or perform block-level edits (insert, replace, delete) on page content, plus upload images and file attachments to the doc space. - Data-driven pages: Build dashboards with bound charts (column, bar, line, pie, combo, statistics, word cloud) and form pages whose buttons write records into the built-in smartsheet via ADDRECORD formulas. - Use Case: Ask the agent to turn a weekly report Markdown file into a WeCom smart document, then add a task-tracking page with a chart bound to the document's built-in data table. ## Quick Start Create a WeCom smart document from my Markdown report and return the document link.

Frequently Asked Questions about wecomcli-smartpage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a WeCom smart document from Markdown?

Use wecom-cli smartpage import with a JSON payload containing the document name and the local Markdown file path. Pure Markdown imports directly; rich components like cards, columns, and charts require MDX wrapped in smartpage and page tags.

How do I edit only part of a smartpage document?

Use smartpage blocks update for block-level edits. First call smartpage pages get with content_type set to block to obtain block IDs, then apply insertBefore, insertAfter, replace, or delete methods targeting those IDs.

Can I edit a published smartpage link from page.weixin.qq.com?

No. Published documents (b1_ prefix or page.weixin.qq.com domain) are read-only. All editing APIs require the edit-mode docid starting with a1_ from a doc.weixin.qq.com URL, so ask the user for the edit link.

How do I add a chart or form to a WeCom smart document?

First call smartpage databases get to obtain the built-in data table, then delegate field creation to the wecomcli-smartsheet skill, and only then append the chart or form MDX. Fields must exist before content references them or charts and ADDRECORD buttons will fail.

What are the limitations of the smartpage CLI?

It cannot export documents to PDF or Word, manage comments, versions, or recycle bin, or handle renaming, members, and permissions—those go to the WeCom client or the wecomcli-doc-manage skill. Record-level table operations are delegated to wecomcli-smartsheet.