mp-cli-sup

Debug live WeChat Mini Programs via the vince-mp JSON CLI with a persistent session.

5|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/VincentJiang06/skills --skill mp-cli-sup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mp-cli-sup
Source: https://github.com/VincentJiang06/skills/tree/main/skills/mp-cli-sup
Command: npx skills add https://github.com/VincentJiang06/skills --skill mp-cli-sup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Debugging a live WeChat Mini Program through automation typically suffers from per-command reconnection lag and unstable element references. This Skill establishes one persistent session via the system vince-mp JSON CLI, so subsequent commands reuse the same connection and element uids remain stable across separate invocations.

Core Features & Use Cases

  • Persistent Session Workflow: Connect once to WeChat DevTools and reuse the session for instant repeated commands, eliminating reconnect overhead.
  • Stable Element Interaction: Mint a uid with query or snapshot, then tap or input by that uid in later calls without re-querying.
  • Camera-less Scan & Media: Drive scan smoke tests without a physical camera and instrument Skyline Canvas or Camera with explicit, reversible mocks.
  • Cross-stack Diagnostics: Run project health checks (TypeScript compilation and .js freshness) and pull server-side error logs by requestId.

Quick Start

Use the mp-cli-sup skill to connect to your running WeChat Mini Program in DevTools, inspect its current page data, query a button element by CSS selector, and tap it to verify the interaction succeeded.

Frequently Asked Questions about mp-cli-sup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect page data and route information in a live WeChat Mini Program?

Yes, you can query and tap elements using stable uids through the vince-mp JSON CLI. By minting a uid during an initial query or snapshot, subsequent tap and input commands reuse the same persistent session reference without re-querying the element.

Can I run camera-less scan smoke tests for WeChat Mini Programs?

Yes, cross-stack diagnostics correlate frontend console logs with backend error logs by requestId. The persistent CLI session pulls server-side error logs and runs project health checks including TypeScript compilation and .js freshness verification.

What prerequisites are needed to debug WeChat Mini Programs via persistent CLI?

Persistent CLI debugging eliminates per-command reconnection lag found in standard automation approaches. By maintaining one stable connection to WeChat DevTools, element uids remain valid across separate command invocations, enabling faster and more reliable runtime inspection.

Why does my WeChat Mini Program automation lose element references between commands?

Running project health diagnostics via the vince-mp CLI checks TypeScript compilation status and verifies .js file freshness. These diagnostics operate through the persistent session to quickly identify build configuration issues within the WeChat Mini Program project.