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
Copy file name to clipboardExpand all lines: config/source/skills/no-sql-web-sdk/SKILL.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,21 @@ Keep local `references/...` paths for files that ship with the current skill dir
41
41
- SQL / MySQL database operations.
42
42
- Pure resource-permission administration with no browser SDK code.
43
43
44
+
### SDK Code vs MCP Tools
45
+
46
+
**When to write SDK code (use this skill):**
47
+
- The task explicitly asks to "modify code" or "use SDK"
48
+
- The task asks to implement app/frontend logic
49
+
- The task mentions specific SDK methods like `db.collection().add()`, `.get()`, `.update()`
50
+
- The context shows an existing Web project with SDK initialization (e.g., `index.js` already has `cloudbase.init()`)
51
+
52
+
**When to use MCP tools instead:**
53
+
- The task asks to manage CloudBase resources (create collection, set permissions, etc.)
54
+
- The task involves admin/management operations without writing app code
55
+
- The task mentions tools like `writeNoSqlDatabaseContent`, `managePermissions`, etc.
56
+
57
+
**Key distinction:** If the user says "使用 JS SDK 执行 XX 操作" (use JS SDK to perform XX operation) or "修改代码" (modify code), write SDK code in the project files. Do not use MCP database write tools for app-level data operations.
58
+
44
59
### Common mistakes / gotchas
45
60
46
61
- Querying before the user is signed in when the collection rules require identity.
0 commit comments