ai-model-nodejs
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM…
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/CloudBase-AI-Toolkit --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.34.3 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.
AI writes the code. CloudBase runs the backend. The CloudBase integration layer for AI coding tools: Plugin installs the stack, Skills steer how code is written, MCP operates databases, functions, storage, and deploys from chat.
Repo: TencentCloudBase/CloudBase-AI-Toolkit
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM…
Use this skill when a browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI, 页面, 前端, 网页) needs AI models via @cloudbase/js-sdk.…
Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, wx.cloud apps). Covers generateText and streamText with callbacks (onText, onEvent,…
CloudBase Node SDK auth guide for server-side identity, user lookup, and custom login tickets. This skill should be used when Node.js code must read caller…
CloudBase auth provider configuration and login-readiness guide. This skill should be used when users need to inspect, enable, disable, or configure auth…
CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication…