WeChat Mini Game Helper
Paste the following prompt into your AI chat to install this skill:
Please install @tencent-adm/weixin-minigame-helper using https://skillhub.cn/install/skillhub.md.
About this skill
Problem Solved
When AI assistants work on WeChat Mini Games, they often need MCP tools for tasks such as run_game, log inspection, and game-related workflows. The practical blocker is rarely code writing; it is the fragmented environment: Node.js may be missing or too old, the MCP package may not be installed, the mcp.json file may differ across AI hosts, or a configured entry may exist but not be loaded by the active assistant. When multiple agents and configuration directories coexist, troubleshooting becomes noticeably harder. This skill turns that setup path into a controlled, inspectable flow.
How It Works
It does not depend on a specific IDE plugin stack. It assumes Node.js 18 or newer and uses the @weadmin/weixin-minigame-helper-mcp service. The flow starts by trying the MCP call directly. If that fails, helper scripts check Node status, package resolution, candidate configuration files, and a recommendedAction. The decision evidence is concentrated in script output JSON fields, so an AI assistant can follow a branch without loading all script sources into context. When the host is confidently detected, the skill can install or configure the MCP entry. When the host is weak or ambiguous, it returns a manualSnippet so the assistant can give the user a JSON snippet to paste, rather than guessing the wrong config file.
Boundaries and Caveats
This is an MCP-only workflow and does not fall back to shell-based previewing when MCP is unavailable. A vscode signal is weak: it may be vanilla VSCode, a fork such as Cursor, Windsurf, or CodeBuddy, or an internal variant. When targetHostCaveat or ask-user appears, manual pasting is the safer path. If the MCP package can start but the active assistant still cannot call it, the issue usually points to a mismatch in config path, transport mode, or host variant. After configuration, verify the MCP server and call the tool directly instead of recommending an editor restart as a normal step.
Use Cases
- In Cursor or CodeBuddy with a WeChat Mini Game project, check whether MCP is available before calling `run_game` for preview.
- When an assistant says the MCP tool is missing, use the Node, package, and mcp.json checks to diagnose without restarting the IDE.
- If multiple agents make the target mcp.json ambiguous, hand the manualSnippet to the user and let them paste it into the right config.
- When npm registry slowness causes MCP initialization timeout, inspect the verify stage, warm the package, then retry the handshake.
Best For
- Engineers building WeChat Mini Games in Cursor or CodeBuddy who need the assistant to call MCP tools for preview reliably.
- Maintainers of multiple AI agent setups who want fewer MCP failures caused by the wrong mcp.json file.
- Mini program developers who need to diagnose Node, package installation, and MCP server startup failures.
- Frontend leads who want a repeatable troubleshooting flow for MCP environment checks.
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.