Skip to content

Commit 5972690

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): CloudBase Skill JS SDK 数据操作示例不足,Agent 无法识别正确执行路径 (issue_mo8wii1o_geapz9)
1 parent e2ca73f commit 5972690

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • config/source/skills/no-sql-web-sdk

config/source/skills/no-sql-web-sdk/SKILL.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ Keep local `references/...` paths for files that ship with the current skill dir
4141
- SQL / MySQL database operations.
4242
- Pure resource-permission administration with no browser SDK code.
4343

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+
4459
### Common mistakes / gotchas
4560

4661
- Querying before the user is signed in when the collection rules require identity.

0 commit comments

Comments
 (0)