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.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.svg" alt="Measured on agentmods" 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 $0.00038 $0.00311
Sonnet 5 $0.00015 $0.00124
Haiku 4.5 $0.00008 $0.00062

Measured 7d ago against content hash 1356e20b2b9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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. 7d 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 (21 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 621 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

manage-skills

A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.

sangrokjung/claude-forge · 54 tokens

systematic-debugging

Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.

sangrokjung/claude-forge · 53 tokens

error-translator

A Chinese-language assistant that translates English programming errors and explains what they mean. It covers common errors from languages and frameworks including Python, JavaScript, TypeScript, Java, and others.

laolaoshiren/claude-code-skills-zh · 28 tokens

eslint-fix

A project-aware assistant for finding and fixing ESLint errors, warnings, and configuration compatibility problems. ESLint is a tool that checks JavaScript and TypeScript code for style and common mistakes.

laolaoshiren/claude-code-skills-zh · 79 tokens

perf-profiler

A performance investigation guide that uses repeatable measurements and profiling evidence to find where software spends time or resources. Profiling records runtime activity such as CPU use, memory use, database work, or network delays.

laolaoshiren/claude-code-skills-zh · 78 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens