CloudBase skill for Claude Code: build and deploy apps on Tencent CloudBase
Tencent CloudBase's skill that makes Claude build, deploy and debug Web, Mini Program and app backends on CloudBase.
- Installs
- 12.7K
- on skills.sh
- Stars
- 39
- on GitHub
- Files
- 8
- besides SKILL.md
- Updated
- Oct 2026
- last repo commit
cloudbase makes Claude follow Tencent's guidance for CloudBase projects. It first confirms whether you use the domestic or the international CloudBase site, reads the matching reference before writing code, prepares backend resources through the CloudBase MCP server, then writes the front end and runs a code review at the end. It covers Web, WeChat Mini Programs and native apps.
The skill folder is a SKILL.md plus 177 other files, all Markdown or YAML. It is a router: a table sends each task, such as auth, PostgreSQL, cloud functions or CloudRun, to the right nested guide. Without the CloudBase MCP server Claude falls back to the tcb command line. The plugin route also adds hooks that send usage telemetry.
Good for
- Developers building Web or WeChat Mini Program apps on Tencent CloudBase
- Teams adding auth, a database, cloud functions, storage or AI models to a CloudBase app
- Anyone who wants Claude to deploy through the CloudBase MCP server or the tcb CLI
Install cloudbase
Claude Code
- 1
Copy this prompt.
Install the cloudbase skill in Claude Code. Run this command: npx skills add TencentCloudBase/cloudbase-skills Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
Installing the skill gives your agent the CloudBase guidance. The live tools (environments, functions, databases, deploys) come from the CloudBase MCP server, so also add it with one of the MCP methods. The plugin route installs skills, MCP servers (a remote one on the domestic host and a local npx one, per its .mcp.json) and hooks in one step; read the permissions section for what the hooks do. The international site uses https://tcb-api.tencentcloud.com/mcp/v1 instead, and sign-in is separate for each site. Pick one route, not several: SKILL.md says not to run the plugin install for a tool that already has the plugin from a marketplace. The default shown is the skills CLI, which copies only the skill folder.
From the project README. Source.
What's in the skill
When it loads
Use this skill when you develop, design, build, deploy, debug, migrate, or troubleshoot CloudBase (腾讯云开发, 云开发, TCB, 微信云开发) projects — Web, 微信小程序, 小程序, uni-app, mobile (iOS, Android, Flutter, React Native). Covers UI (页面, 界面, 表单, dashboard, prototype, 原型); auth (登录, 注册, OAuth, publishable key); databases (NoSQL 文档数据库, PostgreSQL/CloudBase PG, 已有 MySQL, app.rdb(), queryPgDatabase/managePgDatabase, CRUD, security rules); 云函数/cloud functions (serverless, scf_bootstrap); CloudRun (云托管, Dockerfile); 云存储; built-in AI (内置大模型, AI 对话, streaming, 流式输出, 图片生成, generateText, streamText, createModel, generateImage, TokenHub, Hunyuan, DeepSeek, GLM, Kimi, Token Credits 资源包, 小程序成长计划); third-party/custom model onboarding (第三方大模型接入, 大模型调用, LLM API); AI agent (智能体, AG-UI, LangGraph); ops troubleshooting (巡检, 诊断, 日志); spec workflow (需求文档, 技术方案, requirements, tasks.md). Do NOT use for non-CloudBase projects, pure frontend without CloudBase, or self-hosted backends without CloudBase.
Sections in SKILL.md
- 📁 Reference Files Location
- Step 0 — Confirm the site (domestic vs international)
- Workflow
- Activation Contract
- Standalone skill fallback
- Global rules before action
- Universal guardrails
- Engineering constitution (applies to every scenario)
- High-priority routing
- Routing reminders
- MCP + CLI prerequisite
- On-demand references
- Reference index
Key facts
- Installs on skills.sh
- 12,718 as of Nov 2, 2026
- GitHub stars
- 39 for the cloudbase-skills repo, Nov 2, 2026
- What is inside
- 178 files including SKILL.md: 177 Markdown and 1 YAML, no scripts; 31 nested SKILL.md guides under references/ (git tree)
- Skill version
- 2.36.2 (SKILL.md frontmatter)
- Last commit to the repo
- Oct 29, 2026
What it includes
Asks domestic or international before any login
CloudBase has two separate account systems, so environments and keys do not cross over. SKILL.md says to infer the site if possible, otherwise ask once, and then save it in .cloudbase/project.json.
Read ·
Step 0: confirm the siteThree stages with a mandatory last stage
Read the matching skill first, prepare MCP resources before writing front-end code, then run the cloudbase-code-review guide and fix errors.
Try: “Build a to-do app on CloudBase with login and a database.”
Runs code ·
Workflow: explore, implement, close outGlobal rules, constitution and a standalone fallback
Examples: always pass an explicit EnvId, stop after 2 to 3 failed attempts on one path, do not use `any` to bypass type errors, and do not rely on deprecated login-state calls.
Read ·
Activation contract and guardrailsSends 16 scenario types to the right nested guide
Covers Web auth, Mini Programs, native apps, NoSQL, PostgreSQL, existing MySQL, cloud functions, CloudRun, AI agents, a minimal demo, UI, AI model calls, health inspection and spec workflow.
Read ·
High-priority routing tablePrefers the CloudBase MCP server, falls back to tcb
If MCP tools are missing in this session, Claude configures MCP for next time and uses the tcb CLI now (tcb login, tcb env use). SKILL.md says not to recommend tcb deploy.
Runs code ·
MCP and CLI prerequisiteDeploys functions, CloudRun services and front ends
Uses manageFunctions, manageCloudRun and manageApps(action="deployApp"). It says to confirm with you before destructive or production write operations such as delete, overwrite or plan change.
Runs code ·
Deployment workflowDeclares impact and waits for confirmation
For changes to schemas, permissions, auth flows, API contracts or deployment config, Claude states what is affected and asks for your confirmation before editing. After 3 repeats of one symptom it must stop patching.
Read ·
Change safety protocolSeven top-level reference files
tooling-fallback, site-onboarding, deployment-workflow, console-links, scenarios, mcp-setup and activation-map.yaml.
Read ·
On-demand references
From the official docs
Permissions
High risk
This skill can deploy code and change or delete resources in your Tencent CloudBase account, and its plugin route adds hooks that send usage telemetry. Use a test environment, confirm each change, and prefer the skills CLI route if you do not want hooks.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It can change and delete resources in your cloud account
The guides cover deploying functions and apps, auth settings, databases, storage and deleting apps. deployment-workflow.md says to confirm before destructive or production writes. Use a test environment and check each confirmation. github.com
The plugin sends a usage ping to Tencent's Beacon service
The SessionStart hook session-start-telemetry.mjs runs plugin-telemetry.mjs, which POSTs to https://otheve.beacon.qq.com/analytics/v2_upload. It sends one toolkit_plugin_first_use event the first time and one toolkit_plugin_dau event at most once per UTC day, with a stamp kept in ~/.config/cloudbase-plugin/. Each event carries the plugin version, login_uin and envId read from ~/.config/.cloudbase/auth.json (or "unknown"), a user-agent with OS, release, CPU architecture and Node version, and a device ID that is a SHA-256 hash of your hostname, CPU models and network MAC addresses. The script header says it reads only uin and envId from the auth file and sends no prompts, paths or tool arguments. Set CLOUDBASE_PLUGIN_TELEMETRY=off (or CLOUDBASE_MCP_TELEMETRY_DISABLED=true) to stop it. github.com
The plugin hooks read your project and log prompts locally
SessionStart (startup, resume, clear, compact) runs four scripts: session-start-telemetry.mjs (the ping above); session-start-seen-skills.mjs (on clear or compact, deletes the plugin's seen-skills files in the temp folder); session-start-profiler.mjs (checks the project folder for files such as cloudbaserc.json, project.config.json, app.json, Dockerfile, cloudfunctions/, prisma/schema.prisma, drizzle.config.* and package.json dependencies, then appends CLOUDBASE_PLUGIN_* exports to CLAUDE_ENV_FILE); and inject-session-context.mjs (adds plugin rules, a skill catalog and the detected scenario to the session context; in an empty folder it also tells Claude not to stay in planning mode and to start with tool calls). SessionEnd runs session-end-cleanup.mjs, which deletes the temp files. UserPromptSubmit runs user-prompt-submit-skill-inject.mjs, which matches your prompt against generated/skill-manifest.json and injects up to 3 skills, and appends the first 500 characters of your prompt to a local file under ~/.claude/projects/<project path>/cloudbase-plugin/skill-injections.jsonl. PreToolUse on Edit, Write, MultiEdit, apply_patch and Bash runs pretooluse-skill-inject.mjs, which matches the file path or command against skill patterns, injects up to 3 skills and logs the path and the first 500 characters of the command to the same file. CLOUDBASE_PLUGIN_AUDIT_LOG_FILE=off disables that log. In the scripts we read, only plugin-telemetry.mjs makes a network call. github.com
It can start a local MCP server or use API keys
The local route runs npx @cloudbase/cloudbase-mcp@latest, which fetches the newest version each time. The remote route can use SecretId and SecretKey headers, but SKILL.md says to prefer browser OAuth in an interactive IDE and never to hard-code secrets. github.com
Deployed code can leak credentials if it echoes headers
The bundled protocol warns that the x-cloudbase-context header can carry temporary cloud credentials. Never deploy code that returns request headers or environment variables. github.com
The plugin also bundles agents, commands and two MCP servers
Beyond the hooks, the plugin repo has 2 agents (cloudbase-architect, cloudbase-deployment-expert), 4 slash commands (cloudbase-deploy, cloudbase-env, cloudbase-init, cloudbase-status) and a .mcp.json that declares a remote server (tcb-api.cloud.tencent.com) and a local one run with npx -y @cloudbase/cloudbase-mcp@latest. The agent files list no tools in their frontmatter. github.com
Security advisories
No published security advisories as of Nov 2, 2026.
Technical details
| Turning on read-only | SKILL.md names no read-only setting. |
|---|---|
| Talks to | tcb-api.cloud.tencent.com and tcb-api.tencentcloud.com (CloudBase MCP). otheve.beacon.qq.com (plugin telemetry) |
| Sign-in and keys | Remote MCP signs in through the browser (OAuth); the local server supports device-code login or CLOUDBASE_API_KEY. The plugin telemetry script names ~/.config/.cloudbase/auth.json as the CloudBase CLI login file. |
| Scopes |
|
Questions
What does the cloudbase skill do?
It makes Claude follow Tencent CloudBase guidance when you build, deploy or debug a CloudBase project. It routes each task to the right nested guide and prefers the CloudBase MCP server for live actions.
Is it the official CloudBase skill?
It is published in the vendor's own repo, TencentCloudBase/cloudbase-skills. The README describes it as a collection of skills for building apps with Tencent CloudBase.
How do I install it?
Use the install box above. The skills CLI route adds the guidance only. For live tools you also need the CloudBase MCP server, either added by hand or through the plugin route, which also adds hooks and telemetry.
Do I need a Tencent Cloud account?
You need a CloudBase environment. SKILL.md says there are two independent account systems, domestic (cloud.tencent.com) and international (tencentcloud.com). The remote MCP server signs you in through the browser, and a wrong-site login looks like "logged in, but no environments visible".
Is cloudbase safe to use?
It can deploy code, create functions and databases and change auth settings in your CloudBase environment. SKILL.md says to confirm with you before destructive or production writes, and the change-safety protocol asks for confirmation before non-trivial changes. Our advice: use a test environment first and always give Claude an explicit environment ID.
Does the plugin collect data?
The plugin route does. Its SessionStart hook posts to otheve.beacon.qq.com once on first use and then at most once a day. Each event has the plugin version, your CloudBase account uin and environment ID if the CLI login file has them, an OS and Node version string, and a SHA-256 hash of your hostname, CPU models and MAC addresses. Set CLOUDBASE_PLUGIN_TELEMETRY=off to stop it. The hooks come with the plugin route; the skills CLI route copies the skill folder. The hooks also write a local log of prompt and command text; see the permissions section.
Why does it say not to use tcb deploy?
tooling-fallback.md calls that shorthand immature. It tells Claude to read the matching guide and use commands such as tcb fn deploy or tcb hosting deploy instead.
Information
updated Nov 2, 2026
- Repository
- tencentcloudbase/cloudbase-skills
- Folder
skills/cloudbase
Sources
Docs, issue trackers and discussions this page is built from.
Show all 21Hide
- cloudbase SKILL.md · github.com
- cloudbase-skills README · github.com
- mcp-setup.md · github.com
- skills.sh listing · skills.sh
- cloudbase-plugin plugin-telemetry.mjs · github.com
- hook-env.mjs · github.com
- tooling-fallback.md · github.com
- deployment-workflow.md · github.com
- change-safety-protocol.md · github.com
- deployment-gate.md · github.com
- cloudbase-plugin hooks.json · github.com
- cloudbase-plugin .mcp.json · github.com
- session-start-profiler.mjs · github.com
- inject-session-context.mjs · github.com
- user-prompt-submit-skill-inject.mjs · github.com
- pretooluse-skill-inject.mjs · github.com
- session-start-seen-skills.mjs · github.com
- session-end-cleanup.mjs · github.com
- cloudbase-architect.md · github.com
- cloudbase-deployment-expert.md · github.com
- cloudbase-deploy.md · github.com