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
| Spec workflow / architecture design |`spec-workflow`|`cloudbase` and platform skill | direct implementation skills | Requirements, design, tasks confirmed |
55
+
| NoSQL direct MCP operations (check / create / insert / query without writing SDK code) |`cloudbase-platform`|`no-sql-web-sdk` or `no-sql-wx-mp-sdk` (for SDK code only) |`auth-web`, `http-api`| Collection must exist before data operations; use `checkCollection` → `createCollection` → insert → query sequence |
55
56
| Resource health inspection / troubleshooting / 巡检 / 诊断 |`ops-inspector`|`cloud-functions`, `cloudrun-development`|`ui-design`, `spec-workflow`| CLS enabled, time range for logs |
56
57
57
58
### Routing reminders
58
59
59
60
- Web auth failures are usually caused by skipping provider configuration, not by missing frontend code snippets.
60
61
- Native App failures are usually caused by reading Web SDK paths, not by missing HTTP API knowledge.
61
62
- Mini program failures are usually caused by treating `wx.cloud` like Web auth or Web SDK.
63
+
- NoSQL MCP operation failures are usually caused by the model generating SDK code (`db.collection(...)`) instead of calling the MCP tools (`readNoSqlDatabaseStructure`, `writeNoSqlDatabaseStructure`, `readNoSqlDatabaseContent`, `writeNoSqlDatabaseContent`) directly. When the task says to operate on a collection via MCP, call the tools — do not write JavaScript.
62
64
63
65
### Web SDK quick reminder
64
66
@@ -284,6 +286,15 @@ Prefer long-term memory when available: write the scenarios and working rules th
284
286
- NoSQL Database: Refer to the `no-sql-wx-mp-sdk` skill
285
287
- MySQL Relational Database: Refer to the `relational-database-tool` skill (via tools)
286
288
289
+
**Direct MCP Tool Operations (no SDK code):**
290
+
- When the task requires operating NoSQL collections directly via MCP tools (not writing browser/mini-program code), use these 4 tools:
291
+
- `readNoSqlDatabaseStructure`— check/list/describe collections and indexes
292
+
- `writeNoSqlDatabaseStructure`— create/update/delete collections and indexes
293
+
- `readNoSqlDatabaseContent`— query documents from a collection
**Important**: After `createCollection`, the tool internally waits for the collection to become ready before returning. You do NOT need to add a separate delay or retry loop.
-**Forgetting to create the collection first**: All content operations (`readNoSqlDatabaseContent`, `writeNoSqlDatabaseContent`) require the collection to already exist. Always check with `checkCollection` and create with `createCollection` if needed before doing data operations.
270
+
-**Using `update` without `$set`**: When updating documents, passing a plain object like `{"status":"completed"}` will **replace the entire document**. Use `{"$set":{"status":"completed"}}` for partial updates.
271
+
-**Mixing SDK code patterns with MCP tool calls**: When in pure MCP mode, do NOT generate JavaScript code using `db.collection(...)`. Call the MCP tools directly instead.
272
+
-**Not chaining operations sequentially**: Multi-step operations (check → create → insert → query) must be done in order; each step may depend on the previous step's result.
0 commit comments