Preface¶
When using Agents to write WeChat Mini Programs, the common bottleneck isn’t “whether code can be generated” but “whether it can run in a real environment”: compiling, previewing, viewing the console, clicking the simulator, and uploading trial versions in WeChat Developer Tools. These steps often still rely on manual window switching, leaving the Agent stuck at just modifying files.
The WeChat Developer Tools Skills (coordinates @tencent-adm/wechatide-skill) is an enterprise-grade Skill package published by the WeChat Mini Program team on SkillHub. It encodes the above workflows into SKILL.md and scene routing that Agents can follow, and calls official tool capabilities through the local wechatide CLI. Below we introduce what it is, what it can do, how to install it, and typical usage.
What Is This¶
One-sentence positioning: A root Skill for WeChat Developer Tools workflows, covering creation and import of Mini Programs and Mini Games, compilation, preview, and upload, login and project management, page automation, debugging evidence collection, cloud development, as well as installation and updates of the developer tools.
- Maintainer: WeChat Mini Program team (SkillHub category
dev-programming, sourceenterprise) - Current version:
0.3.2(consistent betweenskill.yamlin the package and the SkillHub page) - SkillHub: https://www.skillhub.cn/skills/tencent-adm/wechatide-skill (API entry: https://api.skillhub.cn/tencent-adm/wechatide-skill)
- Tags:
requires_api_key=false(the Skill itself doesn’t enforce an external API Key; the business side may still need a CLI access token within WeChat Developer Tools, see below)
The Skill package uses the generic SKILL.md format, with multiple scenes (such as installer, initializer, compiler, etc.) branching from the root entry. Agents route based on user intent rather than stuffing the entire tool table into the model at once.
Core Functions¶
The following capabilities are all derived from the SKILL.md, references/tool-index.md, and scene documents in the package, summarized by workflow.
1. Environment and Installation (installer)¶
- Check whether WeChat Developer Tools is installed locally, whether the NW.js / Electron version meets the threshold, and whether the
wechatideCLI is available (check-installation.mjs) - Resolve official download links by stable or Nightly channel (
resolve-download.mjs), guide installation or updates - Note: Daily business sessions do not run installation checks by default; the installer is only entered when the
wechatidecommand is unavailable, the user explicitly requests installation/update, or a clear version compatibility blocker occurs
2. Login, Window Opening, and Project Context (initializer / project-manager)¶
check_wechatide_status: login state, relationship between skill and tool versions (versionRelation), whether CLI token is enabled (tokenRequired)login, open/close project windows, query AppID list- Project list import, query, removal from list (does not delete disk files)
3. Compilation, Preview, and Upload (compiler / previewer)¶
- Simulator page opening, refresh, npm build, single-file WXML/WXSS compilation diagnostics
- Preview (including
auto_previewdirect push to developer’s WeChat), generate preview QR codes, upload trial versions
4. Automation and Debugging (automator / debugger)¶
- Click, input, scroll, page navigation and assertions within the simulator, generate automation scripts
- Read console / network (grep filtering), screenshot evidence collection, mock or call
wxAPIs, clean debug cache
5. Cloud Development (cloudbase-operator)¶
- Cloud environment list, cloud function deployment and query, cloud database read/write, cloud storage management
6. Local Configuration (project-config)¶
- Modify
project.config.json(base library, domain verification, compilation switches, etc.), does not go through MCP, and can skip the pre-run gate when not callingwechatide
7. External Links for Map-Related Capabilities¶
The Mini Program map component or Tencent Location Service Web API are not handled within this package. The documentation points to map-related external Skills on SkillHub (see references/map-skill-index.md).
Unified invocation form (package convention):
wechatide -c <clientName> <toolName> [flags...] [--token <cliAccessToken>]
The <clientName> in -c must match the client in the developer tools authorization dialog (e.g., Cursor, Claude); the tool name is a positional argument in underscore style. Specific parameters should refer to wechatide <toolName> -h or references/tool-index.md.
Installation and Enablement¶
Two layers: Skill package (workflow for Agents to read) and WeChat Developer Tools + wechatide CLI (local execution layer).
1. Install the Skill Package via SkillHub¶
The installation instructions provided by the SkillHub page are: follow the SkillHub installation documentation to install @tencent-adm/wechatide-skill.
If the SkillHub CLI is not yet installed locally, you can first run:
command -v skillhub && skillhub --version
If not installed (documentation recommends full installation or CLI only):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# Or CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing the Skill, you must use --dir to point to the current Agent’s skills directory, otherwise it will default to ./skills/ which may not be recognized. Common path examples in SkillHub documentation:
| Agent / Client | Skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Installation command example (replace the directory with the corresponding path in your current environment):
skillhub install @tencent-adm/wechatide-skill --dir ~/.cursor/skills/
You can also give the official prompt to the programming Agent and let it complete the above steps according to skillhub.md.
2. Local WeChat Developer Tools and wechatide¶
The Skill assumes by default that wechatide can be called locally. When the command doesn’t exist, the Agent should enter the installer scene in the package and run:
node skills/installer/scripts/check-installation.mjs
And download, install, or update WeChat Developer Tools according to the diagnostic results.
3. Pre-run Gate (Agent Side)¶
When wechatide needs to be called, each session typically starts with a version and login check (check_wechatide_status does not need --token):
wechatide -c Cursor check_wechatide_status --skill-version 0.3.2
<skill-version> must match the version in the loaded package’s skill.yaml. If it returns loginExpired: true, first login then recheck; if tokenRequired: true, subsequent business commands must carry the CLI access token --token configured by the user in “Settings → Security”.
Typical Usage¶
The following examples can be reproduced when WeChat Developer Tools is installed locally and wechatide is available; paths and AppIDs need to be replaced with your project.
1. Session start: status check
wechatide -c Cursor check_wechatide_status --skill-version 0.3.2
Based on the returned versionRelation, loginExpired, tokenRequired, decide whether to login or supplement --token.
2. Import project to tool list (does not auto-open window)
wechatide -c Cursor project_import --project /absolute/path/your-miniprogram-directory
3. Compile and open specified page
First open the project window according to Skill routing (initializer), then call compiler-class tools, for example:
wechatide -c Cursor simulator_open_page --project /absolute/path/your-miniprogram-directory --path pages/index/index
4. Preview push to developer’s WeChat
wechatide -c Cursor auto_preview --project /absolute/path/your-miniprogram-directory
5. Debugging: filter console
wechatide -c Cursor get_simulator_console --project /absolute/path/your-miniprogram-directory --command "grep -i error"
When operations involve upload, deletion, cloud writes, etc., tools may return pending + taskId; except for login, most scenarios require user confirmation within the developer tools. The Agent should record pendingTask and query before continuing, rather than directly resending the same operation (see references/async-task-polling.md in the package).
The correspondence between user intent and scenes is subject to the routing table in the root SKILL.md, for example: only modifying project.config.json → project-config; preview/upload → previewer; cloud function deployment → cloudbase-operator.
Applicable Scenarios and Notes¶
Who it’s for
- Users already using Agents that support Skills like Cursor, Claude Code, Codex, and mainly doing WeChat Mini Programs or Mini Games
- Those who want the Agent to not only modify code but also drive developer tools to complete compilation, preview, automated clicking, log and network troubleshooting, trial version upload, cloud development operations and maintenance
Limitations and Notes
- Dual dependency: Just installing the Skill package is not enough; the local machine still needs a compatible version of WeChat Developer Tools and a working
wechatideCLI. - Two-layer authorization:
-c <clientName>and CLI access token are independently verified; after enabling the token, business commands must carry--token. - Don’t fabricate tools: Tool names and parameters should refer to
references/tool-index.md,wechatide-tools/references/tools.yaml, andwechatide <id> -h. - Asynchronous tasks: Except for login, do not blindly poll or repeatedly submit
taskIdthat requires user confirmation. - SkillHub data: The ratings and download counts shown on the page may change; at the time of writing, SkillHub scraping shows a rating of 100000 and 10753 downloads (subject to the data when you open the page).
Conclusion¶
The WeChat Developer Tools Skills converge the “operable, debuggable, verifiable” aspects of Mini Program development into executable workflows and wechatide tool calls for Agents, reducing the division-of-labor gap where Agents only modify files and humans manually click tools. After installing the Skill package, you still need to ensure that the local developer tools and CLI are ready, and comply with the pre-run gates and asynchronous task rules in the package.
Official SkillHub address: https://www.skillhub.cn/skills/tencent-adm/wechatide-skill