Agent skill

Auth Wechat Miniprogram

by TencentCloudBase in TencentCloudBase/CloudBase-AI-Toolkit

CloudBase WeChat Mini Program native authentication guide. An agent skill from TencentCloudBase/CloudBase-AI-Toolkit.

MITAuto-check passedBackend & APIs

Install Auth Wechat Miniprogram

skills CLI
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill auth-wechat-miniprogram -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TencentCloudBase/CloudBase-AI-Toolkit auth-wechat-miniprogram --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/config/source/skills/auth-wechat-miniprogram .claude/skills/auth-wechat-miniprogram && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
auth-wechat-miniprogram
GitHub stars
1.1k
Used in
2 other repos
Token cost
~1.4k tokens
SKILL.md length
680 words
Files
2 (incl. references)
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

CloudBase WeChat Mini Program native authentication guide. An agent skill from TencentCloudBase/CloudBase-AI-Toolkit.

  • Works in 5 steps: Confirm CloudBase environment → Understand the authentication flow → Pick a scenario from this file → …
  • Tasks that involve Messaging and chat bots
  • SKILL.md covers Sibling skills (local only), Activation Contract, When to use this skill and How to use this skill (for a…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Auth Wechat Miniprogram is an agent skill from TencentCloudBase/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.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/extended-guide.md`).

It sits in Backend & APIs, covering Messaging and chat bots and Authentication. It works with WeChat. The repository describes itself as: Backend for AI coding agents on CloudBase — database, auth, functions via Plugin, Skills & MCP. The licence is MIT.

When your agent uses it

  • Tasks that involve Messaging and chat bots
  • Tasks that involve Authentication

Example prompts

  • “/auth-wechat-miniprogram”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Confirm CloudBase environment
  2. Understand the authentication flow
  3. Pick a scenario from this file
  4. Follow CloudBase API shapes exactly
  5. If you're unsure about an API

What it can do on your machine

Read from SKILL.md and the folder at commit ea2c202. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Auth Wechat Miniprogram loads about 1.4k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 680 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TencentCloudBase/CloudBase-AI-Toolkit at commit ea2c202, republished under its MIT licence (© TencentCloudBase). 680 words, ~1,362 tokens.

Download SKILL.mdSave it as .claude/skills/auth-wechat-miniprogram/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
auth-wechat-miniprogram
description
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.
version
2.34.8
alwaysApply
false

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.

Use it when you need to:

  • Implement identity-aware WeChat Mini Program flows with CloudBase
  • Access user identity (openid, unionid) in cloud functions
  • Understand how WeChat authentication integrates with CloudBase
  • Build Mini Program features that require user identification

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:

  • Web-based WeChat login (use the auth-web skill)
  • Server-side auth with Node SDK (use the auth-nodejs skill)
  • Non-WeChat authentication methods (use appropriate auth skills)

Show full SKILL.md (346 more words)Show less

How to use this skill (for a coding agent)

  1. Confirm CloudBase environment

    • Ask the user for:
      • env – CloudBase environment ID
      • Confirm the Mini Program is linked to the CloudBase environment
  2. Understand the authentication flow

    • WeChat Mini Program authentication is native and automatic
    • No explicit login API calls needed in most cases
    • User identity is automatically available in cloud functions
    • CloudBase handles all authentication verification
  3. Pick a scenario from this file

    • For basic user identity in cloud functions, use Scenario 2
    • For Mini Program initialization, use Scenario 1
    • For calling a cloud function from the Mini Program and receiving user identity, use Scenario 3
    • For testing authentication, use Scenario 4
  4. Follow CloudBase API shapes exactly

    • Use wx-server-sdk in cloud functions
    • Use wx.cloud in Mini Program client code
    • Treat method names and parameter shapes in this file as canonical
  5. If you're unsure about an API

    • Consult the official CloudBase Mini Program documentation
    • Only use methods that appear in official documentation

Core concepts

How WeChat Mini Program authentication works with CloudBase
  1. Automatic authentication:

    • When a Mini Program user calls a cloud function, WeChat automatically injects the user's identity
    • No need for complex OAuth flows or token management
    • CloudBase verifies the authenticity of the identity
  2. User identifiers:

    • OPENID – Unique identifier for the user in this specific Mini Program
    • APPID – The Mini Program's App ID
    • UNIONID – (Optional) Unique identifier across all apps under the same WeChat Open Platform account
      • Only available when the Mini Program is bound to a WeChat Open Platform account
      • Useful for identifying the same user across multiple Mini Programs or Official Accounts
  3. Security:

    • The openid, appid, and unionid are verified and trustworthy
    • WeChat has already completed authentication
    • Developers can directly use these identifiers without additional verification
  4. No explicit login required:

    • Users are automatically authenticated when they use the Mini Program
    • No need to call login APIs in most cases
    • Identity is available immediately in cloud functions

Extended guide

For detailed scenarios, examples, and patterns, read extended-guide.md.

Reference index

All packaged reference files (required for skill lint reachability):

© TencentCloudBase, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in config/source/skills/auth-wechat-miniprogram of TencentCloudBase/CloudBase-AI-Toolkit.

  • SKILL.md
  • references/extended-guide.md

Open the folder on GitHubat commit ea2c202

Used in 2 other repositories

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in TencentCloudBase/CloudBase-AI-Toolkit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Auth Wechat Miniprogram next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Auth Wechat Miniprogram compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Auth Wechat Miniprogram this skillTencentCloudBase/CloudBase-AI-Toolkit1.1k2 repos~1.4kAutomated safety check: PassMIT
Auth Tool CloudbaseLeoYeAI/openclaw-master-skills2.2k1 repos~1.4kAutomated safety check: PassMIT
Auth Wechat MiniprogramLeoYeAI/openclaw-master-skills2.2k1 repos~3kAutomated safety check: PassMIT
SpecfusionLiangNiang/OpenMantis110—~2.1kAutomated safety check: NotesApache-2.0
Notify Wecomdaymade/claude-code-skills1.4k—~802Automated safety check: PassMIT
Weixin Accessqufei1993/cc-weixin154—~372Automated safety check: PassMIT

Similar skills

  • Auth Tool Cloudbase

    LeoYeAI/openclaw-master-skills

    Use CloudBase Auth tool to configure and manage authentication providers for web applications - enable/disable login methods (SMS, Email, WeChat Open Platform, Google, Anonymous, Username/password…

    2.2k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Auth Wechat Miniprogram

    LeoYeAI/openclaw-master-skills

    Complete guide for WeChat Mini Program authentication with CloudBase - native login, user identity, and cloud function integration.

    2.2k GitHub starsUsed in 1 repo~3k tokens
    Backend & APIsAuto-check passed
  • Specfusion

    LiangNiang/OpenMantis

    企业微信 飞书 钉钉 淘宝 小红书 抖音电商 微信小程序 微信小店 拼多多 有赞 微信支付 支付宝 京东 SHEIN 得物 火山引擎 阿里云百炼 泛微 北森 API文档搜索。

    110 GitHub stars~2.1k tokensUpdated 4 mo ago
    Backend & APIsAuto-check: notes
  • Notify Wecom

    daymade/claude-code-skills

    Send a single one-off message to a WeCom (Enterprise WeChat) group bot.

    1.4k GitHub stars~802 tokensUpdated today
    Backend & APIsAuto-check passed
  • Weixin Access

    qufei1993/cc-weixin

    Manage WeChat access control (pairing codes and allowlist). An agent skill from qufei1993/cc-weixin.

    154 GitHub stars~372 tokensUpdated 5 mo ago
    Productivity & AutomationAuto-check passed
  • Add WeChat Channel

    nanocoai/nanoclaw

    Adds a personal WeChat channel to a NanoClaw install through Tencent's iLink Bot API, with QR-code login and long polling instead of a public webhook.

    31k GitHub stars~1.9k tokensUpdated yesterday
    Productivity & AutomationAuto-check: notes

More from TencentCloudBase/CloudBase-AI-Toolkit

All 49 skills in this repo
  • AI Model Nodejs

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses for Node.js backend AI via @cloudbase/node-sdk (=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration.

    1.1k GitHub starsUsed in 3 repos~5k tokens
    Auto-check passed
  • HTTP API Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    CloudBase official HTTP API client guide. An agent skill from TencentCloudBase/CloudBase-AI-Toolkit.

    1.1k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Cloud API Recipe Authoring

    TencentCloudBase/CloudBase-AI-Toolkit

    Author or revise a cloud-api-operations recipe (config/source/skills/cloud-api-operations/references/recipes/).

    1.1k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Manage Local Skills

    TencentCloudBase/CloudBase-AI-Toolkit

    Analyze, standardize, validate, and sync locally maintained skills into agent skill directories with a skills CLI-aligned workflow.

    1.1k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Cloudbase Agent Python

    TencentCloudBase/CloudBase-AI-Toolkit

    Build production-ready AI agent backends using the CloudBase Agent Python SDK — create agents with LangGraph/CrewAI/LlamaIndex, serve them via FastAPI with AG-UI protocol streaming +…

    1.1k GitHub starsUsed in 2 repos~2.9k tokens
    Auto-check: notes
  • Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses when you develop, design, build, deploy, debug, migrate, or troubleshoot CloudBase (腾讯云开发, 云开发, TCB, 微信云开发) projects — Web, 微信小程序, 小程序, uni-app, mobile (iOS, Android…

    1.1k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed

Works with

Questions about Auth Wechat Miniprogram

What does Auth Wechat Miniprogram do?

CloudBase WeChat Mini Program native authentication guide. An agent skill from TencentCloudBase/CloudBase-AI-Toolkit. Auth Wechat Miniprogram is an agent skill from TencentCloudBase/CloudBase-AI-Toolkit. CloudBase WeChat Mini Program native authentication guide.

When should I use Auth Wechat Miniprogram?

Auth Wechat Miniprogram fits situations like: tasks that involve Messaging and chat bots; tasks that involve Authentication.

How do I install Auth Wechat Miniprogram in Claude Code?

Run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill auth-wechat-miniprogram -a claude-code`. Or copy the skill folder (config/source/skills/auth-wechat-miniprogram in TencentCloudBase/CloudBase-AI-Toolkit) into .claude/skills/auth-wechat-miniprogram in your project. Claude Code loads it when a task matches its description.

How do I install Auth Wechat Miniprogram in Codex?

Run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill auth-wechat-miniprogram -a codex`. Or copy the skill folder (config/source/skills/auth-wechat-miniprogram in TencentCloudBase/CloudBase-AI-Toolkit) into .agents/skills/auth-wechat-miniprogram in your project. Codex loads it when a task matches its description.

Can I use Auth Wechat Miniprogram in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill auth-wechat-miniprogram -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/auth-wechat-miniprogram, .gemini/skills/auth-wechat-miniprogram, .github/skills/auth-wechat-miniprogram and .opencode/skills/auth-wechat-miniprogram in your project.

What does Auth Wechat Miniprogram need to run?

SKILL.md names no scripts, command-line tools or credentials: Auth Wechat Miniprogram is instructions for the agent only. Our summary lists: Node.js.

Does Auth Wechat Miniprogram access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Auth Wechat Miniprogram safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Auth Wechat Miniprogram use?

Auth Wechat Miniprogram is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Auth Wechat Miniprogram use?

About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Auth Wechat Miniprogram?

Skills that share tags, products or a category with Auth Wechat Miniprogram: Auth Tool Cloudbase (LeoYeAI/openclaw-master-skills, 2.2k stars), Auth Wechat Miniprogram (LeoYeAI/openclaw-master-skills, 2.2k stars), Specfusion (LiangNiang/OpenMantis, 110 stars) and Notify Wecom (daymade/claude-code-skills, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Auth Wechat Miniprogram?

TencentCloudBase (a GitHub organization) maintains it in TencentCloudBase/CloudBase-AI-Toolkit, which has 1,132 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 6, 2026.

Source: TencentCloudBase/CloudBase-AI-Toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.