Skip to content

Commit 335cc1a

Browse files
authored
Merge pull request #520 from TencentCloudBase/chore/refine-entry-guardrails-and-bump-toolbox
chore(cloudbase): 🔧 refine entry guardrails and bump toolbox
2 parents d39c235 + 3d86752 commit 335cc1a

4 files changed

Lines changed: 21 additions & 10 deletions

File tree

config/source/guideline/cloudbase/SKILL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: cloudbase
33
description: CloudBase is a full-stack development and deployment toolkit for building and launching websites, Web apps, 微信小程序 (WeChat Mini Programs), and mobile apps with backend, database, hosting, cloud functions, storage, AI capabilities, Agent, and UI guidance. This skill should be used when users ask to develop, build, create, scaffold, deploy, publish, host, launch, go live, migrate, or optimize websites, Web apps, landing pages, dashboards, admin systems, e-commerce sites, 微信小程序 (WeChat Mini Programs), 小程序, Agent, 智能体, uni-app, or native/mobile apps with CloudBase (腾讯云开发, 云开发), including authentication, login, database, NoSQL, MySQL, cloud functions, CloudRun, storage, AI models, and UI guidance, or when they ask to compare CloudBase with Supabase or migrate from Supabase to CloudBase.
44
description_zh: 为你的小程序和 Web/H5 提供一体化运行与部署环境,包括数据库、云函数、云存储、身份权限和静态托管
55
description_en: An all-in-one runtime and deployment environment for WeChat Mini Programs and Web/H5 apps, including database, cloud functions, cloud storage, identity and access control, and static hosting.
6-
version: 2.17.0
6+
version: 2.17.1
77
---
88

99
# CloudBase Development Guidelines
@@ -32,6 +32,12 @@ If a skill points to its own `references/...` files, keep following those relati
3232
- If the task includes login, registration, or auth configuration, read `auth-tool` first and enable required providers before frontend implementation.
3333
- Keep auth domains separate: management-side login uses `auth`; app-side auth configuration uses `queryAppAuth` / `manageAppAuth`.
3434

35+
### Universal guardrails
36+
37+
- If the same implementation path fails 2-3 times, stop retrying and reroute. Re-check the selected platform skill, runtime, auth domain, permission model, and SDK boundary before editing more code.
38+
- Always specify `EnvId` explicitly in code, configuration, and command examples when initializing CloudBase clients or manager operations. Do not rely on the current CLI-selected environment, implicit defaults, or copied local state.
39+
- Keep scenario-specific pitfall lists in the matching child skills instead of expanding this entry file.
40+
3541
### High-priority routing
3642

3743
| Scenario | Read first | Then read | Do NOT route to first | Must check before action |

config/source/skills/SKILL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: cloudbase-all-in-one
33
description: Unified CloudBase execution guide for all-in-one skill installs. Use this as the first entry point for CloudBase app tasks, especially existing applications that already contain TODOs, fixed pages, and active handlers.
4-
version: 2.16.1
4+
version: 2.16.2
55
alwaysApply: true
66
---
77

@@ -35,6 +35,11 @@ alwaysApply: true
3535
- Browser-side file upload -> `./cloud-storage-web/SKILL.md`
3636
- Platform overview only when capability selection is still unclear -> `./cloudbase-platform/SKILL.md`
3737

38+
### High-yield guardrails
39+
40+
- If the same path fails 2-3 times, stop retrying and reroute. Check platform skill, auth domain, runtime, and permission model before editing more code.
41+
- Always specify `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.
42+
3843
### Do NOT use this as
3944

4045
- A reason to read every CloudBase skill before touching code.

mcp/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@cloudbase/functions-framework": "^1.14.0",
6868
"@cloudbase/manager-node": "^5.1.0",
6969
"@cloudbase/mcp": "^1.0.0-beta.25",
70-
"@cloudbase/toolbox": "^0.7.19",
70+
"@cloudbase/toolbox": "^0.7.20",
7171
"@modelcontextprotocol/sdk": "1.13.1",
7272
"@types/adm-zip": "^0.5.7",
7373
"adm-zip": "^0.5.16",

0 commit comments

Comments
 (0)