Cloudbase platform

From bighardperson/computer-science-skills-collection · View interactive version

Cloudbase platform is an AI agent skill from the GitHub repository bighardperson/computer-science-skills-collection. CloudBase platform knowledge and best practices. Use this skill for general CloudBase platform understanding, including storage, hosting, authentication, cloud functions, database permissions, and data models.

How to use this skill

Skill file

When to use this skill

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

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
  1. Follow best practices
  1. Use correct SDKs and APIs
  1. Use CloudBase MCP via mcporter (CLI) when IDE MCP is not available

If other MCP servers already exist, keep them and only add the cloudbase entry.

```json

{

"mcpServers": {

"cloudbase": {

"command": "npx",

"args": ["@cloudbase/cloudbase-mcp@latest"],

"description": "CloudBase MCP",

"lifecycle": "keep-alive"

}

}

}

```


CloudBase Platform Knowledge

Storage and Hosting

  1. Static Hosting vs Cloud Storage:
  1. Static Hosting Domain:

Environment and Authentication

  1. SDK Initialization:

Authentication Best Practices

Important: Authentication methods for different platforms are completely different, must strictly distinguish!

Web Authentication

Mini Program Authentication

Cloud Functions

  1. Node.js Cloud Functions:

Database Permissions

⚠️ CRITICAL: Always configure permissions BEFORE writing database operation code!

  1. Permission Model:
  1. Platform Compatibility (CRITICAL):
  1. Configuration Workflow:

```

Create collection → Configure security rules → Write code → Test

```

  1. Common Scenarios:
  1. Cross-Collection Operations:
  1. Cloud Function Optimization:

Data Models

  1. Get Data Model Operation Object:
  1. Data Model Query:
  1. MySQL Data Model Invocation Rules:

Console Management

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

  1. Overview (概览): https://tcb.cloud.tencent.com/dev?envId=${envId}#/overview
  1. Template Center (模板中心): https://tcb.cloud.tencent.com/dev?envId=${envId}#/template
  1. Document Database (文档型数据库): https://tcb.cloud.tencent.com/dev?envId=${envId}#/db/doc
  1. MySQL Database (MySQL 数据库): https://tcb.cloud.tencent.com/dev?envId=${envId}#/db/mysql
  1. Cloud Functions (云函数): https://tcb.cloud.tencent.com/dev?envId=${envId}#/scf
  1. CloudRun (云托管): https://tcb.cloud.tencent.com/dev?envId=${envId}#/cloudrun
  1. Cloud Storage (云存储): https://tcb.cloud.tencent.com/dev?envId=${envId}#/storage
  1. AI+: https://tcb.cloud.tencent.com/dev?envId=${envId}#/ai
  1. Static Website Hosting (静态网站托管): https://tcb.cloud.tencent.com/dev?envId=${envId}#/hosting
  1. Identity Authentication (身份认证): https://tcb.cloud.tencent.com/dev?envId=${envId}#/identity
  1. Weida Low-Code (微搭低代码): https://tcb.cloud.tencent.com/dev?envId=${envId}#/weida
  1. Logs & Monitoring (日志监控): https://tcb.cloud.tencent.com/dev?envId=${envId}#/logs
  1. Environment Settings (环境配置): https://tcb.cloud.tencent.com/dev?envId=${envId}#/settings

URL Construction Guidelines

Quick Reference

When directing users to console pages:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.