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.
Claude Code
$ npx -y skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram --agent claude-code
Codex
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a codex -y
Cursor
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a cursor -y
Gemini CLI
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a gemini-cli -y
GitHub Copilot
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a github-copilot -y
OpenCode
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a opencode -y
Windsurf
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a windsurf -y
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.37.6 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.
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.
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS,…
Use this skill when a browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI, 页面, 前端, 网页) needs AI…
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 Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.