Agent skill

Cloudbase Document Database In Wechat Miniprogram

by TencentCloudBase in TencentCloudBase/CloudBase-AI-Toolkit

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data.

MITAuto-check passedDatabases

Install Cloudbase Document Database In Wechat Miniprogram

skills CLI
$ npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TencentCloudBase/CloudBase-AI-Toolkit cloudbase-document-database-in-wechat-miniprogram --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/config/source/skills/cloudbase-document-database-in-wechat-miniprogram .claude/skills/cloudbase-document-database-in-wechat-miniprogram && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cloudbase-document-database-in-wechat-miniprogram
GitHub stars
1.1k
Used in
3 other repos
Token cost
~1.2k tokens
SKILL.md length
519 words
Files
7
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data.

  • Works in 4 steps: Keep Mini Program code Mini Program-native → Respect ownership fields → Remember that security rules validate… → …
  • Tasks that involve NoSQL databases
  • SKILL.md covers Sibling skills (local only), Activation Contract, Overview and Canonical initialization, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cloudbase Document Database In Wechat Miniprogram is an agent skill from TencentCloudBase/CloudBase-AI-Toolkit. Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `aggregation.md`, `complex-queries.md` and `crud-operations.md`).

It sits in Databases, covering NoSQL databases and Messaging and chat bots. It works with WeChat. The repository describes itself as: Backend for AI coding agents on CloudBase — database, auth, functions via Plugin, Skills & MCP. The licence is MIT.

When your agent uses it

  • Tasks that involve NoSQL databases
  • Tasks that involve Messaging and chat bots

Example prompts

  • “/cloudbase-document-database-in-wechat-miniprogram”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Keep Mini Program code Mini Program-native
  2. Respect ownership fields
  3. Remember that security rules validate requests
  4. Route admin-style operations to backend flows

What it can do on your machine

Read from SKILL.md and the folder at commit ea2c202. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cloudbase Document Database In Wechat Miniprogram loads about 1.2k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 519 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TencentCloudBase/CloudBase-AI-Toolkit at commit ea2c202, republished under its MIT licence (© TencentCloudBase). 519 words, ~1,201 tokens.

Download SKILL.mdSave it as .claude/skills/cloudbase-document-database-in-wechat-miniprogram/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
cloudbase-document-database-in-wechat-miniprogram
description
Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.
version
2.34.8
alwaysApply
false

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 WeChat Mini Program SDK

Activation Contract

Use this first when
  • A WeChat Mini Program must access CloudBase document database through wx.cloud.database().
  • The request mentions Mini Program collection CRUD, pagination, aggregation, or geolocation queries.
Read before writing code if
  • The task is Mini Program database work but you still need to separate it from Web SDK, cloud functions, or SQL tasks.
  • The request depends on built-in user identity, _openid, or Mini Program-side permissions.
Then also read
  • Mini Program project rules and CloudBase integration -> ../miniprogram-development/SKILL.md
  • Mini Program auth and identity flow -> ../auth-wechat-miniprogram/SKILL.md
  • Browser-side document database code -> ../cloudbase-document-database-web-sdk/SKILL.md
Do NOT use for
  • Browser/Web code using @cloudbase/js-sdk.
  • Server-side or cloud-function database access.
  • MySQL / relational database work.
Common mistakes / gotchas
  • Copying Web SDK code into Mini Program pages.
  • Manually writing _openid during create or update operations.
  • Assuming built-in Mini Program identity means security rules can be ignored.
  • Mixing collection CRUD and backend-wide admin workflows in the same client path.
Minimal checklist
  • Confirm the caller is a Mini Program page/component or Mini Program-side logic.
  • Initialize wx.cloud correctly before database calls.
  • Verify whether the collection rules rely on auth.openid / _openid.
  • Read the specific companion reference file for the operation you need.

Overview

This skill covers Mini Program-side document database access through wx.cloud.database().

Use it for:

  • collection CRUD in Mini Program pages
  • query composition and pagination
  • aggregation
  • geolocation queries

Mini Program CloudBase access comes with built-in identity, but database operations are still constrained by collection permissions and security rules.

Show full SKILL.md (221 more words)Show less

Canonical initialization

javascript
const db = wx.cloud.database();
const _ = db.command;

To target a specific environment:

javascript
const db = wx.cloud.database({
  env: "test"
});

Important notes:

  • Users are authenticated through the Mini Program CloudBase context.
  • In cloud functions, caller identity is available through wxContext.OPENID.
  • In client-side collection rules, ownership checks usually use auth.openid / doc._openid.

