wechat-game-club
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "wechat-game-club":https://skillpi.com/zh/skills/deepskill-159c31629c6fa15c68f4f38d751ceb2b1d596b2ab2efe3638c9b0ecc3fed57ea。安装前核对上游来源和版本:https://skillhub.cn/skills/user_c830ad09/wechat-game-club。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于新增或修复微信小程序游戏的 Game Club 条目、游戏圈按钮、wx.createPageManager 集成、openlink 配置、游戏内跳转链接接入或原生 Canvas JavaScript 小游戏的社交/社区入口的场景说明。
介绍来源: third_party · user_c830ad09 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对微信小游戏开发者,解决 Game Club 入口集成的具体技术痛点
- 提供了从获取 openlink 到 UI 布线、错误处理的完整闭环方案
亮点
- 触发词精准完整,覆盖添加/修复 Game Club 入口、game circle 按钮、wx.createPageManager 集成等多种场景
- 边界清晰,易于理解何时使用该 Skill
待提升项
-
缺少显式 'When to Use' 章节 原报告严重程度:轻微
文档结构完整,但缺少显式的 'When to Use' 章节标题,虽然 description 和 Overview 已涵盖相关内容。
改进建议:建议添加显式的 'When to Use' 章节,进一步提升文档结构的清晰度。
亮点
- 文档结构完整,包含 Overview、Workflow、Code Pattern、UI Wiring Rules、Error Handling、Validation、Common Mistakes 等章节
- 提供了详细的代码示例和错误码映射表
待提升项
-
未明确提及 wx.createPageManager 不存在时的降级处理 原报告严重程度:轻微
虽然覆盖了 wx.createPageManager 调用的各种错误码,但未明确说明当 wx.createPageManager API 本身不存在时的处理方式。
改进建议:建议在 Error Handling 或 Common Mistakes 部分补充说明 wx.createPageManager 不存在时的降级处理策略。
亮点
- 提供了详细的集成步骤、代码模式、UI 布线规则和验证方法
- 覆盖了主要异常情况(错误码 -1 到 -8),并强调了运行时验证的重要性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。