Unified CloudBase execution guide for all-in-one skill installs. Use this first for CloudBase app tasks, especially existing apps with TODOs, fixed pages, or active handlers. Routes PostgreSQL / CloudBase PG / app.rdb() / queryPgDatabase / managePgDatabase work away from legacy NoSQL and old auth patterns.
70
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
CloudBase runs 国内站 (domestic, cloud.tencent.com) and 国际站 (international, tencentcloud.com) as two independent account systems — environments, consoles, API keys, and login state do not cross over. A wrong-site login looks like "logged in, but no environments" rather than a clear error, so settle the site before logging in or configuring MCP.
https://tcb-api.tencentcloud.com/mcp/v1. For local stdio set TCB_SITE=intl + TCB_REGION=ap-singapore; for the tcb CLI set TCB_IS_INTL=true.https://tcb-api.cloud.tencent.com/mcp/v1. Both switches are the defaults, so nothing extra to declare.site / region query parameter (the hostname decides), and the international site has no NoSQL / document-database tools.Every CloudBase task follows this three-stage process:
1. Exploration → Read the matching skill completely before writing any code.
Search for it if needed, then Read the full SKILL.md content.
Only start implementing after understanding the API patterns,
pitfalls, and correct usage from the skill document.
2. Implementation
├── 2a. Resource preparation → Prefer MCP to prepare backend resources
│ (enable auth providers, create database tables, configure storage domains,
│ set up security rules — before writing frontend code).
│ If MCP tools are missing in THIS session, configure MCP for next time and
│ use `tcb` CLI now (`./cloudbase-cli/SKILL.md`).
└── 2b. Frontend implementation → Write code, install deps, start server, test
3. Close-out → Run cloudbase-code-review, fix all errors, declare doneKey constraints:
tcb CLI after configuring MCP. Don't write frontend code that depends on uncreated resources (tables, auth providers, storage buckets) — the app cannot run end-to-end without them.Only handle tasks that are part of building, integrating, or maintaining a CloudBase application — including UI design, spec planning, and other development activities when they are in service of a CloudBase app. If the request has no CloudBase application context at all, stop and tell the user this skill only covers CloudBase-based development.
searchKnowledgeBase(mode="skill", skillName=...), then Read the returned file path to get the full SKILL.md content. Do not start implementing based only on the search result summary — the full document contains API signatures, parameter schemas, and pitfall warnings.src/lib/backend.*src/lib/auth.*src/lib/*service.*TaskCreate / TaskUpdate when the task is a single targeted repair. Read the active files and edit them directly../minimal-web-baas-demo/SKILL.md (default for 最小前后端 demo; BaaS-first, no cloud functions)./web-development/SKILL.md./cloudbase-declarative-deploy/SKILL.md./auth-tool-cloudbase/SKILL.md./auth-web-cloudbase/SKILL.md./postgresql-development-cloudbase/SKILL.md./cloudbase-wechat-integration/SKILL.md./cloudbase-document-database-web-sdk/SKILL.md./cloud-storage-web/SKILL.md./cloud-api-operations/SKILL.md./cloudbase-platform/SKILL.mdsearchKnowledgeBase(mode="skill"), pass the reference directory id such as postgresql-development-cloudbase or minimal-web-baas-demo, not a guessed alias.tcb CLI now — do not stall waiting for restart. Frontend code written against non-existent resources will fail at runtime and require rework.cloudbase-platform/references/protocols/change-safety-protocol.md (declare impact → obtain user confirmation → verify after change → escalate to root cause analysis after 3 occurrences of the same symptom).cloudbase-platform/references/protocols/deployment-gate.md and present the mandatory declaration template.EnvId explicitly in code, configuration, and command examples when initializing CloudBase clients or manager operations. Do not rely on the current CLI-selected environment or implicit defaults.queryEnv(action=list, alias=..., aliasExact=true) and use the returned canonical full EnvId before calling auth.set_env, generating console links, or writing config/code. If the alias is ambiguous or missing, stop and ask the user to confirm.BaaS-first, functions as last resort:
./minimal-web-baas-demo/SKILL.md. Order: connector ready → template warmup during credential wait → queryEnv → lock one DB → MCP schema → @cloudbase/js-sdk CRUD → preview. Default cloud function count = 0.db.collection(...).get() only for confirmed NoSQL collections; use app.rdb().from(...) for CloudBase PG tables; use auth / storage from the matching skill.Existing application with TODOs:
Auth tasks:
./auth-web-cloudbase/SKILL.md before writing auth code — the full username/password recipe and provider readiness flow live there.admin, editor, any string without @): call queryAppAuth(action="getLoginConfig"); if loginMethods.usernamePassword !== true, enable it with manageAppAuth(action="patchLoginStrategy", patch={ usernamePassword: true }) first.auth.signInWithPassword({ username, password }); never signUpWithEmailAndPassword / signInWithEmailAndPassword for username-style flows.Database and storage tasks:
app, auth, db, and storage helpers instead of creating parallel SDK wrappers.app.rdb(), queryPgDatabase, managePgDatabase, mysqldb OpenAPI, or RLS, read ./postgresql-development-cloudbase/SKILL.md before touching database code../postgresql-best-practices-cloudbase/SKILL.md.queryPgDatabase / managePgDatabase for schema and management; do not route PG work to MySQL queryMysqlDatabase / manageMysqlDatabase or NoSQL collection APIs.searchKnowledgeBase({ mode: "openapi", apiName: "mysqldb" }) directly. Do not pass guessed action values such as getApiDocs or listEndpoints; those belong to no supported tool mode.app.rdb() and documented storage app.storage.from() APIs before raw HTTP.host:port in security domains first (queryEnv(action="domains"), then envDomainManagement(action="create") if missing). A failed cover upload must not silently skip the subsequent PG article insert.db.collection(...).add(...), persist the created document ID from result._id.PostgreSQL, CloudBase PG, PG mode, app.rdb(), queryPgDatabase, managePgDatabase, PostgREST, or RLS, do not write NoSQL examples from memory. Use app.rdb().from(...) for Web CRUD, queryPgDatabase / managePgDatabase for management, and auth.getSession() for Web auth guards. Do not use app.database(), db.collection(...), .where(), .orderBy(), app.uploadFile(), getLoginState(), or auth.getUser() as the PG/auth default.Targeted repair tasks:
Glob / broad search across the whole project.ef9f182
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.