Quick routing

  • CRUD -> ./crud-operations.md
  • Complex queries -> ./complex-queries.md
  • Pagination -> ./pagination.md
  • Aggregation -> ./aggregation.md
  • Geolocation -> ./geolocation.md
  • Security rules -> ./security-rules.md

Working rules for a coding agent

  1. Keep Mini Program code Mini Program-native

    • Use wx.cloud.database().
    • Do not substitute browser SDK initialization patterns.
  2. Respect ownership fields

    • _openid is system-managed for SDK writes.
    • Never set or override _openid manually in .add(), .set(), or .update() payloads.
  3. Remember that security rules validate requests

    • If a rule requires ownership conditions, the query shape must match that rule model.
    • Permission errors usually mean the rule/query relationship is wrong, not only that the user is logged out.
  4. Route admin-style operations to backend flows

    • If the task needs privileged global access, use backend tools or functions instead of exposing that path directly in Mini Program client code.

Quick examples

Basic collection access
javascript
const todos = db.collection("todos");
const result = await todos.where({ completed: false }).get();
Document reference
javascript
const todo = db.collection("todos").doc("todo-id");
const result = await todo.get();

Best practices

  1. Create clear collection naming conventions.
  2. Use typed wrappers or model helpers in app code where possible.
  3. Design rules around real ownership and sharing patterns.
  4. Use pagination instead of large unbounded reads.
  5. Keep admin/operations logic in backend code, not Mini Program direct access.

© TencentCloudBase, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files in config/source/skills/cloudbase-document-database-in-wechat-miniprogram of TencentCloudBase/CloudBase-AI-Toolkit.

  • SKILL.md
  • aggregation.md
  • complex-queries.md
  • crud-operations.md
  • geolocation.md
  • pagination.md
  • security-rules.md

Open the folder on GitHubat commit ea2c202

Used in 3 other repositories

We found 8 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in TencentCloudBase/CloudBase-AI-Toolkit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Cloudbase Document Database In Wechat Miniprogram next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cloudbase Document Database In Wechat Miniprogram compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cloudbase Document Database In Wechat Miniprogram this skillTencentCloudBase/CloudBase-AI-Toolkit1.1k3 repos~1.2kAutomated safety check: PassMIT
CloudbaseLeoYeAI/openclaw-master-skills2.2k1 repos~4.7kAutomated safety check: PassMIT
Sentry Miniapp SDKlizhiyao/sentry-miniapp686—~5kAutomated safety check: PassMIT
Yichen Wecom Local Vaultmcncarl/yichen-skills4.3k—~1.3kAutomated safety check: PassCustom licence
Postgres Commit History Articledigoal/blog8.6k—~2.3kAutomated safety check: PassGPL-2.0
Amazon Documentdbaws/agent-toolkit-for-aws2.8k—~5.9kAutomated safety check: PassApache-2.0

Similar skills

  • Cloudbase

    LeoYeAI/openclaw-master-skills

    CloudBase is a full-stack development and deployment toolkit for building and launching websites, Web apps, 微信小程序 (WeChat Mini Programs), and mobile apps with backend, database, hosting, cloud…

    2.2k GitHub starsUsed in 1 repo~4.7k tokens
    DatabasesAuto-check passed
  • Sentry Miniapp SDK

    lizhiyao/sentry-miniapp

    Full Sentry SDK setup for Mini Programs — error monitoring, tracing, offline cache, source maps.

    686 GitHub stars~5k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Yichen Wecom Local Vault

    mcncarl/yichen-skills

    Read, decrypt, query, search, and export local WeCom/企业微信 5.x desktop databases on macOS into a private read-only vault.

    4.3k GitHub stars~1.3k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed
  • Analyze PostgreSQL git commit history between two commit ids and, when valuable DBA/application-developer changes exist, write a Chinese Markdown article for WeChat/公众号 readers with examples checked…

    8.6k GitHub stars~2.3k tokensUpdated 9 days ago
    DatabasesAuto-check passed
  • Amazon Documentdb

    aws/agent-toolkit-for-aws

    Official

    Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS/VPC/driver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration…

    2.8k GitHub stars~5.9k tokensUpdated today
    DatabasesAuto-check passed
  • Azure Database Migration

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Database Migration Service development including troubleshooting, decision making, limits & quotas, security, integrations & coding patterns, and deployment.

    775 GitHub stars~1.4k tokensUpdated yesterday
    DatabasesAuto-check passed

