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 when the user wants to develop, run, preview, save, deploy, or roll back a CloudBase Web app in this conversation as a Lovable/Codex-Sites-like vibe- coding session — i.e. any request that maps to "spin up a React+Vite project, see it live in the browser, iterate, save
Claude Code
$ npx -y skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime --agent claude-code
Codex
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime -a codex -y
Cursor
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime -a cursor -y
Gemini CLI
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime -a gemini-cli -y
GitHub Copilot
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime -a github-copilot -y
OpenCode
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime -a opencode -y
Windsurf
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime -a windsurf -y
name: cloudbase-sites-runtime description: | Use when the user wants to develop, run, preview, save, deploy, or roll back a CloudBase Web app in this conversation as a Lovable/Codex-Sites-like vibe- coding session — i.e. any request that maps to "spin up a React+Vite project, see it live in the browser, iterate, save versions, deploy". Activate ONLY for browser-rendered Web projects based on the CloudBase official React (or Vue) + Vite template. Do NOT activate for: WeChat/Alipay mini-program, React Native / Flutter / Electron, pure cloud functions / CloudRun backends, or Next.js / Nuxt / Astro / Remix / SvelteKit (those frameworks are explicitly out of scope).
This skill orchestrates a **single working directory = single project** flow for CloudBase Web apps. The cwd itself is the workspace; we do not manage cross-cwd state or session IDs at the skill level.
This runtime is shared by the Codex, Claude Code, and CodeBuddy plugin surfaces. The CLI and CloudBase MCP workflows are the source of truth. Some hosts also run bundled lifecycle hooks that start previews or inject compact rules at session start; if hooks are unavailable, disabled, or not yet trusted, use the explicit CLI commands in this skill.
"create a React app and let me preview", "deploy this to CloudBase", "save this version", "roll back to v1", or similar.
with `vite` + `react` or `vue`).
or a compatible host with the `cloudbase-sites` plugin enabled — `cloudbase-mcp` is registered and the `cloudbase-sites` binary is either on PATH or available from the plugin root's `bin/cloudbase-sites`.
only covers Vite-based React/Vue apps and stop. Do NOT try to adapt the scripts to those frameworks.
These are the only tools that produce CloudBase side effects. Highlights:
For all CloudBase operations beyond the dev-server lifecycle (auth, db, storage, ai), fetch the corresponding CloudBase domain skill via `searchKnowledgeBase(mode="skill", skillName=...)`. Common ones:
These are **NOT Claude Code native skills** and are NOT bundled with this plugin. They live inside cloudbase-mcp and are fetched on demand. When this file (or the injected RULES_BLOCK) says "调 ui-design skill" or "follow the auth-tool skill", that means: call `searchKnowledgeBase(mode="skill", skillName="<that-name>")` and apply the returned content.
First resolve the CLI path:
1. Try `command -v cloudbase-sites`. 2. If that fails and the host exposes `CODEX_PLUGIN_ROOT`, use `$CODEX_PLUGIN_ROOT/bin/cloudbase-sites`. 3. If that fails and the host exposes `CLAUDE_PLUGIN_ROOT`, use `$CLAUDE_PLUGIN_ROOT/bin/cloudbase-sites`. 4. If SessionStart injected an absolute CLI path, use that path.
Do not assume Codex has injected the plugin `bin/` directory into PATH.
Single binary, multiple subcommands. Use these — and ONLY these — for the dev-server / version / deploy lifecycle:
Never invent `npm run dev` / `vite` / `vite build` invocations. The CLI handles the bind-address policy, port allocation (17173..17272), daemonization, base path injection, version metadata, and deploy history.
The dev server has no authentication and binds `127.0.0.1` by default. Expose it to the network only when the user asks: `preview --host 0.0.0.0` (or `CLOUDBASE_SITES_HOST=0.0.0.0`)
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.