weixin-game

Community

Build WeChat mini games with correct APIs and best practices.

Authorwukaikailive
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: weixin-game
Download link: https://github.com/wukaikailive/weixin-game-skill/archive/main.zip#weixin-game

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.