WeChat DevTools Workflow
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md and install @tencent-adm/wechatide-skill into the current AI assistant.
About this skill
Problem
WeChat DevTools workflows split across CLI, windows, project config, simulator, cloud environment, and upload confirmation. When an agent guesses commands directly, it can hit command not found, expired login, tokenRequired, unconfirmed async taskId, or cross-scene tool misuse.
How it works
The skill treats the WeChat DevTools workflow as a single entry point, assuming wechatide is already available locally. Key steps:
- Check status first: before the first call, run
check_wechatide_statusand inspectversionRelation,loginExpired, andtokenRequired. - Route by intent: initializer for project windows and login, project-manager for project list, project-config for
project.config.json, compiler for compile and refresh, previewer for preview and upload, automator for page automation, debugger for diagnostics and screenshots, cloudbase-operator for cloud functions and resources. - Respect async rules: actively poll only for
loginorauthtasks; for upload, deletion, cloud writes, and preview confirmation, recordtaskIdand wait for user confirmation instead of resending. - Carry context across scenes: pass
project,confirmed,blocker, andpendingTaskwhen switching scenes, avoiding duplicate window opening or repeated status checks.
Boundaries
Use this when the current project is clearly a WeChat mini program or mini game, and the goal is compile, preview, upload, login, project configuration, page automation, runtime diagnostics, screenshots, log inspection, or cloud environment work. Avoid it for general coding assistance, desktop automation unrelated to mini programs, or unregistered tool calls. Reuse confirmed token, project path, and async task state instead of guessing retries.
Use Cases
- When maintaining a WeChat mini program, use the agent to update base library settings in project.config.json and trigger compile refresh.
- Before uploading a trial build, complete login checks, preview confirmation, and upload tasks without resending the same async taskId.
- When debugging page issues, use automated clicks, console/network inspection, and simulator screenshots to capture evidence.
- When integrating cloud functions, inspect cloud environment, function, and resource states, then handle user-confirmed write tasks.
Best For
- WeChat mini program frontend engineers: hand off local project compile, preview, upload, and login checks to the agent.
- Mini game QA engineers: use automated clicks, assertions, screenshots, and runtime logs to locate page issues.
- Full-stack engineers: manage project.config.json, cloud functions, cloud databases, and cloud storage settings.
- Internal platform engineers: diagnose WeChat DevTools installation, version compatibility, tokens, and async task states.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.
Control Windows WeChat through GUI automation to search contacts and send text, images, or files without official APIs.