cloudbase-platform_skill

This skill helps you understand CloudBase platform concepts, configure authentication, deploy functions, manage databases, and optimize data models across web
  • TypeScript

975

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill tencentcloudbase/cloudbase-mcp --skill cloudbase-platform

  • SKILL.md13.8 KB

Overview

This skill provides concise CloudBase platform knowledge and practical best practices for building and managing apps. It covers storage vs hosting, platform-specific authentication, cloud functions, database permissions, and data model usage. Use it to make correct architecture and deployment decisions across Web, Mini Program, and backend scenarios.

How this skill works

The skill explains what to inspect and configure: storage types (static hosting vs cloud storage), SDK initialization and env ID retrieval, authentication flows for Web and Mini Program, cloud function packaging and deployment, database security rules, and proper data model invocation. It highlights platform compatibility constraints and points to console entry points for management tasks.

When to use it

  • Designing storage and static hosting for public or private files
  • Choosing and implementing authentication for Web or Mini Program
  • Deploying or updating Node.js cloud functions and dependencies
  • Configuring database collection permissions before writing code
  • Working with MySQL or NoSQL data models via the correct SDKs

Best practices

  • Always query and use the environment ID (envId) when initializing SDKs
  • Initialize Web SDK synchronously; do not use dynamic imports for init
  • Never mix Web and Mini Program authentication methods—treat them separately
  • Set database security rules before implementing write logic and allow cache propagation (2–5 min)
  • Use cloud functions for cross-collection operations and admin-only writes
  • Use data model SDKs for MySQL models; do not call collection APIs for relational models

Example use cases

  • Host a marketing site on static hosting and store private user uploads in cloud storage with temporary URLs
  • Implement SMS-based Web login with the Web SDK auth APIs and get user via auth.getCurrentUser()
  • Use Mini Program's login-free flow and handle user operations by openid inside cloud functions
  • Deploy a Node.js cloud function: include package.json, install deps in cloud, and use updateFunctionCode
  • Create a shopping cart collection with CUSTOM rules so users can only modify their own documents

FAQ

No. Web SDK write operations are incompatible with ADMINWRITE and ADMINONLY. Use CUSTOM rules for user content or perform writes from cloud functions.

How do I get the correct envId for SDK initialization and console links?

Query the environment ID with the envQuery tool and embed it in SDK init and console URLs using the pattern https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
cloudbase-platform skill by tencentcloudbase/cloudbase-mcp | VeilStrat