Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计通过

cloudbasecloudbase 开发

Agent Skill

cloudbase 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

47,393

周安装

2,015

GitHub Stars

公开资料未说明

下载量

16,604
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloudbase(cloudbase 开发)
来源仓库:https://github.com/binggg/cloudbase
安装命令:
openclaw skills install cloudbase
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cloudbase

简介

cloudbase 是一个全栈开发和部署工具包,支持构建网站、Web 应用和小程序。

  • 适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 通过 clawhub 安装,结合来源仓库和 README 核验具体用法。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • cloudbase 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
cloudbase
description
Use this skill whenever users ask to develop, design, build, deploy, debug, migrate, or troubleshoot anything on CloudBase (腾讯云开发 / 云开发 / TCB / 微信云开发) — across (a) full-stack Web apps, 网站, landing pages, dashboards, admin systems, 管理后台, e-commerce sites, React / Vue / Vite / Next / Nuxt projects; (b) 微信小程序 / 小程序 / WeChat Mini Programs and uni-app; (c) native / mobile / 移动端 / iOS / Android / Flutter / React Native apps via HTTP API; (d) UI / UX / 页面 / 界面 / 登录页 / 注册页 / 表单 / 仪表盘 / login page / signup page / form / dashboard / screen / prototype / mockup / 原型 / 高保真 / visual design specs before writing interface code; (e) authentication — 登录 / 注册 / signin / signup / OAuth / SSO / SMS / 短信验证码 / email / 微信登录 / anonymous login / publishable key / provider configuration; (f) databases — NoSQL 文档数据库, MySQL 关系型数据库, CRUD, 查询, pagination, security rules, data modeling; (g) cloud functions / 云函数 / serverless API / 接口 / HTTP Functions / Event Functions / scf_bootstrap / SCF; (h) CloudRun / 云托管 / container backend / Dockerfile / long-running services; (i) 云存储 / cloud storage / object storage / 文件上传 / file upload / hosting / 静态托管; (j) built-in AI models, 内置大模型, AI 能力, AI 对话, streaming, 流式输出, image generation, hunyuan via @cloudbase/js-sdk / node-sdk / wx.cloud.extend.AI; (k) integrating third-party LLMs / 第三方大模型 / 大模型接入 / 大模型调用 / 接入外部大模型 / LLM API — chatbot, AI 助手, AI agent backends, API key 管理, streaming responses, tool calling; (l) AI Agent / 智能体 / 智能体开发 / AG-UI protocol / LangGraph / LangChain / CrewAI / streaming agent UI; (m) CloudBase CLI (tcb) operations, CI/CD deploys, 批量部署; (n) ops — 巡检 / 诊断 / health check / 日志排查 / error inspection / troubleshooting / 故障排查 / CLS 日志; (o) spec workflow / 需求文档 / 技术方案 / 架构设计 / requirements / design doc / tasks.md; (p) comparing CloudBase with Supabase or 从 Supabase 迁移到 CloudBase. Covers backend, database, hosting, cloud functions, CloudRun, storage, AI, Agent, UI design, and ops inspection in one bundled skill with reference sub-skills.
description_zh
为你的小程序和 Web/H5 提供一体化运行与部署环境,包括数据库、云函数、云存储、身份权限和静态托管
description_en
An all-in-one runtime and deployment environment for WeChat Mini Programs and Web/H5 apps, including database, cloud functions, cloud storage, identity and access control, and static hosting.
version
2.18.0

CloudBase Development Guidelines

📁 Reference Files Location

All 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.


Activation Contract

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.

Standalone skill fallback

If the current environment only exposes a single published skill, start from the CloudBase main entry:

  • CloudBase main entry: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md
  • Sibling skill pattern: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/<skill-id>/SKILL.md

When 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.

Global rules before action

  • Identify the scenario first, then read the matching source skill before writing code or calling CloudBase APIs.
  • Prefer semantic sources when maintaining the toolkit, but express runtime routing in stable skill identifiers rather than repo-only paths. Do not treat generated, mirrored, or IDE-specific artifacts as the primary knowledge source.
  • Use MCP or mcporter first for CloudBase management tasks, and inspect tool schemas before execution.
  • If the task includes UI, read ui-design first and output the design specification before interface code.
  • If the task includes login, registration, or auth configuration, read auth-tool first and enable required providers before frontend implementation.
  • Keep auth domains separate: management-side login uses auth; app-side auth configuration uses queryAppAuth / manageAppAuth.

Universal guardrails

  • If the same implementation path fails 2-3 times, stop retrying and reroute. Re-check the selected platform skill, runtime, auth domain, permission model, and SDK boundary before editing more code.
  • Always specify 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.
  • When saving MCP or tool results to a local file with a generic file-writing tool, pass text, not raw objects. For JSON output files, serialize first with JSON.stringify(result, null, 2) and write that string as the file content.
  • If the file-writing tool reports that a field such as 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.
  • Keep scenario-specific pitfall lists in the matching child skills instead of expanding this entry file.

