Tooluck logoTooluck
SKILL.md

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)

config/source/skills/auth-wechat-miniprogram/SKILL.md

MITFull file
1## Sibling skills (local only)
2
3Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../auth-tool-cloudbase/SKILL.md`.
4
5If 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.
6
7## Activation Contract
8
9### Use this first when
10
11- 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.
13
14### Read before writing code if
15
16- 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.
18
19### Then also read
20
21- Mini program project implementation -> `../miniprogram-development/SKILL.md`
22- Cloud function implementation -> `../cloud-functions/SKILL.md`
23
24### Do NOT use for
25
26- 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.
29
30### Common mistakes / gotchas
31
32- Generating a Web-style login page for a `wx.cloud` mini program.
33…

Excerpt shown under the repository's MIT license.

More skills in CloudBase-AI-Toolkit

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates