CL

cloudbase-platform

Platform-wide support for CloudBase services, architecture, and console navigation.

Install

mkdir -p .claude/skills/cloudbase-platform && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6368" && unzip -o skill.zip -d .claude/skills/cloudbase-platform && rm skill.zip

Installs to .claude/skills/cloudbase-platform

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

CloudBase platform overview and routing guide. This skill should be used when users need high-level capability selection, platform concepts, console navigation, or cross-platform best practices before choosing a more specific implementation skill.
247 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Guides selection of CloudBase storage/hosting services
  • Outlines platform-level permission models
  • Navigates console configuration paths
  • Defines data model best practices

How it works

Provides structural guidance and documentation links to align implementation with CloudBase standards.

Inputs & outputs

You give it
CloudBase service or capability query
You get back
Platform best practices and resource paths

When to use cloudbase-platform

  • Select appropriate platform services
  • Configure database permissions
  • Set up cloud functions

About this skill

Sibling skills (local only)

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.

Cross-cutting protocols (required before code changes or deployments):

  • Change Safety Protocol: references/protocols/change-safety-protocol.md
  • Deployment Gate: references/protocols/deployment-gate.md

Activation Contract

Use this first when

  • The user asks which CloudBase capability, service, or tool to use, or needs a high-level understanding of hosting, storage, authentication, cloud functions, or database options.
  • The task is about console navigation, cross-platform differences, permission models, or platform-level best practices before implementation.

Read before writing code if

  • It is still unclear whether the task belongs to Web, mini program, cloud functions, storage, MySQL / NoSQL, or auth.
  • The response needs platform selection, conceptual explanation, or control-plane navigation more than direct implementation steps.

