Use CloudBase document database Web SDK only for confirmed NoSQL collection work. Query, create, update, and delete document data; if the task mentions PostgreSQL / CloudBase PG / app.rdb(), route to postgresql-development instead.
SkillScore95Maintained
Automatic
◆Frontend / UI pack
Last verified 8/9/2026
What it changes
Passed 21 of 22 test cases with the skill, and 11 of 22 without it.
Without skill50%
With skill95%
Checks it passed that the model alone missed
The code assigns db.command to variable _.
The code uses app.rdb() to access the PostgreSQL database.
The code uses watch() to subscribe to live message changes.
and 10 more in the full report
10 fixed11 passed either way1 still failing0 broke
Pass-rate lift
+45 pp
Tokens
+80%
Agent turns
0%
Response time
-39%
Model gemini-3.6-flashMeasured 8/9/2026v221 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 10
Prompt
When setting up database operations in a JS module, how should database query command helper `_` be declared from the initialized database instance?
What was checked, without and with the skill
Checked
Without skill
With skill
The code assigns db.command to variable _.
Missed
Passed
case-21 · gemini-3.6-flash · 8/9/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md195 linessingle file
Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
CloudBase Document Database Web SDK
Activation Contract
Use this first when
A browser or Web app must read or write CloudBase document database data through @cloudbase/js-sdk.
The request mentions app.database(), db.collection(), .where(), .watch(), pagination, aggregation, or geolocation queries in a Web frontend.
Read before writing code if
The task is clearly browser-side, but you still need to decide between Web SDK, Mini Program SDK, or backend access.
The request touches login state, collection permissions, or realtime updates.
Then also read
Web login and caller identity -> ../auth-web-cloudbase/SKILL.md
General Web app structure -> ../web-development/SKILL.md
Mini Program database code -> ../cloudbase-document-database-in-wechat-miniprogram/SKILL.md
Do NOT use for
Mini Program code using wx.cloud.database().
Server-side or cloud-function database access.
SQL / MySQL database operations.
Pure resource-permission administration with no browser SDK code.
NEW business tables that the task explicitly asks to put in CloudBase PostgreSQL (CloudBase PG). Before applying this skill, call envQuery(action="info", envId=...) and read EnvInfo.RuntimeBackends. If postgresql === true AND the task asks for a new business table to live in PG, switch to the postgresql-development-cloudbase skill for that table: it goes through app.rdb(), uses PG row-level security (CREATE POLICY), and uploads via app.storage.from('<bucket>').upload('<key>', file) against an explicitly-created pgstore bucket.
Existing NoSQL collections in the same env keep using THIS skill — PG and NoSQL coexist in CloudBase PG environments. The rule is "follow the task / existing surface", not "PG env forbids NoSQL".
SDK Code vs MCP Tools
When to write SDK code (use this skill):
The task explicitly asks to "modify code" or "use SDK"