ai-model-wechat

ai-model-wechat is a skill for Claude Code from TencentCloudBase/CloudBase-AI-Toolkit. It costs 157 tokens per session (6,926 once invoked), scanned A, original, MIT.

A guide for adding AI text generation to WeChat Mini Programs, lightweight applications that run inside WeChat.

In plain words
What is it for?
It is for generating or streaming text with callbacks through WeChat's CloudBase AI extension, including Hunyuan and other configured models.
Why use it?
It helps developers use the correct CloudBase AI interface and choose the appropriate integration for a Mini Program rather than a web app or backend.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the cloudbase-ai-toolkit plugin — 47 skills, 3 commands, 6 agents, 3 MCP servers, 2 plugins shipped together

Good fit It is for generating or streaming text with callbacks through WeChat's CloudBase AI extension, including Hunyuan and other configured models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat
About the project

CloudBase AI Toolkit is an integration layer that lets AI coding tools use Tencent CloudBase as an application backend, including databases, authentication, functions, storage, and deployments. Developers use it to have coding agents build and operate CloudBase-backed applications through skills, plugins, commands, and chat-accessible tools. The catalogue entries are the toolkit’s own skills, agents, hooks, plugins, rules, instructions, and MCP tools.

TencentCloudBase/CloudBase-AI-Toolkit · 1,156 stars · on GitHub · docs.cloudbase.net

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill ai-model-wechat
Clone the repo
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit

Made for: Claude Code.

Or install cloudbase-ai-toolkit, the plugin that ships this one along with the rest of its 47 skills, 3 commands, 6 agents, 3 MCP servers, 2 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-model-wechat

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat/github.svg)](https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat)
Your own site
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-model-wechat

Your own site · 80×15
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/ai-model-wechat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 231
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.06926
Opus 5.5 $0.00063 $0.02770
Sonnet 5.5 $0.00031 $0.01385
Haiku 4.5 $0.00016 $0.00693

Measured today against content hash 7132e126a8ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-model-wechat scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

config/.claude/skills/ai-model-wechat/SKILL.md · 452 lines

How it starts

The opening of the file, as written. The whole thing — 452 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

When to use this skill

Use this skill for calling AI models in WeChat Mini Program using wx.cloud.extend.AI.

Use it when you need to:

  • Integrate AI text generation in a Mini Program
  • Stream AI responses with callback support
  • Call Hunyuan models from the WeChat environment

Do NOT use for:

  • Browser/Web apps → use ai-model-web skill
  • Node.js backend or cloud functions → use ai-model-nodejs skill
  • Image generation → use ai-model-nodejs skill (not available in Mini Program)
  • Runtimes without a CloudBase SDK (native apps, Python, etc.) → use http-api-cloudbase skill (it now includes the ai_model OpenAPI spec for direct HTTP calls)

⛔ STOP — wx.cloud.extend.AI.createModel(provider) argument is not a vendor / model name

Read this before writing any createModel(...) line. Agents frequently hallucinate this argument. There are exactly four legal shapes. Anything else is a bug.

✅ Legal createModel(provider) argument When to use it
"cloudbase" Default, including 小程序成长计划. Main managed group (TokenHub-backed, multi-vendor pool). Growth Plan quota draws on cloudbase + hy3 — enable hy3 first. Vendor + concrete model go into the model field, e.g. { model: "deepseek-v4-flash" }.
"hunyuan-v3" Legacy plan group, being retired. Only hy3 is available and no new models are added. Existing plan-enrolled code keeps working; new code uses cloudbase + hy3.
"hunyuan-exp" Older legacy builtin group — only if DescribeAIModels still returns it. Its default hunyuan-2.0-instruct-20251111 went offline on 2026-05-31; never target that id.
"custom-<your-name>" A user-defined GroupName you onboarded via CreateAIModel. Must start with custom- (e.g. custom-kimi, custom-openai-compat).

Read the full file on GitHub · 452 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 7132e126a8ce
  2. 6d ago Changed f80d86fc4c69
  3. 7d ago Changed · +3 lines · +13 tokens per session a704d3519d23
  4. 13d ago Changed df33e88ece44
  5. 15d ago Changed d6d7b740045e
  6. 19d ago Changed · +2 lines 5c6820ce7271
  7. 21d ago Changed 4ef6f25402fb
  8. 25d ago Changed · +1 lines ad16ae0f66be
  9. 1mo ago Changed 4cd87f4b496a
  10. 1mo ago First seen · 446 lines · 144 tokens per session scan A e881ed48be31

Subscribe to this mod's changes

ai-model-wechat is a skill published in the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit (1,156 stars, last pushed today), licensed MIT. It adds 157 tokens to every session and 6,926 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tavily-search

Real-time web search using Tavily API - search the web, extract page content, and get up-to-date information for RAG and research tasks.

chainlesschain/chainlesschain · 34 tokens

wechat-miniprogram-ai

A development guide for adding AI capabilities to WeChat Mini Programs, which are lightweight apps that run inside WeChat.

leafyuan1988/wechat-miniprogram-ai-skill · 100 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and designs an end-to-end governed agentic analytics solution using Knowledge Catalog and Managed Service for Apache Spark (Lightning Engine). Use when designing data science and analytics workflows across structured and unstructured distributed data (including in S3, Azure Blob, AlloyDB, and…

google/skills · 132 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens