ai-model-nodejs
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS,…
Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.
$ npx -y skills add tencentcloudbase/awesome-cloudbase-examples --skill cloudbase-document-database-in-wechat-miniprogram --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cloudbase-document-database-in-wechat-miniprogramContext preview
The summary Claude sees to decide when to auto-load this skill.
Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.
name: cloudbase-document-database-in-wechat-miniprogram description: Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries. version: 2.36.1 license: MIT alwaysApply: false
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.
This skill covers **Mini Program-side document database access** through `wx.cloud.database()`.
Use it for:
Mini Program CloudBase access comes with built-in identity, but database operations are still constrained by collection permissions and security rules.
const db = wx.cloud.database(); const _ = db.command;
To target a specific environment:
const db = wx.cloud.database({
env: "test"
});Important notes:
1. **Keep Mini Program code Mini Program-native**
2. **Respect ownership fields**
3. **Remember that security rules validate requests**
4. **Route admin-style operations to backend flows**
const todos = db.collection("todos");
const result = await todos.where({ completed: false }).get();const todo = db.collection("todos").doc("todo-id");
const result = await todo.get();1. Create clear collection naming conventions. 2. Use typed wrappers or model helpers in app code where possible. 3. Design rules around real ownership and sharing patterns. 4. Use pagination instead of large unbounded reads. 5. Keep admin/operations logic in backend code, not Mini Program direct access.
精选的腾讯云开发(Tencent CloudBase,TCB)示例项目和资源列表 云开发(Tencent CloudBase,TCB) 是腾讯云提供的云原生一体化开发环境和工具平台,为开发者提供高可用、自动弹性扩缩的后端云服务,包含计算、存储、托管等能力,可用于构建多种应用场景下的应用系统。
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS,…
Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, wx.cloud apps). Covers generateText and streamText with…
CloudBase Node SDK auth guide for server-side identity, user lookup, and custom login tickets. This skill should be used when…
CloudBase auth provider configuration and login-readiness guide. This skill should be used when users need to inspect, enable,…
CloudBase WeChat Mini Program native authentication guide. This skill should be used when users need mini program identity…
Operate Tencent Cloud control-plane resources (monitoring/alarms, CLB, CAM roles, COS, MySQL, SCF) via cloud APIs when no…