miniapp-devtools-cli-repair

miniapp-devtools-cli-repair is a skill for Codex from Sun-sunshine06/miniprogram-skills. It costs 76 tokens per session (621 once invoked), scanned A, original, MIT.

A diagnostic guide for finding WeChat Mini Program build and preview failures through the official command-line tools. WeChat DevTools is the desktop program used to build and test these mini apps.

In plain words
What is it for?
Use it to open a project, find the DevTools service port, run compile or preview checks, classify failures, and safely fix small project-level problems.
Why use it?
It provides command output, error codes, process state, and logs instead of making you rely only on screenshots. It also helps separate project errors from computer, account, or preview limitations.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to open a project, find the DevTools service port, run compile or preview checks, classify failures, and safely fix small project-level problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Sun-sunshine06/miniprogram-skills --skill miniapp-devtools-cli-repair
Clone the repo
git clone --depth 1 https://github.com/Sun-sunshine06/miniprogram-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for miniapp-devtools-cli-repair

README.md
[![agentmods](https://agentmods.dev/badge/skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair/github.svg)](https://agentmods.dev/skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair)
Your own site
<a href="https://agentmods.dev/skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair"><img src="https://agentmods.dev/badge/skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for miniapp-devtools-cli-repair

Your own site · 80×15
<a href="https://agentmods.dev/skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair"><img src="https://agentmods.dev/badge/skills/sun-sunshine06/miniprogram-skills/miniapp-devtools-cli-repair.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 621 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.00621
Opus 5.5 $0.00030 $0.00248
Sonnet 5.5 $0.00015 $0.00124
Haiku 4.5 $0.00008 $0.00062

Measured 1mo ago against content hash 1356e20b2b9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

miniapp-devtools-cli-repair scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/miniapp-devtools-cli-repair/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Miniapp 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

  1. Read references/cli-repair-playbook.md.
  2. Confirm the official DevTools CLI exists and can print help.
  3. Use open to establish IDE connectivity and the live service port.
  4. Use preview as the primary mini program compile check.
  5. 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 preview over engine build.
  • Use open first 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 preview is already green or the remaining blocker is a page-side request: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:

  1. what the CLI exposed
  2. whether the issue is auto-fixable
  3. what was changed or what further evidence is still needed
  4. the next command or user action

Read the full file on GitHub · 67 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 67 lines · 76 tokens per session scan A 1356e20b2b9f

Subscribe to this mod's changes

miniapp-devtools-cli-repair is a skill published in the GitHub repository Sun-sunshine06/miniprogram-skills (28 stars, last pushed 3d ago), licensed MIT. It adds 76 tokens to every session and 621 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.