CommunityImagegithub.com

tencentcloudbase/ai-model-wechat

Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI. Supports generateText and streamText with callbacks, and multiple model groups including hunyuan-exp and cloudbase.

What is ai-model-wechat?

The tencentcloudbase/ai-model-wechat skill enables AI integration inside WeChat Mini Programs (including enterprise WeChat Mini Programs and wx.cloud apps) via the wx.cloud.extend.AI API. It provides two main functions: generateText for simple text generation and streamText for streaming responses with callbacks like onText, onEvent, and onFinish. Models are selected using wx.cloud.extend.AI.createModel with groups such as hunyuan-exp (for the Mini Program growth plan), cloudbase (managed), or custom-* prefixes. Model IDs like deepseek-v4-flash, deepseek-v3.2, hunyuan-2.0-instruct-20251111, glm-5, and kimi-k2.6 must be placed in the data wrapper model field. Note that the WeChat Mini Program API differs from the standard JS/Node.js SDK: streamText requires a data wrapper, while generateText returns a raw response. A mandatory two-step preflight check must be completed before writing any code—see the skill body for details. This skill is specifically for WeChat Mini Program environments and should not be used for browser/web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (use ai-model-nodejs).

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tencentcloudbase/skills/tree/main/skills/ai-model-wechat

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does ai-model-wechat do?

Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (Mini Programs, Enterprise WeChat Mini Programs, wx.cloud applications). Features include generateText and streamText with callbacks (onText, onEvent, onFinish). Models are selected via wx.cloud.extend.AI.createModel with groups: hunyuan-exp (Mini Program growth plan), cloudbase (main managed), or custom-*. Model IDs (deepseek-v4-flash, deepseek-v3.2, hunyuan-2.0-instruct-20251111, glm-5, kimi-k2.6) are placed in the data wrapper model field. The API differs from the JS/Node SDK — streamText requires a data wrapper, while generateText returns a raw response. Must run two-step preflight before writing any code — see body. Keywords: Mini Program AI, wx.cloud.extend.AI, Mini Program Growth Plan, ai_miniprogram_inspire_plan, Token Credits Package, 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).

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

tencentcloudbase/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.

tencentcloudbase/cloudbase-document-database-in-wechat-miniprog

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.

tencentcloudbase/cloudbase-platform

CloudBase platform overview and routing guide. This skill should be used when users need high-level capability selection, platform concepts, console navigation, or cross-platform best practices before choosing a more specific implementation skill.

tencentcloudbase/cloud-functions

CloudBase function runtime guide for building, deploying, and debugging your own Event Functions or HTTP Functions. This skill should be used when users need application runtime code on CloudBase, not when they are merely calling CloudBase official platform APIs.

tencentcloudbase/miniprogram-development

WeChat Mini Program development skill for building, debugging, previewing, testing, publishing, and optimizing mini program projects. This skill should be used when users ask to create, develop, modify, debug, preview, test, deploy, publish, launch, review, or optimize WeChat Mini Programs, mini program pages, components, `tabBar`, routing, navigation, icon assets, project structure, project configuration, `project.config.json`, `appid` setup, device preview, real-device validation, WeChat Developer Tools workflows, `miniprogram-ci` preview/upload flows, or mini program release processes. It should also be used when users explicitly mention CloudBase, `wx.cloud`, Tencent CloudBase, 腾讯云开发, or 云开发 in a mini program project.

tencentcloudbase/spec-workflow

Use when medium-to-large changes need explicit requirements, technical design, and task planning before implementation, especially for multi-module work, unclear acceptance criteria, or architecture-heavy requests.

tencentcloudbase/ui-design

Use when users need visual direction, interface hierarchy, layout decisions, design specifications, or prototypes before implementing a Web or mini program UI.

tencentcloudbase/web-development

Use when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React, Vue, Vite, browser flows, or CloudBase Web integration.

Related Skills