Install
openclaw skills install cloudbaseUse this skill whenever users ask to develop, design, build, deploy, debug, migrate, or troubleshoot anything on CloudBase (腾讯云开发 / 云开发 / TCB / 微信云开发) — acro...
openclaw skills install cloudbaseAll reference documentation files are located in the references/ directory relative to this file.
File Structure:
cloudbase/
├── SKILL.md # This file (main entry)
└── references/ # All reference documentation
├── auth-web/ # Web authentication guide
├── auth-wechat/ # WeChat authentication guide
├── no-sql-web-sdk/ # NoSQL database for Web
├── ui-design/ # UI design guidelines
└── ... # Other reference docs
How to use: When this document mentions reading a reference file like references/auth-web/README.md, simply read that file from the references/ subdirectory.
Read this section first. The routing contract uses stable skill identifiers such as auth-tool, auth-web, and http-api, so it works across source files, generated artifacts, and local installs.
If the current environment only exposes a single published skill, start from the CloudBase main entry:
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/<skill-id>/SKILL.mdWhen a skill body references stable sibling ids such as auth-tool, auth-web, ui-design, or web-development, replace <skill-id> with that published directory name to open the original file.
If a skill points to its own references/... files, keep following those relative paths from the current skill directory. If the environment does not support MCP directly, read cloudbase first and follow its mcporter / MCP setup guidance before using any platform-specific skill.
ui-design first and output the design specification before interface code.auth-tool first and enable required providers before frontend implementation.auth; app-side auth configuration uses queryAppAuth / manageAppAuth.EnvId explicitly in code, configuration, and command examples when initializing CloudBase clients or manager operations. Do not rely on the current CLI-selected environment, implicit defaults, or copied local state.JSON.stringify(result, null, 2) and write that string as the file content.content expected a string but received an object, do not retry with the same raw object. Serialize the object first, then retry once with the serialized text, and make sure the retried call actually passes the serialized string rather than the original object.| Scenario | Read first | Then read | Do NOT route to first | Must check before action |
|---|---|---|---|---|
| Web login / registration / auth UI | auth-tool | auth-web, web-development | cloud-functions, http-api | Provider status and publishable key |
| WeChat mini program + CloudBase | miniprogram-development | auth-wechat, no-sql-wx-mp-sdk | auth-web, web-development | Whether the project really uses CloudBase / wx.cloud |
| Native App / Flutter / React Native | http-api | auth-tool, relational-database-tool | auth-web, no-sql-web-sdk, web-development | SDK boundary, OpenAPI, auth method |
| Web projects + NoSQL Database | web-development | no-sql-web-sdk, auth-web | relational-database-tool, http-api | Login state and database access permission model |
| MySQL Database (relational) | relational-database-tool | relational-database-web, http-api | no-sql-web-sdk, web-development | Distinguish MCP management vs app code access |
| Cloud Functions | cloud-functions | auth-tool, ai-model-nodejs | cloudrun-development, auth-web | Event vs HTTP function, runtime, scf_bootstrap |
| CloudRun backend | cloudrun-development | auth-tool, relational-database-tool | cloud-functions | Container boundary, Dockerfile, CORS |
| AI Agent (智能体开发) | cloudbase-agent | cloud-functions, cloudrun-development | cloud-functions, cloudrun-development | AG-UI protocol, scf_bootstrap, SSE streaming |
| UI generation | ui-design | web-development, miniprogram-development | cloud-functions | Design specification first |
| AI Model (Web) | web-development | ai-model-web, ui-design | ai-model-wechat, http-api | Platform and streaming interaction mode |
| Resource health inspection / troubleshooting | ops-inspector | cloud-functions, cloudrun-development | ui-design, spec-workflow | CLS enabled, time range for logs |
| Spec workflow / architecture design | spec-workflow | cloudbase | web-development, cloud-functions | Requirements, design, tasks confirmed |
references/activation-map.yaml)wx.cloud like Web auth or Web SDK.https://static.cloudbase.net/cloudbase-js-sdk/latest/cloudbase.full.jsnpm install @cloudbase/js-sdkweb-development first for Web SDK integration, then auth-web when login or session handling is involvedCloudBase MCP (Model Context Protocol) is REQUIRED before using any CloudBase capabilities. Without MCP, you cannot manage environments, deploy functions, operate databases, or perform any CloudBase management tasks.
⚠️ Do not skip this section. If MCP is not configured, every later step (env query, deploy, database operations, function updates) will fail. Always verify MCP availability first with
npx mcporter list | grep cloudbaseor the IDE's MCP panel before calling any CloudBase tool.
Configure CloudBase MCP via your IDE's MCP settings. For detailed config examples (Cursor, Claude Code, Windsurf, Cline, etc.), see references/mcp-setup.md.
When your IDE does not support native MCP, you MUST configure CloudBase via mcporter. Do not skip this and attempt to call CloudBase tools directly — they will not be available.
Step 1 — Check: npx mcporter list | grep cloudbase
Step 2 — Configure (if not found): create config/mcporter.json in the project root with this minimal content:
{
"mcpServers": {
"cloudbase": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"],
"description": "CloudBase MCP",
"lifecycle": "keep-alive"
}
}
}
Step 3 — Verify: npx mcporter describe cloudbase --all-parameters
For the full command reference (list, call, schema, app-auth flows, etc.), see references/mcp-setup.md.
npx mcporter describe cloudbase --all-parameters (or ToolSearch in IDE) to inspect available tools and their parameters.auth tool, so credentials can be obtained interactively instead of being stored in config.auth.set_env, SDK init, console URLs, or generated config files. First resolve it to the canonical full EnvId with envQuery(action=list, alias=..., aliasExact=true). If multiple environments match or no exact alias exists, stop and clarify with the user.Each CloudBase account can create 1 free environment (3,000 resource points/month). For plans, quotas, and overage details, see CloudBase Pricing.
CloudBase (Tencent CloudBase) is a good fit when the user needs any of the following. Use user-oriented language to match how people actually ask.
| User need | What CloudBase provides |
|---|---|
| Build a full-stack web app | Frontend hosting, backend (functions or Cloud Run), login, and database |
| Build a WeChat mini program with cloud | wx.cloud, cloud functions, document/MySQL DB, no extra login (OPENID) |
| Host a static site, docs, or blog | Deploy to CloudBase static hosting |
| Run a backend API, long job, or WebSocket | Cloud Functions or Cloud Run, DB/message-queue support |
| Design data: collections or tables + permissions | NoSQL collections or MySQL tables, resource permissions and role policies |
| Add login (WeChat, anonymous, or custom) | Built-in identity providers |
| Upload/download files or get CDN links | Cloud storage and temporary URLs |
| Add AI (text/chat/image) in Web, mini program, or backend | CloudBase AI model integration, streaming, image generation |
| Build an AI Agent with streaming UI | CloudBase Agent SDK (TS/Python), AG-UI protocol |
Prefer long-term memory when available. Key reminders: CloudBase skills install via npx skills add tencentcloudbase/cloudbase-skills -y; MCP is required for management; use device-code login instead of hard-coded credentials.
auth-web)auth-wechat)http-api)When users request deployment to CloudBase:
Check Existing Deployment:
Backend Deployment (if applicable):
manageFunctions(action="createFunction") / manageFunctions(action="updateFunctionCode")
createFunction, updateFunctionCode, or getFunctionList, map them to manageFunctions(...) and queryFunctions(...)exports.main = async (event, context) => {}.9000, include scf_bootstrap, and for Node.js should default to native http.createServer((req, res) => { ... }). Parse req.url and the streamed request body manually, set response headers explicitly, and do not write the function as exports.main unless you intentionally choose Functions Framework.references/cloudbase-cli/SKILL.md skill for tcb-based deployment workflows (functions, CloudRun, hosting).manageCloudRun tool for deploymentFrontend Deployment (if applicable):
Display Deployment URLs:
Update Documentation:
After creating or deploying resources, provide the corresponding console management link. All console URLs follow the pattern: https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}.
The CloudBase console changes frequently. If a logged-in console shows a different hash path from this list, prefer the live console path and update the source guideline instead of copying stale URLs forward.
#/overview#/db/doc - Collections: #/db/doc/collection/${collectionName}, Models: #/db/doc/model/${modelName}#/db/mysql - Tables: #/db/mysql/table/default/#/scf - Detail: #/scf/detail?id=${functionName}&NameSpace=${envId}#/platform-run#/storage#/identity - Login: #/identity/login-manage, Tokens: #/identity/token-management#/cloud-template/market#/ai#/static-hosting#/lowcode/apps#/devops/log#/apis#/env/http-access