miniapp-devtools-cli-repair
About miniapp-devtools-cli-repair
miniapp-devtools-cli-repair is a skill for diagnosing WeChat mini program compile and preview failures through the official DevTools CLI. It prioritizes CLI evidence and limits automatic fixes to specific, repository-local issues.
Key features
- 01CLI-based compile and preview diagnosis
- 02IDE connectivity checks with open
- 03Error classification and fix boundaries
- 04Repository-scoped automatic repairs
- 05Operational repair reporting
Use cases
- 01Investigate mini program preview failures
- 02Identify project path or page configuration drift
- 03Separate CLI-visible issues from GUI or runtime problems
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ sun-sunshine06/ miniprogram-skills --skill miniapp-devtools-cli-repairAfter installing, type/miniapp-devtools-cli-repairin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
agents/openai.yamlreferences/cli-repair-playbook.mdexample-prompts.mdDetails
From the project READMEMiniapp Devtools Cli Repair
Overview
Use this skill when the user needs CLI-visible evidence from WeChat DevTools. Treat the official CLI as the primary observability surface for compile and preview failures.
Quick Start
- Read
references/cli-repair-playbook.md. - Confirm the official DevTools CLI exists and can print help.
- Use
opento establish IDE connectivity and the live service port. - Use
previewas the primary mini program compile check. - Classify the result as:
- CLI-visible and auto-fixable
- CLI-visible but not safe to auto-fix
- host or account blocker
- outside preview scope and better handled by GUI or service-level debugging
Core Rules
- Prefer the official WeChat DevTools CLI over screenshots for first-pass diagnosis.
- Treat CLI output, exit code, process state, and local logs as primary evidence.
- For miniapp compile diagnosis, prefer
previewoverengine build. - Use
openfirst when the live service port is unknown or the current IDE session is suspect. - Auto-fix only repository-scoped problems such as root-path drift, page-path mismatch, or small syntax issues surfaced with exact locations.
- If
previewis already green or the remaining blocker is a page-siderequest:fail, do not keep grinding CLI repair; move to GUI/runtime or service debugging. - Do not claim full coverage when the error exists only in GUI-only panels, runtime requests, or compile-mode menus.
Auto-Fix Boundary
Apply fixes automatically only when they are coherent and local to the repo:
- repair
project.config.json - repair
tsconfig.json - repair
app.json - delete wrong-root residue
- restore tracked files
- replace a pinpointed unsupported syntax form with an equivalent narrow fix
Do not auto-fix without explicit user direction when the change would alter app strategy, publish state, backend settings, or broad syntax across the repo.
Output Format
When answering, keep the result operational:
- what the CLI exposed
- whether the issue is auto-fixable
- what was changed or what further evidence is still needed
- the next command or user action
Resources
references/cli-repair-playbook.md: command ladder, timeout handling, and fix boundariesreferences/example-prompts.md: reusable trigger examples and evaluation notes