Skip to content

Commit 9b5635b

Browse files
committed
fix: more ai desc
1 parent 7e21e5e commit 9b5635b

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

config/.claude/skills/ai-model-nodejs/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: ai-model-nodejs
3-
description: Guide for calling AI models with CloudBase Node SDK (@cloudbase/node-sdk ≥3.16.0) - text generation, streaming, and image generation in server/cloud functions.
3+
description: Use this skill when developing Node.js backend services or CloudBase cloud functions (Express/Koa/NestJS, serverless, backend APIs) that need AI capabilities. Features text generation (generateText), streaming (streamText), AND image generation (generateImage) via @cloudbase/node-sdk ≥3.16.0. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended), DeepSeek (deepseek-v3.2 recommended), and hunyuan-image for images. This is the ONLY SDK that supports image generation. NOT for browser/Web apps (use ai-model-web) or WeChat Mini Program (use ai-model-wechat).
44
alwaysApply: false
55
---
66

config/.claude/skills/ai-model-web/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: ai-model-web
3-
description: Guide for calling AI models with CloudBase Web SDK (@cloudbase/js-sdk) - text generation and streaming in browser apps.
3+
description: Use this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). NOT for Node.js backend (use ai-model-nodejs), WeChat Mini Program (use ai-model-wechat), or image generation (Node SDK only).
44
alwaysApply: false
55
---
66

config/.claude/skills/ai-model-wechat/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: ai-model-wechat
3-
description: Guide for calling AI models in WeChat Mini Program using wx.cloud.extend.AI - text generation and streaming with callback support.
3+
description: Use this skill when developing WeChat Mini Programs (小程序, 企业微信小程序, wx.cloud-based apps) that need AI capabilities. Features text generation (generateText) and streaming (streamText) with callback support (onText, onEvent, onFinish) via wx.cloud.extend.AI. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). API differs from JS/Node SDK - streamText requires data wrapper, generateText returns raw response. NOT for browser/Web apps (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (not supported).
44
alwaysApply: false
55
---
66

@@ -193,4 +193,3 @@ interface WxGenerateTextResponse {
193193
3. **Check for [DONE]** - When using `eventStream`, check `event.data === "[DONE]"` to stop
194194
4. **Handle errors gracefully** - Wrap AI calls in try/catch
195195
5. **Remember the `data` wrapper** - streamText params must be wrapped in `data: {...}`
196-

0 commit comments

Comments
 (0)