From cloudbase
Builds, debugs, previews, tests, and publishes WeChat Mini Programs. Handles project configuration, routing, components, CloudBase integration, and miniprogram-ci release flows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cloudbase:miniprogram-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
If this environment only installed the current skill, start from the CloudBase main entry and use the published `cloudbase/references/...` paths for sibling skills.
If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/miniprogram-development/SKILL.mdKeep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference.
Cross-cutting protocols (required before code changes or uploads):
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudbase-platform/references/protocols/change-safety-protocol.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudbase-platform/references/protocols/deployment-gate.mdwx.cloud, CloudBase mini programs, OPENID, or mini program deployment/debug workflows.../auth-wechat/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-wechat/SKILL.md)../no-sql-wx-mp-sdk/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/no-sql-wx-mp-sdk/SKILL.md)../cloudbase-wechat-integration/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudbase-wechat-integration/SKILL.md; official docs: https://docs.cloudbase.net/integration/wechat-pay-miniprogram/index.md)../ui-design/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ui-design/SKILL.md) firstcloudbase-wechat-integration for those scenarios.wx.cloud projects.cloudbase-platform/references/protocols/change-safety-protocol.md).cloudbase-platform/references/protocols/deployment-gate.md.Use this skill for WeChat Mini Program development when you need to:
Do NOT use for:
web-development)cloudrun-development or cloud-functions as appropriate)ui-design)Start with the general mini program workflow
Follow mini program project conventions
index.jsonproject.config.json before suggesting preview or IDE workflowsRoute by scenario
wx.cloud, cloud functions, CloudBase database/storage, or CloudBase identity handling, read CloudBase integration referencetabBar, icon assets, or label spacing, prefer the text-only custom tabBar default below unless the user explicitly requires iconsUse CloudBase rules only when applicable
Recommend the right preview/debug path
miniprogram-ci for preview, upload, and npm build workflows where appropriateProject Structure
project.config.json.json configuration filesConfiguration Checks
project.config.json before opening, previewing, or publishing a projectappid is available when a real preview, upload, or WeChat Developer Tools workflow is requiredminiprogramRoot and related path settings are correctResource Handling
tabBar, prefer a text-only custom tabBar by default when the user does not explicitly need icons. This avoids icon asset handling, removes reserved icon space, and makes the label area easier to align.iconPath / selectedIconPath when the user explicitly asks for tab icons or the design requires them.tabBarUse tabBar.custom = true, keep only pagePath and text in app.json, and render text-only items in the custom component so there is no icon slot and no extra blank area above the label.
app.json
{
"tabBar": {
"custom": true,
"list": [
{ "pagePath": "pages/index/index", "text": "首页" },
{ "pagePath": "pages/travel/travel", "text": "行程" },
{ "pagePath": "pages/my/my", "text": "我的" }
]
}
}
Keep the custom tabBar layout text-only, and use flex centering or matching height and line-height to remove the blank area above the label. Switch to downloaded local icons only when the user explicitly wants icon-based tabs.
wx.cloud, Tencent CloudBase, 腾讯云开发, or 云开发, follow the CloudBase integration referencewx.cloud APIs and CloudBase environment configuration appropriatelyminiprogram-ci as the fallback path for preview, upload, and npm build-related automationapp.js
App({
onLaunch() {
console.log("Mini Program launched");
},
});
pages/index/index.js
Page({
data: {
message: "Hello CloudBase Mini Program",
},
});
pages/index/index.wxml
<view class="page">
<text>{{message}}</text>
</view>
pages/index/index.json
{
"navigationBarTitleText": "Home"
}
project.config.json
{
"appid": "your-mini-program-appid",
"projectname": "cloudbase-mini-program",
"miniprogramRoot": "./",
"compileType": "miniprogram"
}
npx claudepluginhub tencentcloudbase/cloudbase-mcp --plugin cloudbaseDevelops, deploys, and troubleshoots CloudBase projects including mini-programs, web apps, databases, cloud functions, and AI integration.
Develops, deploys, and troubleshoots CloudBase (腾讯云开发) projects: web apps, WeChat Mini Programs, serverless functions, databases, auth, cloud storage, and built-in AI models.
Develops, previews, saves, deploys, and rollbacks CloudBase Vite-based React/Vue web apps in a vibe-coding session. Use when the user wants to build and iterate on a browser-rendered CloudBase project.