ai-model-wechat

ai-model-wechat is a skill for Claude Code, Codex from TencentCloudBase/cloudbase-skills. It costs 157 tokens per session (6,926 once invoked), scanned A, a copy of ai-model-wechat, MIT.

A skill for adding AI text generation to WeChat Mini Programs, small apps that run inside WeChat, using CloudBase's AI service.

In plain words
What is it for?
Use it to call Hunyuan or other configured models, generate text, stream responses, and handle callbacks such as new text, events, and completion.
Why use it?
It provides the implementation guidance needed to generate or stream model responses in that specific WeChat environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to call Hunyuan or other configured models, generate text, stream responses, and handle callbacks such as new text, events, and completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tencentcloudbase/cloudbase-skills/ai-model-wechat
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-skills --skill ai-model-wechat
Clone the repo
git clone --depth 1 https://github.com/TencentCloudBase/cloudbase-skills

Made for: Claude Code, Codex.

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-skills/ai-model-wechat/github.svg)](https://agentmods.dev/skills/tencentcloudbase/cloudbase-skills/ai-model-wechat)
Your own site
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-skills/ai-model-wechat"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-skills/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-skills/ai-model-wechat"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-skills/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.
Origin 100% copy Near-identical to another mod 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

This is a copy

100% identical to ai-model-wechat — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/cloudbase/references/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-skills (39 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. It is 100% identical to ai-model-wechat, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

gemini-api-agent-platform

Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK for enterprise AI applications. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

davila7/claude-code-templates · 61 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

gemini-api-dev

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, speech generation (TTS), voice design, voice replication, streaming responses, background research tasks, function calling, structured output, or migrating from…

google-gemini/gemini-skills · 85 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

varlock

Secure environment variable management with Varlock. Use when handling secrets, API keys, credentials, or any sensitive configuration. Ensures secrets are never exposed in terminal, logs, or LLM context. Provides guidance around integrating varlock into a project, reading/editing .env.schema and other .env files…

dmno-dev/varlock · 109 tokens