Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-13 | ✓→✓ | = Same ✓ | 29% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 12% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 39% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 18% | 0% |
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.
wx.cloud.database()._openid, or Mini Program-side permissions.../miniprogram-development/SKILL.md../auth-wechat-miniprogram/SKILL.md../cloudbase-document-database-web-sdk/SKILL.md@cloudbase/js-sdk._openid during create or update operations.wx.cloud correctly before database calls.auth.openid / _openid.This skill covers Mini Program-side document database access through wx.cloud.database().
Use it for:
Mini Program CloudBase access comes with built-in identity, but database operations are still constrained by collection permissions and security rules.
javascriptconst db = wx.cloud.database(); const _ = db.command;
To target a specific environment:
javascriptconst db = wx.cloud.database({ env: "test" });
Important notes:
wxContext.OPENID.auth.openid / doc._openid../crud-operations.md./complex-queries.md./pagination.md./aggregation.md./geolocation.md./security-rules.mdwx.cloud.database()._openid is system-managed for SDK writes._openid manually in .add(), .set(), or .update() payloads.javascriptconst todos = db.collection("todos"); const result = await todos.where({ completed: false }).get();
javascriptconst todo = db.collection("todos").doc("todo-id"); const result = await todo.get();
Other measured skills in the registry, with their headline benchmark lift.