tencentcloudbase/cloudbase-ai-toolkit-cloudbase-auth-wechat-miniprogram
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.
This is a copy. The original lives at tencentcloudbase/auth-wechat-miniprogram.
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill auth-wechat-miniprogram
If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-wechat-miniprogram/SKILL.mdKeep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool-cloudbase or web-development, use the standalone fallback URL shown next to that reference.
wx.cloud identity, OPENID / UNIONID, or how a mini program caller is identified in CloudBase.wx.cloud auth assumptions.../miniprogram-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/miniprogram-development/SKILL.md)../cloud-functions/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloud-functions/SKILL.md)wx.cloud mini program.Use this skill for WeChat Mini Program (小程序) authentication in a CloudBase project.
Use it when you need to:
Key advantage: WeChat Mini Program authentication with CloudBase is seamless and automatic - no complex OAuth flows needed. When a Mini Program calls a cloud function, the user's openid is automatically injected and verified by WeChat.
Do NOT use for:
env – CloudBase environment IDwx-server-sdk in cloud functionswx.cloud in Mini Program client codeOPENID – Unique identifier for the user in this specific Mini ProgramAPPID – The Mini Program's App IDUNIONID – (Optional) Unique identifier across all apps under the same WeChat Open Platform accountopenid, appid, and unionid are verified and trustworthyFor detailed scenarios, examples, and patterns, read extended-guide.md.
All packaged reference files (required for skill lint reachability):
Take tencentcloudbase/cloudbase-ai-toolkit-cloudbase-auth-wechat-miniprogram from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.