WeChat Mini Program Pitfall Avoidance and Collaboration Guide: Full-Cycle Skills for Production Projects

Preface

After a WeChat Mini Program goes live, common issues often aren’t about “not knowing how to write pages,” but rather rejected reviews, ads occupying the screen, inexplicable loss of local data, or modifying a single spot in someone else’s repository only to trigger a cascade of framework errors. General development Skills often focus on scaffolding and APIs, speaking little about the discipline of “configurations that should be written into app.json on day one” and “modifying only specified features in existing projects.” Below is an introduction to the WeChat Mini Program Pitfall Avoidance & Collaboration Guide (@user_6b038fe4/wechat-miniprogram-guardian) on SkillHub, which organizes lessons from production environments into a guide executable by Agents.

What is this

WeChat Mini Program Pitfall Avoidance & Collaboration Guide is an Agent Skill for WeChat Mini Program production projects, adopting the universal SKILL.md format, published by SkillHub user user_6b038fe4. Official access points:

  • Page: https://skillhub.cn/skills/user_6b038fe4/wechat-miniprogram-guardian
  • API Path: https://api.skillhub.cn/user_6b038fe4/wechat-miniprogram-guardian

On SkillHub, it is categorized under dev-programming, with public data showing a rating of 99778 and approximately 900 downloads (subject to platform display).

It solves two categories of problems: building from scratch by front-loading pitfalls regarding review, ads, and storage into the foundation; and maintaining live Mini Programs by handling review rectifications, ad anomalies, data loss, and framework errors step-by-step, while adhering to collaboration boundaries when working on others’ projects.

Core Features

The materials align with the Skill description, and capabilities can be summarized into two tracks.

Track A: Building from Scratch (Foundation done right on Day 1)

  1. app.json Pitfall-Proof Configuration: Clarify global configurations prone to causing review or runtime issues early to reduce rework later.
  2. Local-First Storage Mode: Provide actionable storage strategies centered on data persistence to reduce incidents of “user data loss after saving.”
  3. Dual Ad System Separation: Distinguish and separate the integration methods for two ad systems to avoid online issues like ads occupying the screen or abnormal placement.
  4. Built-in Review Compliance: Incorporate common compliance requirements into the building process, rather than rushing to prepare materials the night before submission.

Track B: Maintaining and Fixing Live Projects

  1. Review Rectification: Organize modification and resubmission strategies based on rejection reasons.
  2. Ad Placement Anomalies: Troubleshoot and fix issues regarding ad display and configuration.
  3. Data Saving Loss: Provide guidance on locating and fixing issues in storage and synchronization chains.
  4. Framework Error Identification: Distinguish between business code issues and base library/framework layer issues to avoid erroneous modifications.
  5. Discipline for Modifying Others’ Projects: Control the scope of changes in unfamiliar repositories to reduce collateral risks.

Iron Rules of Collaboration (Three emphasized by the Skill)

  • Verify Before Acting: Confirm phenomena using logs, real devices, or minimal reproductions before changing code.
  • Modify Only Specified Features: Do not use the opportunity for large-scale refactoring.
  • Isolate Demonstrations: Separate demo, debug, and production logic to avoid polluting online behavior.

Installation & Activation

SkillHub installation instructions can be found at https://skillhub.cn/install/skillhub.md. First, perform a CLI check, then install to the current Agent’s skills directory (installing to the wrong directory will prevent the Agent from reading the skill).

1. Check or Install SkillHub CLI

command -v skillhub && skillhub --version

If not installed, you can execute (full installation includes default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this Skill

The package name parsed by the CLI is @user_6b038fe4/wechat-miniprogram-guardian, and the internal slug is wechat-miniprogram-guardian. During installation, use --dir to point to the skills directory of the current environment. For example, for Cursor:

skillhub install wechat-miniprogram-guardian --namespace user_6b038fe4 --dir ~/.cursor/skills/

For Claude Code, set --dir to ~/.claude/skills/; for Codex, it can be ~/.codex/skills/ or .agents/skills/ under the project (refer to your current client documentation).

3. Ask Agent to Install via Natural Language (Optional)

Consistent with the prompting method for other user Skills on the site, you can send the following text to an Agent that supports SkillHub:

Please install @user_6b038fe4/wechat-miniprogram-guardian according to https://skillhub.cn/install/skillhub.md.

After installation, refresh or restart as required by the client to ensure SKILL.md is loaded. If skillhub install fails to download, first check the SkillHub page to confirm if the skill is still available, then retry or contact the publisher.

Typical Usage

This Skill has no separate script entry; usage is describing the scenario in conversation, allowing the Agent to proceed according to the checklists and steps in SKILL.md. The following expressions align with the trigger conditions described in the Skill and can be reused directly.

Creating a New Mini Program

I want to build a WeChat Mini Program from scratch. Please follow the WeChat Mini Program Pitfall Avoidance & Collaboration Guide: first list the app.json pitfall-proof items, local-first storage, and ad separation plans, along with review compliance checkpoints.

Rejected Review

The Mini Program review was rejected, with the reason being [paste WeChat backend original text]. Please follow the pitfall avoidance guide for review rectification, modifying only content related to the rejection, and explain items I need to self-test.

Ad or Data Issues

Online ad placement anomaly / users report data loss after saving. Please list verification steps before changing code, and distinguish whether it is a configuration, storage, or framework issue according to the Skill.

Modifying Others’ Projects

This is someone else's Mini Program repository, and I am only allowed to modify [specific feature]. Please adhere to verify-before-acting, modify-only-specified-features, and isolate demonstrations. Explain the scope of impact before making changes.

Through the above steps, the Agent should prioritize referencing the specifications within the Skill rather than arbitrarily expanding the scope.

Use Cases & Notes

Who is it for

  • WeChat Mini Program developers preparing to launch or already launched, requiring production-grade discipline.
  • Those using Agents with Skills support (like Cursor, Claude Code, Codex) to write Mini Programs or troubleshoot online issues, who want a set of fixed pitfall avoidance and collaboration scripts.

Recommended to enable in the following situations

  • Creating new Mini Programs, rejected reviews, ad placement anomalies, data saving loss, inexplicable framework errors, making functional modifications in others’ projects.

Notes

  • The functional descriptions in this article come from the public SkillHub profile and CLI installation parsing results; specific configuration fields and code snippets shall be subject to the installed SKILL.md. This article does not replace the official Skill content.
  • WeChat Mini Program platform rules and base libraries are updated frequently. Regarding review submission, privacy, and advertising policies, you must still refer to the latest explanations in the WeChat Open Documentation.
  • If the official API page returns 405 or the installation download returns 404, the status of the SkillHub webpage skillhub.cn/skills/user_6b038fe4/wechat-miniprogram-guardian shall prevail.

Conclusion

WeChat Mini Program Pitfall Avoidance & Collaboration Guide consolidates “review, ads, storage, collaboration boundaries” from scattered experiences into a line executable by Agents: laying foundations when creating, and minimizing collateral damage during maintenance. If you are working on a production-oriented Mini Program, you can open the official page on SkillHub to view details and install: https://skillhub.cn/skills/user_6b038fe4/wechat-miniprogram-guardian.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye