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.
SkillScore86Maintained
Automatic
◆Coding pack
Last verified 8/9/2026
What it changes
Passed 19 of 22 test cases with the skill, and 18 of 22 without it.
Without skill82%
With skill86%
Checks it passed that the model alone missed
Explains that native Mini Program automatic identity injection does not apply to web browser authentication.
1 fixed18 passed either way3 still failing0 broke
Pass-rate lift
+5 pp
Tokens
+15%
Agent turns
0%
Response time
-42%
Model gemini-3.6-flashMeasured 8/9/2026v219 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
I am building a web application (H5 / PC website) using Tencent CloudBase and want users to log in using WeChat QR code scan. How should I implement this web-based WeChat authentication flow?
What was checked, without and with the skill
Checked
Without skill
With skill
Advises using web-based WeChat authentication flows.
Passed
Passed
Explains that native Mini Program automatic identity injection does not apply to web browser authentication.
Missed
Passed
case-04 · gemini-3.6-flash · 8/9/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md123 lines2 files
Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If 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.
Activation Contract
Use this first when
The task is about WeChat Mini Program auth behavior, wx.cloud identity, OPENID / UNIONID, or how a mini program caller is identified in CloudBase.
The project is a CloudBase mini program and the auth question is about native mini program identity rather than provider configuration.
Read before writing code if
The request mentions mini program login, user identity in cloud functions, or wx.cloud auth assumptions.
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.
Then also read
Mini program project implementation -> ../miniprogram-development/SKILL.md
Cloud function implementation -> ../cloud-functions/SKILL.md
Do NOT use for
Web-based WeChat login or Web auth UI.
Provider enable/disable or auth console setup.
Generic Node-side auth flows outside mini program identity handling.
Common mistakes / gotchas
Generating a Web-style login page for a wx.cloud mini program.
Treating mini program auth as a provider-configuration problem.
Forgetting that caller identity is injected in cloud functions automatically.
When to use this skill
Use this skill for WeChat Mini Program (小程序) authentication in a CloudBase project.