Recover a WeChat Mini Program repository after wrong-root import, DevTools template residue, stale compile conditions, or TypeScript-recognition drift.
Recover a WeChat Mini Program repository after wrong-root import, DevTools template residue, stale compile conditions, or TypeScript-recognition drift.
Use when Codex needs to restore the intended repo shape, remove generated clutter, or tell the user exactly what to fix inside DevTools.
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars21
LicenseLICENSE
Default branchmain
Open issues3
Status
Archived
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md2,125 B
docsSUMMARY.md321 B
History
First seen on skills.sh
First recorded snapshot · 35 installs
SKILL.md
Miniapp Devtools Recovery
Overview
Use this skill when DevTools has polluted the repository or started compiling the wrong thing. Keep the cleanup minimal and restore tracked files before deleting residue.
Quick Start
Read references/devtools-recovery-checklist.md.
Inspect git status, repository root, project.config.json, project.private.config.json, and app.json.
Decide whether the problem is wrong import root, template residue, stale compile condition, or TypeScript-recognition drift.
Restore tracked files first, then delete only the generated residue.
Tell the user exactly which directory to import and which compile mode to use.
Core Rules
Treat repository root and miniapp code root as separate concerns.
Prefer restoring tracked files from version control before deleting generated clutter.
Keep project.private.config.json local-only; do not rely on it for shared project truth.
Remove generated template pages or helpers unless the app explicitly depends on them.
If DevTools complains about missing .js files while the repo authors in .ts, verify TypeScript recognition before rewriting the app to JavaScript.
If DevTools tries to start from a page not listed in app.json, suspect a stale custom compile condition first.
Output Format
When answering, keep the result short and operational:
what DevTools changed
what should remain in the repo
what to delete or restore
what the user must change in DevTools
Resources
references/devtools-recovery-checklist.md: cleanup rules and error-to-cause mapping
references/example-prompts.md: reusable trigger examples and evaluation notes