More from TencentCloudBase/CloudBase-AI-Toolkit

All 49 skills in this repo
  • AI Model Nodejs

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses for Node.js backend AI via @cloudbase/node-sdk (=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration.

    1.1k GitHub starsUsed in 3 repos~5k tokens
    Auto-check passed
  • HTTP API Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    CloudBase official HTTP API client guide. An agent skill from TencentCloudBase/CloudBase-AI-Toolkit.

    1.1k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Cloud API Recipe Authoring

    TencentCloudBase/CloudBase-AI-Toolkit

    Author or revise a cloud-api-operations recipe (config/source/skills/cloud-api-operations/references/recipes/).

    1.1k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Manage Local Skills

    TencentCloudBase/CloudBase-AI-Toolkit

    Analyze, standardize, validate, and sync locally maintained skills into agent skill directories with a skills CLI-aligned workflow.

    1.1k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Cloudbase Agent Python

    TencentCloudBase/CloudBase-AI-Toolkit

    Build production-ready AI agent backends using the CloudBase Agent Python SDK — create agents with LangGraph/CrewAI/LlamaIndex, serve them via FastAPI with AG-UI protocol streaming +…

    1.1k GitHub starsUsed in 2 repos~2.9k tokens
    Auto-check: notes
  • Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    A skill your agent uses when you develop, design, build, deploy, debug, migrate, or troubleshoot CloudBase (腾讯云开发, 云开发, TCB, 微信云开发) projects — Web, 微信小程序, 小程序, uni-app, mobile (iOS, Android…

    1.1k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed

Works with

Questions about Cloudbase Document Database In Wechat Miniprogram

What does Cloudbase Document Database In Wechat Miniprogram do?

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Cloudbase Document Database In Wechat Miniprogram is an agent skill from TencentCloudBase/CloudBase-AI-Toolkit. Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data.

When should I use Cloudbase Document Database In Wechat Miniprogram?

Cloudbase Document Database In Wechat Miniprogram fits situations like: tasks that involve NoSQL databases; tasks that involve Messaging and chat bots.

How do I install Cloudbase Document Database In Wechat Miniprogram in Claude Code?

Run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a claude-code`. Or copy the skill folder (config/source/skills/cloudbase-document-database-in-wechat-miniprogram in TencentCloudBase/CloudBase-AI-Toolkit) into .claude/skills/cloudbase-document-database-in-wechat-miniprogram in your project. Claude Code loads it when a task matches its description.

How do I install Cloudbase Document Database In Wechat Miniprogram in Codex?

Run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a codex`. Or copy the skill folder (config/source/skills/cloudbase-document-database-in-wechat-miniprogram in TencentCloudBase/CloudBase-AI-Toolkit) into .agents/skills/cloudbase-document-database-in-wechat-miniprogram in your project. Codex loads it when a task matches its description.

Can I use Cloudbase Document Database In Wechat Miniprogram in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-document-database-in-wechat-miniprogram -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cloudbase-document-database-in-wechat-miniprogram, .gemini/skills/cloudbase-document-database-in-wechat-miniprogram, .github/skills/cloudbase-document-database-in-wechat-miniprogram and .opencode/skills/cloudbase-document-database-in-wechat-miniprogram in your project.

What does Cloudbase Document Database In Wechat Miniprogram need to run?

SKILL.md names no scripts, command-line tools or credentials: Cloudbase Document Database In Wechat Miniprogram is instructions for the agent only.

Does Cloudbase Document Database In Wechat Miniprogram access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cloudbase Document Database In Wechat Miniprogram safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cloudbase Document Database In Wechat Miniprogram use?

Cloudbase Document Database In Wechat Miniprogram is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cloudbase Document Database In Wechat Miniprogram use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cloudbase Document Database In Wechat Miniprogram?

Skills that share tags, products or a category with Cloudbase Document Database In Wechat Miniprogram: Cloudbase (LeoYeAI/openclaw-master-skills, 2.2k stars), Sentry Miniapp SDK (lizhiyao/sentry-miniapp, 686 stars), Yichen Wecom Local Vault (mcncarl/yichen-skills, 4.3k stars) and Postgres Commit History Article (digoal/blog, 8.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cloudbase Document Database In Wechat Miniprogram?

TencentCloudBase (a GitHub organization) maintains it in TencentCloudBase/CloudBase-AI-Toolkit, which has 1,132 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 6, 2026.

Source: TencentCloudBase/CloudBase-AI-Toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.