Skip to content

Commit 589dc40

Browse files
chore: sync from CloudBase-MCP
1 parent b761a04 commit 589dc40

4 files changed

Lines changed: 35 additions & 13 deletions

File tree

‎generated/skill-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": 2,
3-
"generatedAt": "2026-10-10T06:30:58.482Z",
3+
"generatedAt": "2026-10-10T08:11:58.547Z",
44
"skills": {
55
"ai-model-nodejs": {
66
"name": "ai-model-nodejs",

‎skills/miniprogram-development/SKILL.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ If a referenced sibling skill file is missing from this environment, ask the use
4949
- Mixing Web SDK assumptions into `wx.cloud` projects.
5050
- Applying CloudBase constraints before confirming the project actually uses CloudBase.
5151
- Assuming Stable WeChat Developer Tools includes Nightly Skills/`wechatide` (it may not).
52+
- Running `which wechatide`, finding nothing, and quietly switching to manual import. Missing `wechatide` is a setup gap to report and offer to fix, not an environment limit — state that Nightly is required, offer to install it, and wait for the user's decision before falling back.
5253
- Forcing CloudBase MCP Tencent Cloud login for daily mini program cloud ops when Nightly `wechatide` already works.
5354
- Inventing `wechatide` tool names or flags instead of using `--help` / Nightly `tools.yaml`.
5455
- Bypassing wxide CLI / IDE for message-push ops with low-level transport before `cloud_*_msg_push` is exposed (see [message-push-customer-service.md](references/message-push-customer-service.md)).
@@ -101,9 +102,10 @@ Use this skill for **WeChat Mini Program development** when you need to:
101102
- Only apply CloudBase-specific auth, database, storage, or cloud function constraints when the project is using CloudBase
102103

103104
5. **Recommend the right preview/debug/cloud-ops path**
104-
- Prefer **Nightly** WeChat Developer Tools (built-in Skills/MCP) and execute via `wechatide` when available — see [devtools-debug-preview.md](references/devtools-debug-preview.md)
105+
- Default target: **Nightly** WeChat Developer Tools (built-in Skills/MCP), executed through `wechatide` — see [devtools-debug-preview.md](references/devtools-debug-preview.md)
105106
- Nightly download: https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly_backup.html
106-
- If Nightly / `wechatide` is unavailable, fall back to `miniprogram-ci` for preview/upload and CloudBase MCP for cloud resources
107+
- A missing `wechatide` is a **one-time setup gap, not an environment limit**. Tell the user Nightly is required for the CLI-driven path, offer to download/install it, and **wait for their answer**. Only after they decline or cannot install do you continue with `miniprogram-ci` + CloudBase MCP.
108+
- Never present stable DevTools + hand import as the recommended default, and never make the "keep it simple" trade-off on the user's behalf. Manual import is a downgrade the user chooses, not one you assign.
107109

108110
---
109111

@@ -156,9 +158,10 @@ Keep the custom `tabBar` layout text-only, and use flex centering or matching `h
156158

157159
## Debugging, Preview, and Publishing
158160

159-
- Prefer **Nightly** DevTools + `wechatide` for open project, compile, simulator, console/network debug, preview, upload, and daily cloud ops (WeChat login — no separate Tencent Cloud login)
161+
- **Default path**: **Nightly** DevTools + `wechatide` for open project, compile, simulator, console/network debug, preview, upload, and daily cloud ops (WeChat login — no separate Tencent Cloud login)
160162
- Always pass required context: `-c <clientName>`, absolute `--project`, valid `appid`, and cloud `env` when needed
161-
- If Nightly / `wechatide` is not available, use `miniprogram-ci` as the fallback for preview/upload/npm, and CloudBase MCP for cloud resources; tell the user to install Nightly for full Skills/MCP
163+
- **If `wechatide` is missing**: report it as a setup gap, state that Nightly is required for the CLI-driven path, offer to install it, and wait for the user's answer — do not downgrade on your own
164+
- Only after the user declines or cannot install Nightly: use `miniprogram-ci` for preview/upload/npm plus CloudBase MCP for cloud resources, and say which capabilities are now missing (simulator, console/network, automation, CLI cloud ops)
162165
- For detailed workflows, read [debug and preview reference](references/devtools-debug-preview.md) and [WeChat IDE Skills vs CloudBase MCP](references/wxide-vs-cloudbase-mcp.md)
163166

164167
## Message Push & Customer Service Auto-Reply

‎skills/miniprogram-development/references/devtools-debug-preview.md‎

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,29 @@ Nightly 可用时,**不要** 为这些日常操作强制经 CloudBase MCP 单
122122
- 工具失败时:展示原始错误;不要臆造替代工具名或静默重试
123123
- 临时下载 URL 寿命短;绝不要提交进源码
124124

125-
## 2. 回退:无 Nightly / 无 `wechatide`
125+
## 2. `wechatide` 缺失:先补前置,再谈回退
126126

127-
Nightly Skills 不可用时:
127+
**缺失 `wechatide` 是一次性安装缺口,不是「环境不支持」。** 不得据此自行降级到手动路径。
128128

129-
1. 告知用户:仅稳定版 DevTools 可能不含 Skills/MCP;推荐上方 Nightly 下载页
130-
2. 密钥与 IP 白名单就绪时,用 `miniprogram-ci` 做预览 / 上传 / npm 构建
131-
3. 需要腾讯云登录的云资源操作,用 **CloudBase MCP**(IDE MCP 或 `mcporter`)
129+
按顺序做,不要跳步:
130+
131+
1. 明确告知:AI 自动开发(打开项目 / 编译 / 模拟器 / 控制台 / 网络 / 上传 / 云函数与数据库操作)依赖 Nightly 内置 Skills 与 `wechatide`;仅稳定版通常没有这些能力。
132+
2. **主动提出帮忙下载安装 Nightly** —— 给出下载页,说明这是一次性成本、装完后续全自动;如果用户卡在正式 AppID,一并说明。
133+
3. **停下来等用户决定。** 用户同意 → 走安装 + 第 1 节流程;用户明确拒绝或确实装不了 → 才进入 2.1。
134+
135+
禁止:
136+
137+
- 把「稳定版 + 手动导入」当作推荐默认方案抛出
138+
- 在用户表态之前就输出手动导入步骤,或替用户做「选最省事的」这个取舍
139+
- 拿 `command not found` 当自行降级的理由
140+
141+
### 2.1 用户拒绝 / 无法安装时的回退
142+
143+
用户明确表态后才执行:
144+
145+
1. 用 `miniprogram-ci` 做预览 / 上传 / npm 构建(需 `appid`、项目路径、代码上传私钥、后台 IP 白名单)
146+
2. 需要腾讯云登录的云资源操作,用 **CloudBase MCP**(IDE MCP 或 `mcporter`)
147+
3. 明确说明缺失了哪些能力,别让用户以为拿到了完整的 AI 开发体验
132148

133149
### `miniprogram-ci` 能做什么
134150

@@ -150,10 +166,11 @@ Nightly + `wechatide` 可用时:
150166
- 按需携带 `clientName`、绝对路径 `--project`,以及 `appid`/`env`
151167
- 用 `--help` 或内置 `tools.yaml` 查参数 —— 永不臆造工具
152168

153-
不可用时:
169+
`wechatide` 缺失时:
154170

155-
- 回退到 `miniprogram-ci` + CloudBase MCP
156-
- 明确说明缺失哪些调试能力
171+
- 按第 2 节走:告知缺口 → 主动提出安装 Nightly → 等用户决定
172+
- **不要**直接给出手动导入方案,也不要替用户选「省事」的那条
173+
- 用户明确拒绝后才回退到 `miniprogram-ci` + CloudBase MCP,并明确说明缺失哪些调试能力
157174

158175
## 4. 官方参考
159176

‎skills/miniprogram-development/references/wxide-vs-cloudbase-mcp.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Nightly 内置 Skills/MCP:https://developers.weixin.qq.com/miniprogram/dev/dev
1616

1717
1. 任务是否为小程序 **调试 / 预览 / 打开项目 / 控制台 / 网络 / 上传体验版**?
1818
- 是 → **微信 IDE Skills**(`wechatide`)。见 [devtools-debug-preview.md](devtools-debug-preview.md)。
19+
- 缺 `wechatide` → 不要改走手动导入:先说明 Nightly 是 AI 自动开发的前提并主动提出安装,等用户决定,见 [devtools-debug-preview.md](devtools-debug-preview.md) §2。
1920
2. 任务是否为小程序 CloudBase 环境上的 **日常** 云操作(列举/查询集合、部署函数、列举/上传存储)?
2021
- Nightly 可用 → **微信 IDE Skills** 的 `cloudbase-operator` 工具。
2122
- Nightly 不可用 → **CloudBase MCP**(完成腾讯云登录后)。
@@ -36,6 +37,7 @@ Nightly 内置 Skills/MCP:https://developers.weixin.qq.com/miniprogram/dev/dev
3637

3738
**禁止**
3839

40+
- 探测到 `wechatide` 缺失就直接改走「稳定版 + 手动导入」—— 缺 CLI 是安装缺口:告知 Nightly 是 AI 自动开发的前提、主动提出安装、等用户决定,降级与否由用户定
3941
- 在 `wechatide` 已能用微信登录完成日常 NoSQL / 函数 / 存储操作时,仍强制单独走腾讯云 MCP 登录
4042
- 假定稳定版 DevTools 与 Nightly 具备相同的 Skills/MCP
4143
- 复制或臆造 `wechatide` 工具 schema —— 使用 `--help` 与 Nightly 的 `tools.yaml`

0 commit comments

Comments
 (0)