wechat-game-club
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wechat-game-club" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-159c31629c6fa15c68f4f38d751ceb2b1d596b2ab2efe3638c9b0ecc3fed57ea. Verify the upstream source and version against https://skillhub.cn/skills/user_c830ad09/wechat-game-club before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use when adding or fixing a WeChat mini-game Game Club entry, game circle button, wx.createPageManager integration, openlink configuration, in-game jump link wiring, or native Canvas JavaScript mini-game social/community entry.
Introduction source: third_party · user_c830ad09 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Use when adding or fixing a WeChat mini-game Game Club entry, game circle button, wx.createPageManager integration, openlink configuration, in-game jump link wiring, or native Canvas JavaScript mini-game social/community entry.
- Testing
- Not tested
Browse files
Frontmatter
name: wechat-game-club
description: Use when adding or fixing a WeChat mini-game Game Club entry, game circle button, wx.createPageManager integration, openlink configuration, in-game jump link wiring, or native Canvas JavaScript mini-game social/community entry.Wechat Game Club
Overview
Add a WeChat mini-game Game Club entry from a single MP backend openlink. Keep the integration local to the mini-game: no backend, no cloud development, no third-party engine.
Workflow
- Read the target project's
AGENTS.mdor equivalent rules first. - Confirm the project is a WeChat mini-game, usually with
game.js,game.json,project.config.json, and native Canvas JavaScript. - Ask for the Game Club in-game jump link only if the user did not provide it. Treat it as the MP backend
openlink. - Add or update a bridge module for
wx.createPageManager. Prefer copyingassets/game-club-bridge.jsand replacing__GAME_CLUB_OPENLINK__. - Wire one visible game UI entry to
bridge.open(). Use the existing renderer/input/menu pattern; do not introduce a DOM button in Canvas games. - Make repeated taps idempotent with a
loadingflag and reuse the page manager instance. - Validate with syntax checks and a small search pass for placeholders.
Code Pattern
Use this shape unless the project already has an equivalent abstraction:
const { GameClubBridge } = require('./js/game-club');
const gameClub = new GameClubBridge(typeof wx !== 'undefined' ? wx : null, {
openlink: 'OPENLINK_FROM_MP_BACKEND'
});
// In an existing click handler:
gameClub.open();
Copy assets/game-club-bridge.js when a bridge does not exist. If a bridge exists, patch it instead of creating a second one.
UI Wiring Rules
- Put the entry where the project already places social/community actions, usually the home screen, pause menu, or side action rail.
- In Canvas games, draw the button in the renderer and add hit detection in the existing input handler or game state click router.
- Keep the button hidden or disabled only if the surrounding UI already has such states; do not silently remove the action when unsupported.
- On unsupported WeChat versions/devices, call
wx.showToast({ icon: 'none' })or the project's toast helper.
Error Handling
Map common load failures to user-readable messages:
| Code | Meaning | Suggested message |
|---|---|---|
-1 |
invalid openlink |
tell the user the Game Club openlink is invalid |
-2 |
WeChat version unsupported | tell the user the current WeChat version is unsupported |
-3 |
device unsupported | tell the user the current device is unsupported |
-6 |
network issue | ask the user to retry later |
-7 |
too frequent | ask the user to retry later |
-8 |
version mismatch | tell the user the openlink does not match the current version |
Validation
Run the project's normal JavaScript syntax checks. For no-build mini-games, this is commonly:
node --check game.js
Get-ChildItem js -Filter *.js | ForEach-Object { node --check $_.FullName }
rg -n "__GAME_CLUB_OPENLINK__|TODO|createPageManager|GameClubBridge" .
Also verify in WeChat Developer Tools on a real mini-game compile target, because wx.createPageManager behavior is runtime-specific.
Common Mistakes
- Do not hard-code another project's
openlink. - Do not add backend, cloud storage, or npm/build tooling only for Game Club.
- Do not create a second
game-club.jsif the project already has one. - Do not treat
openlinkas a web URL; pass it directly topageManager.load({ openlink }). - Do not call
show()beforeload()resolves.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对微信小游戏开发者,解决 Game Club 入口集成的具体技术痛点
- 提供了从获取 openlink 到 UI 布线、错误处理的完整闭环方案
Highlights
- 触发词精准完整,覆盖添加/修复 Game Club 入口、game circle 按钮、wx.createPageManager 集成等多种场景
- 边界清晰,易于理解何时使用该 Skill
Areas to improve
-
缺少显式 'When to Use' 章节 Reported severity: Minor
文档结构完整,但缺少显式的 'When to Use' 章节标题,虽然 description 和 Overview 已涵盖相关内容。
Recommendation: 建议添加显式的 'When to Use' 章节,进一步提升文档结构的清晰度。
Highlights
- 文档结构完整,包含 Overview、Workflow、Code Pattern、UI Wiring Rules、Error Handling、Validation、Common Mistakes 等章节
- 提供了详细的代码示例和错误码映射表
Areas to improve
-
未明确提及 wx.createPageManager 不存在时的降级处理 Reported severity: Minor
虽然覆盖了 wx.createPageManager 调用的各种错误码,但未明确说明当 wx.createPageManager API 本身不存在时的处理方式。
Recommendation: 建议在 Error Handling 或 Common Mistakes 部分补充说明 wx.createPageManager 不存在时的降级处理策略。
Highlights
- 提供了详细的集成步骤、代码模式、UI 布线规则和验证方法
- 覆盖了主要异常情况(错误码 -1 到 -8),并强调了运行时验证的重要性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.