What problem does it solve?
This Skill solves the common pain points of WeChat mini game development, where developers mistakenly use browser-specific APIs (like window, document, and DOM APIs) that are unsupported in the WeChat mini game runtime, leading to runtime errors, non-compliant code, and poor platform performance.
Core Features & Use Cases
- API Adaptation Guidance: Provides side-by-side comparisons of browser APIs and their WeChat mini game equivalents (e.g., document.createElement('canvas') → wx.createCanvas()) to eliminate compatibility errors.
- Platform Best Practices: Covers critical platform requirements including safe area layout to avoid overlapping the top-right menu button, 4MB main package size limits, and performance optimization techniques like object pooling and offscreen canvas caching.
- Use Case: If you are building a 2D canvas game for WeChat and encounter a "window is not defined" error, this Skill will guide you to replace invalid browser APIs with correct WeChat-specific implementations and follow platform rules to pass review.
Quick Start
Ask Claude Code to help you create a touch event manager for your WeChat mini game that uses the correct wx.onTouchStart API instead of browser touch event listeners.