Awesome-omni-skill cloudbase-guidelines
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.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/cloudbase-guidelines" ~/.claude/skills/diegosouzapw-awesome-omni-skill-cloudbase-guidelines && rm -rf "$T"
skills/development/cloudbase-guidelines/SKILL.mdCloudBase Development Guidelines
💡 Recommended: MCP Installation
For enhanced CloudBase development experience, we recommend installing CloudBase MCP (Model Context Protocol).
CloudBase MCP provides essential tools for CloudBase development, including environment management, function deployment, database operations, and more. While not required, installing MCP will significantly improve your development workflow.
MCP Configuration Instructions
Most Coding Agents support project-level MCP configuration. The standard JSON configuration structure is:
{ "mcpServers": { "cloudbase": { "command": "npx", "args": ["@cloudbase/cloudbase-mcp@latest"] } } }
Project-level configuration file locations:
- Cursor:
.cursor/mcp.json - Claude Code:
.mcp.json - Windsurf:
(user-level, no project-level JSON config)~/.codeium/windsurf/mcp_config.json - Cline: Check Cline settings for project-level MCP configuration file location
- GitHub Copilot Chat (VS Code): Check VS Code settings for MCP configuration file location
Format differences:
- Continue: Uses YAML format in
folder:.continue/mcpServers/
name: CloudBase MCP version: 1.0.0 schema: v1 mcpServers: - uses: stdio command: npx args: ["@cloudbase/cloudbase-mcp@latest"]
Using mcporter (CLI) When MCP Is Not Available
In environments that do not support MCP (e.g. moltbot) or when users are unsure how to configure MCP, use mcporter as a CLI to call MCP tools. Confirm with the user that Secret ID, Secret Key, and Env ID are set in the mcporter config.
Config: Default
./config/mcporter.json (override with --config). Prefer --output json for machine-readable results.
{ "mcpServers": { "cloudbase-mcp": { "description": "CloudBase MCP", "command": "npx", "args": ["@cloudbase/cloudbase-mcp@latest"], "env": { "TENCENTCLOUD_SECRETID": "<your_secret_id>", "TENCENTCLOUD_SECRETKEY": "<your_secret_key>", "CLOUDBASE_ENV_ID": "<your_env_id>" } } } }
Quick start:
— list servers/toolsmcporter list
— show tool schemamcporter list <server> --schema
— call a toolmcporter call <server.tool> key=value
Call examples:
- Selector:
mcporter call linear.list_issues team=ENG limit:5 - Function syntax:
mcporter call "linear.create_issue(title: \"Bug\")" - JSON payload:
mcporter call <server.tool> --args '{"limit":5}'
Quick Reference
When Developing a Web Project:
- Platform: Read the
skill for SDK integration, static hosting, and build configurationweb-development - Authentication: Read the
andauth-web
skills - Use Web SDK built-in authenticationauth-tool - Database:
- NoSQL:
skillno-sql-web-sdk - MySQL:
andrelational-database-web
skillsrelational-database-tool
- NoSQL:
- UI Design (Recommended): Read the
skill for better UI/UX design guidelinesui-design
When Developing a Mini Program Project:
- Platform: Read the
skill for project structure, WeChat Developer Tools, and wx.cloud usageminiprogram-development - Authentication: Read the
skill - Naturally login-free, get OPENID in cloud functionsauth-wechat - Database:
- NoSQL:
skillno-sql-wx-mp-sdk - MySQL:
skill (via tools)relational-database-tool
- NoSQL:
- UI Design (Recommended): Read the
skill for better UI/UX design guidelinesui-design
When Developing a Native App Project (iOS/Android/Flutter/React Native/etc.):
- ⚠️ Platform Limitation: Native apps do NOT support CloudBase SDK - Must use HTTP API
- Required Skills:
- HTTP API usage for all CloudBase operationshttp-api
- MySQL database operations (via tools)relational-database-tool
- Authentication configurationauth-tool
- ⚠️ Database Limitation: Only MySQL database is supported. If users need MySQL, prompt them to enable it in console: CloudBase Console - MySQL Database
Core Capabilities
1. Authentication
Authentication Methods by Platform:
- Web Projects: Use CloudBase Web SDK built-in authentication, refer to the
skillauth-web - Mini Program Projects: Naturally login-free, get
in cloud functions, refer to thewxContext.OPENID
skillauth-wechat - Node.js Backend: Refer to the
skillauth-nodejs
Configuration:
- When user mentions authentication requirements, read the
skill to configure authentication providersauth-tool - Check and enable required authentication methods before implementing frontend code
2. Database Operations
Web Projects:
- NoSQL Database: Refer to the
skillno-sql-web-sdk - MySQL Relational Database: Refer to the
skill (Web) andrelational-database-web
skill (Management)relational-database-tool
Mini Program Projects:
- NoSQL Database: Refer to the
skillno-sql-wx-mp-sdk - MySQL Relational Database: Refer to the
skill (via tools)relational-database-tool
3. Deployment
Static Hosting (Web):
- Use CloudBase static hosting after build completion
- Refer to the
skill for deployment processweb-development - Remind users that CDN has a few minutes of cache after deployment
Backend Deployment:
- Cloud Functions: Refer to the
skill - Runtime cannot be changed after creation, must select correct runtime initiallycloud-functions - CloudRun: Refer to the
skill - Ensure backend code supports CORS, prepare Dockerfile for container typecloudrun-development
4. UI Design (Recommended)
For better UI/UX design, consider reading the
ui-design skill which provides:
- Design thinking framework
- Frontend aesthetics guidelines
- Best practices for creating distinctive and high-quality interfaces
Platform-Specific Skills
Web Projects
- SDK integration, static hosting, build configurationweb-development
- Web SDK built-in authenticationauth-web
- NoSQL database operationsno-sql-web-sdk
- MySQL database operations (Web)relational-database-web
- MySQL database managementrelational-database-tool
- Cloud storage operationscloud-storage-web
- AI model calling for Web appsai-model-web
Mini Program Projects
- Project structure, WeChat Developer Tools, wx.cloudminiprogram-development
- Authentication (naturally login-free)auth-wechat
- NoSQL database operationsno-sql-wx-mp-sdk
- MySQL database operationsrelational-database-tool
- AI model calling for Mini Programai-model-wechat
Native App Projects
- HTTP API usage (MANDATORY - SDK not supported)http-api
- MySQL database operations (MANDATORY)relational-database-tool
- Authentication configurationauth-tool
Universal Skills
- Universal CloudBase platform knowledgecloudbase-platform
- UI design guidelines (recommended)ui-design
- Standard software engineering processspec-workflow
Professional Skill Reference
Platform Development Skills
- Web:
- SDK integration, static hosting, build configurationweb-development - Mini Program:
- Project structure, WeChat Developer Tools, wx.cloudminiprogram-development - Cloud Functions:
- Cloud function development, deployment, logging, HTTP accesscloud-functions - CloudRun:
- Backend deployment (functions/containers)cloudrun-development - Platform (Universal):
- Environment, authentication, servicescloudbase-platform
Authentication Skills
- Web:
- Use Web SDK built-in authenticationauth-web - Mini Program:
- Naturally login-free, get OPENID in cloud functionsauth-wechat - Node.js:
auth-nodejs - Auth Tool:
- Configure and manage authentication providersauth-tool
Database Skills
- NoSQL (Web):
no-sql-web-sdk - NoSQL (Mini Program):
no-sql-wx-mp-sdk - MySQL (Web):
relational-database-web - MySQL (Tool):
relational-database-tool
Storage Skills
- Cloud Storage (Web):
- Upload, download, temporary URLs, file managementcloud-storage-web
AI Skills
- AI Model (Web):
- Text generation and streaming via @cloudbase/js-sdkai-model-web - AI Model (Node.js):
- Text generation, streaming, and image generation via @cloudbase/node-sdk ≥3.16.0ai-model-nodejs - AI Model (WeChat):
- Text generation and streaming with callbacks via wx.cloud.extend.AIai-model-wechat
UI Design Skill
- Design thinking framework, frontend aesthetics guidelines (recommended for UI work)ui-design
Workflow Skills
- Spec Workflow:
- Standard software engineering process (requirements, design, tasks)spec-workflow
Core Behavior Rules
- Project Understanding: Read current project's README.md, follow project instructions
- Development Order: Prioritize frontend first, then backend
- Backend Strategy: Prefer using SDK to directly call CloudBase database, rather than through cloud functions, unless specifically needed
- Deployment Order: When there are backend dependencies, prioritize deploying backend before previewing frontend
- 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
- Web Projects: Use CloudBase Web SDK built-in authentication (refer to
- 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:
-
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
-
Backend Deployment (if applicable):
- Only for nodejs cloud functions: deploy directly using
toolscreateFunction- Criteria: function directory contains
with cloud function format export:index.jsexports.main = async (event, context) => {}
- Criteria: function directory contains
- 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
tool for deploymentmanageCloudRun - Set MinNum instances to at least 1 to reduce cold start latency
- Only for nodejs cloud functions: deploy directly using
-
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
-
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
-
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/deploying resources, provide corresponding console management page links. All console URLs follow the pattern:
https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}
Core Function Entry Points
- Overview (概览):
- Main dashboard#/overview - Template Center (模板中心):
- Project templates#/cloud-template/market - Document Database (文档型数据库):
- NoSQL collections:#/db/doc
, Models:#/db/doc/collection/${collectionName}#/db/doc/model/${modelName} - MySQL Database (MySQL 数据库):
- Tables:#/db/mysql#/db/mysql/table/default/ - Cloud Functions (云函数):
- Function detail:#/scf#/scf/detail?id=${functionName}&NameSpace=${envId} - CloudRun (云托管):
- Container services#/platform-run - Cloud Storage (云存储):
- File storage#/storage - AI+:
- AI capabilities#/ai - Static Website Hosting (静态网站托管):
#/static-hosting - Identity Authentication (身份认证):
- Login:#/identity
, Tokens:#/identity/login-manage#/identity/token-management - Weida Low-Code (微搭低代码):
#/lowcode/apps - Logs & Monitoring (日志监控):
#/devops/log - Extensions (扩展功能):
#/apis - Environment Settings (环境配置):
#/env