ai-model-nodejs
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS,…
Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS). Defaults to @cloudbase/js-sdk client CRUD (NoSQL app.database / PG app.rdb), MCP-only schema, preview-first, and forbids cloud functions unless secrets, cron/background jobs, or
$ npx -y skills add tencentcloudbase/awesome-cloudbase-examples --skill minimal-web-baas-demo --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/minimal-web-baas-demoContext preview
The summary Claude sees to decide when to auto-load this skill.
Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS). Defaults to @cloudbase/js-sdk client CRUD (NoSQL app.database / PG app.rdb), MCP-only schema, preview-first, and forbids cloud functions unless secrets, cron/background jobs, or
name: minimal-web-baas-demo description: "Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS). Defaults to @cloudbase/js-sdk client CRUD (NoSQL app.database / PG app.rdb), MCP-only schema, preview-first, and forbids cloud functions unless secrets, cron/background jobs, or logic that security rules/RLS cannot express. Use for 搭一套 demo、留言板、Todo、Notes、Kanban, or when users say 带云函数+云数据库 but only need CRUD. NOT for production multi-service backends, CloudRun, WeChat Mini Programs, or tasks that truly need server secrets." version: 2.36.1 license: MIT alwaysApply: false
Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../web-development/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.
Goal: **minutes to an interactive Web + database preview**, not a cloud-function middleware stack.
This skill is the product equivalent of CloudBase Sites SessionStart **Rule 5** (BaaS-first data persistence).
1. **BaaS-first data path**
2. **Cloud functions are forbidden by default**
3. **Package discipline**
4. **Preview first, deploy second**
5. **UI ceremony for this path**
6. **Anonymous (or real) session before NoSQL CRUD — js-sdk 3.x + publishable key**
const auth = app.auth
const { error } = await auth.signInAnonymously()
if (error) throw error
const db = app.database()
await db.collection('messages').get()Use this order for every minimal Web + DB demo. **Do not reorder.** Cloud functions stay off the critical path.
0. Connector pre-enabled (or shortest Trust path) ← host / partner packaging 1. Template warmup // parallel with credential wait ← downloadTemplate + install 2. queryEnv(action="info") ← sniff env + RuntimeBackends 3. Lock ONE DB plane (NoSQL | PG) ← new relational work is PG; MySQL only if the env already has it 4. MCP schema + minimal permissions ← writeNoSql* / PG migrate 5. Browser @cloudbase/js-sdk CRUD ← app.database() / app.rdb() 6. Local preview (list + add) ← then ask before deploy 7. Cloud functions ← skip (count = 0) unless secrets/cron/rules-cannot-express
Stack priority for this path: **Web SDK CRUD > MCP schema > template warmup > cloud functions**.
1. **Warm template in parallel with credentials** (see partner notes below): `downloadTemplate` (`react` default, `vue` if requested) → `npm install` / `pnpm install`. 2. `queryEnv(action="info")` → lock **one** DB plane (NoSQL **or** PG). New relational work us
精选的腾讯云开发(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…