You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command automatically downloads and runs the latest version of the setup script from npm.
58
+
62
59
---
63
60
64
61
## Step 2: Locate Workspace Directory
@@ -97,7 +94,7 @@ You need three values:
97
94
98
95
**How to get them:**
99
96
100
-
1.**EnvId**: Go to [CloudBase Console](https://tcb.cloud.tencent.com)
97
+
1.**EnvId**: Go to [CloudBase Console](https://tcb.cloud.tencent.com/dev)
101
98
- Select your environment
102
99
- Copy the Environment ID from the top-left corner
103
100
@@ -188,14 +185,65 @@ When working with CloudBase projects, the agent MUST:
188
185
189
186
3.**Prefer SDK + security rules** - If the requirement can be satisfied with the document database SDK and security rules alone, do NOT introduce cloud functions.
190
187
191
-
4.**Deploy to subdirectory (mandatory)** - When deploying web apps to static hosting, you MUST use a subdirectory path (e.g., `/my-app/`), not the root, unless the user explicitly asks otherwise.
188
+
4. The workspace includes a **CloudBase + React template** (`app/` directory) that you can copy as a starting point for new projects.
189
+
190
+
192
191
193
-
5.**Auto-deploy web apps** - After completing a web application, automatically deploy it to CloudBase static hosting using MCP tools.
192
+
5.**Deploy to subdirectory (mandatory)** - When deploying web apps to static hosting, you MUST use a subdirectory path (e.g., `/my-app/`), not the root, unless the user explicitly asks otherwise.
193
+
194
+
6.**Auto-deploy web apps** - After completing a web application, automatically deploy it to CloudBase static hosting using MCP tools.
The **skill-enhancer** plugin automatically instructs the model to list available skills and justify their usage before responding, ensuring skills are properly considered before writing code.
202
+
203
+
### 5.1 Install the Plugin
204
+
205
+
```bash
206
+
npx @cloudbase/setup-openclaw install-plugin
207
+
```
208
+
209
+
**What it does:**
210
+
- Detects your OpenClaw/Moltbot installation directory (`~/.openclaw/`, `~/.clawdbot/`, or `~/.moltbot/`)
211
+
- Creates `extensions/skill-enhancer/` directory in the installation directory
212
+
- Copies plugin files (`openclaw.plugin.json` and `index.ts`) from the skill package
213
+
- Creates or updates `openclaw.json` to enable the plugin
214
+
- Provides instructions to restart the gateway
215
+
216
+
### 5.2 Plugin Behavior
217
+
218
+
The plugin injects instructions into the model's context before each turn:
219
+
-**Lists available Skills** that can be used for the request
**Example:** When working with CloudBase projects, the model will be instructed to read `cloudbase-guidelines` skill FIRST before writing any code.
224
+
225
+
### 5.3 Restart Gateway
226
+
227
+
After installation, restart the gateway to load the plugin:
228
+
229
+
```bash
230
+
# For Moltbot
231
+
moltbot gateway restart
232
+
233
+
# For OpenClaw
234
+
openclaw gateway restart
235
+
236
+
# Or for Clawdbot
237
+
clawdbot restart
238
+
```
239
+
240
+
**Verify plugin is loaded:**
241
+
242
+
After restarting, the plugin will automatically inject instructions into the model's context. You can verify this by asking the agent a question and checking if it lists available skills before responding.
243
+
244
+
---
245
+
246
+
## Step 6: Install CloudBase Skills
199
247
200
248
Install the CloudBase skills package to make all CloudBase-related skills available:
201
249
@@ -226,64 +274,6 @@ You should see skills like:
226
274
227
275
---
228
276
229
-
## Step 6: Copy App Template (Optional)
230
-
231
-
The workspace includes a **CloudBase + React template** (`app/` directory) that you can copy as a starting point for new projects.
0 commit comments