wecomcli-smartpage

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

287|46|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/YanHaidao/wecom --skill wecomcli-smartpage-yanhaidao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-smartpage
Source: https://github.com/YanHaidao/wecom/tree/main/skills/wecomcli-smartpage
Command: npx skills add https://github.com/YanHaidao/wecom --skill wecomcli-smartpage-yanhaidao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It lets you create and edit WeCom smart documents (smartpage) directly from conversation—building page trees, writing MDX content, embedding charts and forms bound to built-in data tables—without opening the WeCom client. ## Core Features & Use Cases - Document creation and import: Create blank smart documents or import Markdown/MDX files in one step, then append or overwrite page content. - Page structure and block editing: Read the full page tree, create/delete/rename/move pages, and perform block-level insert, replace, or delete operations. - Data-driven pages: Build dashboards, task systems, and form pages whose charts and ADDRECORD buttons bind to the document's built-in data tables, with a full formula reference (FILTER, SUM, IF, ADDRECORD, and more). - Use Case: Ask the assistant to turn a weekly report Markdown file into a smart document, then add a chart page that visualizes records from the document's built-in data table. ## Quick Start Create a WeCom smart document from my Markdown file and add a page with a chart bound to its built-in data table.

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 the smartpage import command of wecom-cli with a name and the absolute file_path of your Markdown or MDX file. The response returns a document URL from which you extract the docid for later edits.

How do I edit only part of a smartpage document?

First call smartpage pages get with content_type set to block to obtain block IDs, then call smartpage blocks update with a method such as insertBefore, replace, or delete. Never use full-page overwrite for partial edits.

Why can't I edit a smartpage link from page.weixin.qq.com?

Links on page.weixin.qq.com with docids starting with b1_ are published read-only versions. All editing APIs require the edit-mode docid starting with a1_ from doc.weixin.qq.com, so ask the user for the editable link.

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

Charts and form buttons must bind to the document's built-in data table. Call smartpage databases get to retrieve the table IDs, set up fields via the smartsheet skill, then write the chart or form MDX referencing those fields.

What are the limitations of the smartpage skill?

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