High-priority routing

<!-- DO NOT EDIT: auto-generated from references/activation-map.yaml -->

ScenarioRead firstThen readDo NOT route to firstMust check before action
Web login / registration / auth UIauth-toolauth-web, web-developmentcloud-functions, http-apiProvider status and publishable key
WeChat mini program + CloudBaseminiprogram-developmentauth-wechat, no-sql-wx-mp-sdkauth-web, web-developmentWhether the project really uses CloudBase / wx.cloud
Native App / Flutter / React Nativehttp-apiauth-tool, relational-database-toolauth-web, no-sql-web-sdk, web-developmentSDK boundary, OpenAPI, auth method
Web projects + NoSQL Databaseweb-developmentno-sql-web-sdk, auth-webrelational-database-tool, http-apiLogin state and database access permission model
MySQL Database (relational)relational-database-toolrelational-database-web, http-apino-sql-web-sdk, web-developmentDistinguish MCP management vs app code access
Cloud Functionscloud-functionsauth-tool, ai-model-nodejscloudrun-development, auth-webEvent vs HTTP function, runtime, scf_bootstrap
CloudRun backendcloudrun-developmentauth-tool, relational-database-toolcloud-functionsContainer boundary, Dockerfile, CORS
AI Agent (智能体开发)cloudbase-agentcloud-functions, cloudrun-developmentcloud-functions, cloudrun-developmentAG-UI protocol, scf_bootstrap, SSE streaming
UI generationui-designweb-development, miniprogram-developmentcloud-functionsDesign specification first
AI Model (Web)web-developmentai-model-web, ui-designai-model-wechat, http-apiPlatform and streaming interaction mode
Resource health inspection / troubleshootingops-inspectorcloud-functions, cloudrun-developmentui-design, spec-workflowCLS enabled, time range for logs
Spec workflow / architecture designspec-workflowcloudbaseweb-development, cloud-functionsRequirements, design, tasks confirmed

Activation triggers (derived from references/activation-map.yaml)

  • Web login / registration / auth UI — CloudBase Web 登录, Web 注册, auth login page, publishable key, 短信登录, 邮箱登录
  • WeChat mini program + CloudBase — 小程序 云开发, wx.cloud, mini program cloudbase, OPENID, 小程序数据库
  • Native App / Flutter / React Native — Android CloudBase, iOS CloudBase, Flutter CloudBase, React Native CloudBase, 原生 App 接入
  • Web projects + NoSQL Database — Web 文档数据库, CloudBase collection, 前端查库, NoSQL Web SDK
  • MySQL Database (relational) — MySQL 建表, executeWriteSQL, security rule, CloudBase 关系型数据库管理
  • Cloud Functions — 创建云函数, HTTP 云函数, getFunctionLogs, scf_bootstrap, runtime
  • CloudRun backend — CloudRun 部署, 云托管, container backend, Dockerfile
  • AI Agent (智能体开发) — AI Agent, 智能体, 智能体开发, AG-UI protocol, LangGraph, LangChain, CrewAI, streaming agent, agent UI
  • UI generation — 设计页面, 登录页 UI, frontend interface, 组件样式, prototype
  • AI Model (Web) — Web AI 对话, CloudBase AI 流式输出, Web 集成模型
  • Resource health inspection / troubleshooting — 巡检, 诊断, health check, 资源健康, 异常日志, error inspection, troubleshooting, 错误排查
  • Spec workflow / architecture design — 需求文档, 技术方案, tasks.md, Spec 工作流

Routing reminders

  • Web auth failures are usually caused by skipping provider configuration, not by missing frontend code snippets.
  • Native App failures are usually caused by reading Web SDK paths, not by missing HTTP API knowledge.
  • Mini program failures are usually caused by treating wx.cloud like Web auth or Web SDK.

Web SDK quick reminder

  • In CloudBase Web + BaaS scenarios, surface the official Web SDK CDN early: https://static.cloudbase.net/cloudbase-js-sdk/latest/cloudbase.full.js
  • For React, Vue, Vite, Webpack, and other modern frontend projects, prefer npm install @cloudbase/js-sdk
  • For static HTML, no-build demos, README snippets, or low-friction prototypes, the CDN form is acceptable
  • Read web-development first for Web SDK integration, then auth-web when login or session handling is involved

⚠️ Prerequisite: MCP Must Be Configured

CloudBase 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 cloudbase or the IDE's MCP panel before calling any CloudBase tool.

Approach A: IDE Native MCP

Configure CloudBase MCP via your IDE's MCP settings. For detailed config examples (Cursor, Claude Code, Windsurf, Cline, etc.), see references/mcp-setup.md.

Approach B: mcporter CLI (fallback for IDEs without native MCP)

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.