Then also read

  • Minimal Web + database demo (BaaS-first, no cloud functions by default) -> ../minimal-web-baas-demo/SKILL.md
    • Stack order for 最小前后端 / Lovable-like demos: Web SDK CRUD > MCP schema > template warmup during credential wait > cloud functions (default count = 0). Capability sniff: connector ready → envQuery → lock one DB plane → MCP schema → @cloudbase/js-sdk CRUD → preview.
  • Web app implementation -> ../web-development/SKILL.md
  • Web auth and provider setup -> ../auth-tool-cloudbase/SKILL.md, ../auth-web-cloudbase/SKILL.md
  • Mini program development -> ../miniprogram-development/SKILL.md
  • WeChat Pay, Official Account OAuth, JSAPI Pay, or Native QR-code Pay through CloudBase Integration Center -> ../cloudbase-wechat-integration/SKILL.md (official docs: https://docs.cloudbase.net/integration/introduce/index.md)
  • Cloud functions -> ../cloud-functions/SKILL.md
  • Official HTTP API clients -> ../http-api-cloudbase/SKILL.md
  • Document database -> ../cloudbase-document-database-web-sdk/SKILL.md or ../cloudbase-document-database-in-wechat-miniprogram/SKILL.md
  • CloudBase PostgreSQL / PG -> ../postgresql-development-cloudbase/SKILL.md
  • MySQL relational database / data modeling -> ../relational-database-mcp-cloudbase/SKILL.md or ../data-model-creation/SKILL.md
  • Cloud storage -> ../cloud-storage-web/SKILL.md

Do NOT use for

  • Direct implementation of web pages, auth flows, functions, or database operations when a more specific skill already fits.
  • Low-level API parameter references or SDK recipes that belong in specialized skills.

Common mistakes / gotchas

  • Treating this general skill as the default entry point for all CloudBase development.
  • Staying here after the correct implementation skill is already clear.
  • Mixing platform overview with platform-specific API shapes or SDK details.
  • Using this overview skill as a detour in an existing application where the active auth, storage, and data files are already obvious.
  • Making code or configuration changes without first following the Change Safety Protocol (cloudbase-platform/references/protocols/change-safety-protocol.md).
  • Starting any deployment, publish, custom domain, or CloudRun work without first completing the checks in cloudbase-platform/references/protocols/deployment-gate.md.
  • Confusing security domains with custom domains: These are two completely different tools for different purposes:
    • envDomainManagement (action: create/delete) = Security domains (安全域名) for CORS/request source validation - used for browser upload whitelisting. Does NOT accept certificateId.
    • manageGateway(action="bindCustomDomain") = Bind a new custom domain (自定义域名) for public HTTPS — requires domain + certificateId. If queryGateway(action="listCustomDomains") already returns a usable custom domain, prefer manageGateway(action="createRoute", domain="<existing-domain>") instead; routing does not need certificateId.

When to use this skill

Use this skill for CloudBase platform knowledge when you need to:

  • Understand CloudBase storage and hosting concepts
  • Compare platform capabilities before implementation
  • Understand cross-platform auth differences (Web vs Mini Program)
  • Understand database permissions and access control
  • Access CloudBase console management pages

This skill provides foundational knowledge that applies to all CloudBase projects, regardless of whether they are Web, Mini Program, or backend services.


How to use this skill (for a coding agent)

  1. Understand platform differences

    • Web and Mini Program have completely different authentication approaches
    • Must strictly distinguish between platforms
    • Never mix authentication methods across platforms
    • If the workspace is already an application with TODOs or prebuilt handlers, do not stay in platform overview mode. Move quickly to the concrete implementation skill and the existing files that own the flow.
  2. Follow best practices

    • Use SDK built-in authentication features (Web)
    • Understand natural login-free feature (Mini Program)
    • Configure appropriate database permissions
    • Prefer @cloudbase/js-sdk direct DB access for browser CRUD; use cloud functions only for secrets, scheduled/background jobs, or elevated cross-collection logic that security rules / RLS cannot express (see ../minimal-web-baas-demo/SKILL.md for the demo default)
  3. Use correct SDKs and APIs

    • Different platforms require different SDKs for data models
    • MySQL data models must use models SDK, not collection API
    • PostgreSQL / CloudBase PG work must route to postgresql-development-cloudbase; do not reuse NoSQL app.database() / db.collection(...) snippets or MySQL queryMysqlDatabase / manageMysqlDatabase for PG data paths
    • Use envQuery tool to get environment ID
    • In an existing Web application with fixed structure, inspect the existing src/lib/backend.*, src/lib/auth.*, src/lib/*service.*, and bound page handlers before broad concept reading.
  4. Use the canonical CloudBase MCP setup from the main cloudbase guideline

    • This platform overview intentionally does not duplicate the full MCP / mcporter config block
    • For the canonical config snippet, CLI commands, and auth examples, read the main cloudbase guideline first
    • Keep the same core rules here: prefer MCP when tools are available in this session; if not, configure MCP for next session and use tcb CLI now (../cloudbase-cli/SKILL.md, ../cloudbase/references/tooling-fallback.md). Inspect tool schemas before MCP execution. Do not hard-code Secret ID / Secret Key / Env ID in config
    • Keep the auth split explicit: management-side login uses auth, while application-side auth configuration uses queryAppAuth / manageAppAuth

CloudBase Platform Knowledge

Domain Management Tools: Clear Distinction

When working with domain-related tasks, use the correct tool based on the requirement:

RequirementToolParametersPurpose
Security Domain (安全域名)envDomainManagementaction, domains (array of host:port strings)CORS/request source validation for browser uploads. No certificate involved.
Reuse existing Custom DomainqueryGateway(listCustomDomains)manageGateway(createRoute)domain = existing custom domain; route fieldsExpose a service/path on an already-bound custom domain. No certificateId. Prefer this when a custom domain already exists.
Bind new Custom Domain (自定义域名)manageGateway(action="bindCustomDomain")domain (string), certificateId (string)First-time bind of a new public HTTPS domain. Requires certId from SSL console.
Delete Custom DomainmanageGateway(action="deleteCustomDomain")domain (string)Remove custom domain binding (only after routes on that domain are deleted).
Disable / enable gateway routemanageGateway(action="disableRoute" | "enableRoute")path (required), prefer explicit domainToggle Routes[].Enable via ModifyHTTPServiceRoute (not ModifyGatewayRoute).
Disable static hosting default domainqueryGateway(listRoutes)manageGateway(disableRoute)domain = *.tcloudbaseapp.com (DomainType=STATIC_STORE, IsDefault=true), usually path="/"Turns off public access on the shared hosting CDN default host. Do not use manageHosting.

Key indicators for choosing the right tool:

  • Task mentions "自定义域名访问" but env already has a custom domain → listCustomDomains then createRoute(domain=...) (no certificateId)
  • Task mentions "certificate ID" or "SSL" and needs to bind a new domain → manageGateway(action="bindCustomDomain")
  • Task mentions "浏览器上传" or "CORS" or "安全域名" → Use envDomainManagement
  • Task mentions "public access" or "HTTPS" with domain → Prefer reuse via createRoute when possible; only bindCustomDomain for first-time domain bind
  • Task mentions "关闭/禁用静态托管默认域名" / *.tcloudbaseapp.comqueryGateway(listRoutes) then manageGateway(disableRoute) with that STATIC_STORE domain; never invent ModifyGatewayRoute

Recording Operation Results

When a task explicitly requires recording operation steps or results to a file (e.g., RESULT.json):

  1. Perform the tool calls first to get actual results
  2. Collect all operation steps with their success/failure status
  3. Write the complete record to the specified file in the required format
  4. Include both successful operations and failed attempts with error messages

Example structure for operation recording:

{
  "steps": [
    {"action": "listDomai

---

*Content truncated.*

When not to use it

  • Direct code generation for non-CloudBase platforms
  • When the task is strictly a low-level bug fix

Limitations

  • Provides conceptual guidance, not raw implementation
  • Requires existing CloudBase account

How it compares

Acts as an architectural roadmap to ensure correct service selection before coding begins.

Compared to similar skills

cloudbase-platform side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cloudbase-platform (this skill)12moNo flagsBeginner
supabase-developer957moReviewIntermediate
supabase-mcp-integration138moReviewAdvanced
cloudbase-guidelines13moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by TencentCloudBase

View all by TencentCloudBase

miniprogram-development

TencentCloudBase

WeChat Mini Program development rules. Use this skill when developing WeChat mini programs, integrating CloudBase capabilities, and deploying mini program projects.

3792

spec-workflow

TencentCloudBase

Standard software engineering workflow for requirement analysis, technical design, and task planning. Use this skill when developing new features, complex architecture designs, multi-module integrations, or projects involving database/UI design.

1091

ai-model-nodejs

TencentCloudBase

Use this skill when developing Node.js backend services or CloudBase cloud functions (Express/Koa/NestJS, serverless, backend APIs) that need AI capabilities. Features text generation (generateText), streaming (streamText), AND image generation (generateImage) via @cloudbase/node-sdk ≥3.16.0. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended), DeepSeek (deepseek-v3.2 recommended), and hunyuan-image for images. This is the ONLY SDK that supports image generation. NOT for browser/Web apps (use ai-model-web) or WeChat Mini Program (use ai-model-wechat).

59

web-development

TencentCloudBase

Web frontend project development rules. Use this skill when developing web frontend pages, deploying static hosting, and integrating CloudBase Web SDK.

514

ai-model-web

TencentCloudBase

Use this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). NOT for Node.js backend (use ai-model-nodejs), WeChat Mini Program (use ai-model-wechat), or image generation (Node SDK only).

13

auth-http-api-cloudbase

TencentCloudBase

Use when you need to implement CloudBase Auth v2 over raw HTTP endpoints (login/signup, tokens, user operations) from backends or scripts that are not using the Web or Node SDKs.

17

You might also like

supabase-developer

daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

95185

supabase-mcp-integration

manutej

Comprehensive Supabase integration covering authentication, database operations, realtime subscriptions, storage, and MCP server patterns for building production-ready backends with PostgreSQL, Auth, and real-time capabilities

13124

cloudbase-guidelines

TencentCloudBase

Essential CloudBase (TCB, Tencent CloudBase, 云开发, 微信云开发) development guidelines. MUST read when working with CloudBase projects, developing web apps, mini programs, or backend services using CloudBase platform.

17

firebase-vertex-ai

jeremylongshore

Execute firebase platform expert with Vertex AI Gemini integration for Authentication, Firestore, Storage, Functions, Hosting, and AI-powered features. Use when asked to "setup firebase", "deploy to firebase", or "integrate vertex ai with firebase". Trigger with relevant phrases based on skill purpose.

14

dev-supabase

aibot88

Backend development with Supabase. Trigger when the user wants to configure auth, the database, or Supabase storage.

00

payload

payloadcms

Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

73206

Search skills

Search the agent skills registry