auth-wechat-miniprogram
Agent skill fromTencentCloudBase/CloudBase-AI-Toolkit
CloudBase WeChat Mini Program native authentication guide. This skill should be used when users need mini program identity handling, OPENID/UNIONID access, or `wx.cloud` auth behavior in projects where login is native and automatic.
How to install auth-wechat-miniprogram
install auth-wechat-miniprogram
# install the CloudBase-AI-Toolkit pack with the skills CLI
npx skills add TencentCloudBase/CloudBase-AI-Toolkit# or add only this skill to Claude Code: copy the folder
config/source/skills/auth-wechat-miniprogram/
# into
~/.claude/skills/auth-wechat-miniprogram/ (all projects)
.claude/skills/auth-wechat-miniprogram/ (one project)
1## Sibling skills (local only)23Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../auth-tool-cloudbase/SKILL.md`.45If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do **not** HTTP-fetch remote skill or protocol markdown into the agent context.67## Activation Contract89### Use this first when1011- The task is about WeChat Mini Program auth behavior, `wx.cloud` identity, `OPENID` / `UNIONID`, or how a mini program caller is identified in CloudBase.12- The project is a CloudBase mini program and the auth question is about native mini program identity rather than provider configuration.1314### Read before writing code if1516- The request mentions mini program login, user identity in cloud functions, or `wx.cloud` auth assumptions.17- The user expects a Web-style login page or explicit token exchange in a mini program; route them back to native mini program auth behavior.1819### Then also read2021- Mini program project implementation -> `../miniprogram-development/SKILL.md`22- Cloud function implementation -> `../cloud-functions/SKILL.md`2324### Do NOT use for2526- Web-based WeChat login or Web auth UI.27- Provider enable/disable or auth console setup.28- Generic Node-side auth flows outside mini program identity handling.2930### Common mistakes / gotchas3132- Generating a Web-style login page for a `wx.cloud` mini program.33…
Excerpt shown under the repository's MIT license.