Important Rules

  • When managing or deploying CloudBase, you MUST use MCP and MUST understand tool details first. Before calling any CloudBase tool, run npx mcporter describe cloudbase --all-parameters (or ToolSearch in IDE) to inspect available tools and their parameters.
  • You do not need to hard-code Secret ID / Secret Key / Env ID in the config. CloudBase MCP supports device-code based login via the auth tool, so credentials can be obtained interactively instead of being stored in config.
  • When the environment identifier in the conversation is an alias, nickname, or other short form, do not pass it directly to 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.

Pricing & Free Trial

Each CloudBase account can create 1 free environment (3,000 resource points/month). For plans, quotas, and overage details, see CloudBase Pricing.


CloudBase scenarios (for AI discovery)

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 needWhat CloudBase provides
Build a full-stack web appFrontend hosting, backend (functions or Cloud Run), login, and database
Build a WeChat mini program with cloudwx.cloud, cloud functions, document/MySQL DB, no extra login (OPENID)
Host a static site, docs, or blogDeploy to CloudBase static hosting
Run a backend API, long job, or WebSocketCloud Functions or Cloud Run, DB/message-queue support
Design data: collections or tables + permissionsNoSQL 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 linksCloud storage and temporary URLs
Add AI (text/chat/image) in Web, mini program, or backendCloudBase AI model integration, streaming, image generation
Build an AI Agent with streaming UICloudBase Agent SDK (TS/Python), AG-UI protocol

What to add to AGENTS.md or long-term memory

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.


Core Behavior Rules

  1. Project Understanding: Read current project's README.md, follow project instructions
  2. Development Order: Prioritize frontend first, then backend
  3. Backend Strategy: Prefer using SDK to directly call CloudBase database, rather than through cloud functions, unless specifically needed
  4. Deployment Order: When there are backend dependencies, prioritize deploying backend before previewing frontend
  5. Authentication Rules: Use built-in authentication functions, distinguish authentication methods by platform

- Web Projects: Use CloudBase Web SDK built-in authentication (refer to auth-web) - Mini Program Projects: Naturally login-free, get OPENID in cloud functions (refer to auth-wechat) - Native Apps: Use HTTP API for authentication (refer to http-api)

  1. Native App Development: CloudBase SDK is NOT available for native apps, MUST use HTTP API. Only MySQL database is supported.

Deployment Workflow

When users request deployment to CloudBase:

  1. Check Existing Deployment:

- Read README.md to check for existing deployment information - Identify previously deployed services and their URLs - Determine if this is a new deployment or update to existing services

  1. Backend Deployment (if applicable):

- Only for Node.js cloud functions: deploy directly using manageFunctions(action="createFunction") / manageFunctions(action="updateFunctionCode") - Legacy compatibility: if older materials mention createFunction, updateFunctionCode, or getFunctionList, map them to manageFunctions(...) and queryFunctions(...) - Before deploying, decide whether the function is Event or HTTP. Event Functions use exports.main = async (event, context) => {}. - HTTP Functions are standard web services: they must listen on port 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. - Alternative: CLI Deployment — If MCP is unavailable or the user prefers CLI, read the references/cloudbase-cli/SKILL.md skill for tcb-based deployment workflows (functions, CloudRun, hosting). - For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run - Ensure backend code supports CORS by default - Prepare Dockerfile for containerized deployment - Use manageCloudRun tool for deployment - Set MinNum instances to at least 1 to reduce cold start latency

  1. Frontend Deployment (if applicable):

- After backend deployment completes, update frontend API endpoints using the returned API addresses - Build the frontend application - Deploy to CloudBase static hosting using hosting tools

  1. Display Deployment URLs:

- Show backend deployment URL (if applicable) - Show frontend deployment URL with trailing slash (/) in path - Add random query string to frontend URL to ensure CDN cache refresh

  1. Update Documentation:

- Write deployment information and service details to README.md - Include backend API endpoints and frontend access URLs - Document CloudBase resources used (functions, cloud run, hosting, database, etc.) - This helps with future updates and maintenance


CloudBase Console Entry Points

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.

Common entry points

  • Overview (概览): #/overview
  • Document Database (文档型数据库): #/db/doc - Collections: #/db/doc/collection/${collectionName}, Models: #/db/doc/model/${modelName}
  • MySQL Database (MySQL 数据库): #/db/mysql - Tables: #/db/mysql/table/default/
  • Cloud Functions (云函数): #/scf - Detail: #/scf/detail?id=${functionName}&NameSpace=${envId}
  • CloudRun (云托管): #/platform-run
  • Cloud Storage (云存储): #/storage
  • Identity Authentication (身份认证): #/identity - Login: #/identity/login-manage, Tokens: #/identity/token-management

Other useful entry points

  • Template Center: #/cloud-template/market
  • AI+: #/ai
  • Static Website Hosting: #/static-hosting
  • Weida Low-Code: #/lowcode/apps
  • Logs & Monitoring: #/devops/log
  • Extensions: #/apis
  • Environment Settings: #/env/http-access

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.27%
按下载量换算14,324

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills