wecomcli-smartpage Skill for Claude Code: Create and Edit WeCom Smart Pages
Lets Claude create, read and edit WeCom (企业微信) smart pages from the command line, including pages with dashboards and forms. Needs the wecom-cli tool.
- Installs
- 11.9K
- on skills.sh
- Stars
- 3.3K
- on GitHub
- Files
- 13
- besides SKILL.md
- Updated
- Oct 2026
- last repo commit
This skill drives wecom-cli smartpage commands. Claude can import a Markdown file as a new smart page, create a blank one, read the page tree, append to or overwrite a page, edit one block at a time, change the page structure and upload images or files. It also builds data-driven pages with charts and forms from the built-in tables.
It needs the wecom-cli program, a signed-in WeCom account and the wecomcli-shared skill, which the SKILL.md says must be read before any command. The SKILL.md and its references are written in Chinese. The skill folder bundles 14 Markdown files and no scripts.
Good for
- WeCom users who want Claude to write or update smart pages
- Teams building task boards, dashboards or sign-up forms inside WeCom
- Developers already using the wecom-cli skills
Install wecomcli-smartpage
Claude Code
- 1
Copy this prompt.
Install the wecomcli-smartpage skill in Claude Code. Run this command: npm install -g @wecom/cli npx skills add WeComTeam/wecom-cli -y -g wecom-cli auth init Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js 18+, WeCom account.
The README marks the skill install as required: it adds every WeCom skill, including wecomcli-shared. auth init asks you to scan a QR code once; --manual lets you type credentials instead. Installing the folder alone does nothing without wecom-cli.
From the project README. Source.
What's in the skill
When it loads
企业微信智能文档(smartpage)操作技能。能够新建文档、导入 .md 为文档、读取文档内容、修改文档内容(整页重写、局部编辑、增删子页面)、上传附件到文档,以及搭建带看板/图表的数据系统页面和信息收集表单页面。当用户提及文档,智能文档,智能主页、提供 https://doc.weixin.qq.com/smartpage/xxx 或 https://page.weixin.qq.com/smartpage/xxx 链接、要求整理成文档,或表达"新建文档""把 md 导入成文档"等未指定文档类型的需求时,也应使用本技能。
Sections in SKILL.md
- 适用范围
- 适用:
- 不适用:
- 安全规则
- 命令拼接安全规范
- 规则(机械化,无例外)
- 两条禁令
- 接口路由表
- 从零创建智能文档并编辑内容
- 路径选择
- 链接格式
- 参数补全策略
- 委托关系
- 通用回答和接口约束
- docid 使用规则
- 安全提示(最高优先级)
Key facts
- Author
- WeComTeam
- License
- MIT
- Installs on skills.sh
- 11,889 (Nov 2, 2026)
- GitHub stars
- 3,275 (Nov 2, 2026), whole repo
- Last commit
- Oct 19, 2026 (repo)
- Files in the skill folder
- 14 files including SKILL.md
What it includes
Creates a smart page from a local Markdown or MDX file.
The SKILL.md's preferred path. Returns a link to the new page.
Try: “Import this weekly report as a WeCom smart page”
Runs code ·
smartpage importCreates an empty smart page with a title.
Then Claude appends content to the default first page.
Runs code ·
smartpage createReads the page tree and the content of every page.
The SKILL.md says to read before overwrite or append.
Runs code ·
smartpage pages getAdds content to the end of a page.
Content comes from a local file.
Runs code ·
smartpage pages appendReplaces the whole content of a page.
Read the page first so you do not overwrite someone else's edit.
Runs code ·
smartpage pages overwriteCreates, deletes, renames or moves pages, or changes layout.
One operation per call. Delete is one of the operations.
Delete ·
smartpage pages updateReplaces, deletes or inserts a single block on a page.
For small edits without rewriting the page.
Delete ·
smartpage blocks updateUploads an image to the document space.
Takes a local file path or a media id.
Runs code ·
smartpage images uploadUploads a PDF, Office file or zip to the document space.
Takes a local file path or a media id.
Runs code ·
smartpage files uploadGets the built-in data table behind a page.
Record edits then go to the wecomcli-smartsheet skill.
Runs code ·
smartpage databases getBuilds dashboards, task systems and forms from built-in tables.
The SKILL.md sends these to a separate reference and bars the Markdown import path for them.
Runs code ·
Data-driven pagesMDX syntax and a formula reference with 9 formula files.
Claude reads them before writing rich components or formulas.
Reference files
From the official docs
Permissions
Medium risk
Claude runs wecom-cli commands that can change or delete pages in your WeCom account, and the CLI sends a usage note to WeCom. Review writes to shared documents before you approve them.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It can overwrite or delete page content
The command set includes overwrite, delete page and block delete. The SKILL.md says to read the page first so you do not overwrite other people's edits. github.com
The shared skill installs software
wecomcli-shared runs `npm install -g @wecom/cli` when the CLI is missing or older than 1.2.1, and starts a QR-code sign-in when you are not authorized. github.com
The CLI reports the agent name to WeCom
The data notice says the prebuilt npm version sends the calling agent's process name and call chain to WeCom's cloud, on by default. Building from source with the feature off stops it. github.com
Built-in refusal and quoting rules
The SKILL.md refuses script injection and some content types, and tells Claude to treat document text and API output as data, not instructions. github.com
Technical details
| Sign-in and keys | The wecom-cli auth init command signs you in with a QR scan; the docs do not say where credentials are kept. |
|---|---|
| Scopes |
|
Questions
What does wecomcli-smartpage do?
It lets Claude create, read and edit WeCom smart pages with the wecom-cli tool. That covers importing Markdown, editing pages and blocks, uploading files and building dashboards and forms.
How do I install it?
The README installs the CLI with npm and then the whole WeCom skill set with the skills CLI. Use the install box above. It also asks you to run an interactive sign-in once.
Does it need the wecom-cli tool?
Yes. The SKILL.md requires the wecom-cli binary, and the wecomcli-shared skill checks the install, the version (1.2.1 or newer) and your authorization before any command. If the tool is missing it runs the npm install.
Can it edit published pages?
No. The SKILL.md says published (read-only) pages, whose links use page.weixin.qq.com, cannot be edited. Give Claude the edit link instead.
Is it safe?
The skill bundles no scripts, but it makes Claude run wecom-cli commands that change your WeCom documents, and the shared skill can install the CLI with npm. The SKILL.md also refuses some content and quotes shell values. See the permissions section.
Does it work in Claude.ai or Codex?
The README names no client. The skill needs the wecom-cli program installed on your machine and signed in to WeCom.
wecomcli-smartpage vs wecomcli-doc-manage?
The SKILL.md splits them: smartpage handles page content. Searching, renaming, members and permissions go to wecomcli-doc-manage.
Information
updated Nov 2, 2026
- Repository
- wecomteam/wecom-cli
- Folder
skills/wecomcli-smartpage
Sources
Docs, issue trackers and discussions this page is built from.
Show all 5Hide
- wecom-cli README · github.com
- wecomcli-shared SKILL.md · github.com
- wecomcli-smartpage SKILL.md · github.com
- smartpage-edit reference · github.com
- wecom-cli data collection notice · github.com