AI Agent Hub
Back to skills
WeChat Mini Program Development Assistant icon

WeChat Mini Program Development Assistant

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_36c7efa2/wechat-miniapp-zh according to https://skillhub.cn/install/skillhub.md.

About this skill

Problems to Solve

WeChat Mini Program development differs significantly from standard web development: it lacks DOM, window, or localStorage (using wx.setStorage instead), relies on routing via wx.navigateTo rather than React Router or Vue Router, has limited npm package compatibility, and depends on WeChat-specific APIs for login, payment, and messaging. Additionally, the review process often rejects submissions with vague clauses, making it hard for developers to pinpoint issues.

Core Capabilities and Key Steps

This skill provides targeted guidance with the following core capabilities:

  • Technology Selection: Compares native development, Taro (React-style), and uni-app (Vue-style) to recommend solutions based on team tech stack and multi-platform needs. For example, pure WeChat apps might opt for native to optimize performance, while cross-platform projects consider Taro or uni-app.
  • Key API Quick Reference: Offers quick lookup for APIs like login (e.g., wx.getUserProfile), payment (with notes on certificate setup and idempotent callbacks), and subscription messages, highlighting common pitfalls to avoid outdated or incorrect usage.
  • Review Pitfall Avoidance: Summarizes five main rejection reasons, such as missing test accounts, virtual payment restrictions, and inducement to share, with specific fixes—for instance, iOS apps must disable payment gateways or use Apple IAP.
  • Architecture Design: Guides decisions between cloud development and self-built backends. Cloud development suits MVPs or lightweight apps, offering serverless convenience but higher costs; self-built backends are for long-term products, requiring domain registration and maintenance.

The skill's workflow involves first understanding the scenario (e.g., business type, team tech stack), then providing solutions (like selection tables, code examples), and finally using a self-check list to ensure coverage of version compatibility, compliance, and other details.

Applicability Boundaries and Notes

This skill does not replace writing complete business code due to diverse scenarios, nor does it cover UI design or pure account tasks like payment certificate applications. Developers should note:

  • Compliance: Privacy agreements must be configured (e.g., __usePrivacyCheck__: true in app.json), user data collection must be minimized, and third-party SDKs must be listed in the agreement.
  • Cost Considerations: Cloud development costs increase with DAU, while self-built backends require advance domain registration (at least 1 month).
  • Content Security: User inputs must pass safety checks via the security.msgSecCheck API.

By focusing on these aspects, the skill helps developers navigate the complexities of WeChat Mini Program development, but it should be applied flexibly based on specific business needs.

Use Cases

  • When a team starts developing a WeChat Mini Program from scratch, evaluate the pros and cons of native, Taro, or uni-app for technology selection.
  • During WeChat payment integration, face complexities with certificate application and callback handling, consulting the API quick reference for solutions.
  • After submitting a Mini Program for review, receive a vague rejection for 'violating terms,' using the skill to analyze five common rejection reasons and apply fixes.
  • When choosing backend architecture, decide between cloud development and self-built servers based on MVP budget and long-term maintenance needs.

Best For

  • A technical manager responsible for a new WeChat Mini Program project, needing to make technology selection decisions between React and Vue teams.
  • An independent developer planning to launch an MVP quickly using cloud development, concerned about cost control and future migration.
  • A frontend engineer newly assigned to a WeChat Mini Program project, unfamiliar with payment API integration and review processes, requiring quick onboarding.
  • A product lead in a startup team, ensuring the Mini Program complies with privacy agreements and content security regulations to avoid review rejections.