Agent skill · software engineering · aiskillstore
ai-model-wechat
Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, 企业微信小程序, wx.cloud apps). Features generateText and streamText with callbacks (onText, onEvent, onFinish). Models via wx.cloud.extend.AI.createModel with groups hunyuan-exp (小程序成长计划), cloudbase (main managed), or custom-*. Model IDs (deepseek-v4-flash, deepseek-v3.2, hunyuan-2.0-instruct-20251111, glm-5, kimi-k2.6) go in the data wrapper model field. API differs from JS/Node SDK — streamText needs data wrapper, generateText returns raw response. MUST run two-step preflight before code — see body. Keywords: Mini Program AI, wx.cloud.extend.AI, 小程序成长计划, ai_miniprogram_inspire_plan, Token Credits 资源包, generateText, streamText, createModel, hunyuan-exp, TokenHub, Hunyuan, DeepSeek, GLM, Kimi, MiniMax. NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (use ai-model-nodejs).
Why this skill is useful
Provides specific commands and patterns for integrating AI models in WeChat Mini Programs that are not commonly known.
What it needs
Requires cloudbase installed locally. About 10k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Standalone Install Note If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills. CloudBase main entry: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md Current skill raw source: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ai-model-wechat/SKILL.md Keep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference. 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 skill (it now includes the aimodel 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 three legal shapes. Anything else is a bug. ✅ Legal createModel(provider) argument When to use it ----------------------------------------- ---------------- "hunyuan-exp" The Mini Program 成长计划 (aiminiprograminspireplan) is enrolled for the current env. Default model: hunyuan-2.0-instruct-20251111. "cloudbase" Default fallback. Main managed group (TokenHub-backed, multi-vendor pool). Vendor + concrete model go into the model field, e.g. { model: "deepseek-v4-flash" }. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/ai-model-wechat