cloudbase-miniprogram

cloudbase-miniprogram is a skill for Claude Code from TencentCloudBase/CloudBase-AI-Toolkit. It costs 190 tokens per session (1,994 once invoked), scanned A, original, MIT.

A development guide for WeChat Mini Programs backed by Tencent CloudBase. A Mini Program is a small app that runs inside WeChat, while CloudBase supplies hosted services such as functions, storage, databases, and login.

In plain words
What is it for?
Use it to create, connect, test, submit, and publish a CloudBase-based WeChat Mini Program, including data, uploads, login, messages, and payments.
Why use it?
It covers the backend and publishing details that are easy to miss when building the app's screens alone.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cloudbase-ai-toolkit plugin — 47 skills, 3 commands, 6 agents, 3 MCP servers, 2 plugins shipped together

Good fit Use it to create, connect, test, submit, and publish a CloudBase-based WeChat Mini Program, including data, uploads, login, messages, and payments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram
About the project

CloudBase AI Toolkit is an integration layer that lets AI coding tools use Tencent CloudBase as an application backend, including databases, authentication, functions, storage, and deployments. Developers use it to have coding agents build and operate CloudBase-backed applications through skills, plugins, commands, and chat-accessible tools. The catalogue entries are the toolkit’s own skills, agents, hooks, plugins, rules, instructions, and MCP tools.

TencentCloudBase/CloudBase-AI-Toolkit · 1,151 stars · on GitHub · docs.cloudbase.net

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-miniprogram
Clone the repo
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit

Made for: Claude Code.

Or install cloudbase-ai-toolkit, the plugin that ships this one along with the rest of its 47 skills, 3 commands, 6 agents, 3 MCP servers, 2 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudbase-miniprogram

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram/github.svg)](https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram)
Your own site
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloudbase-miniprogram

Your own site · 80×15
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-miniprogram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00190 $0.01994
Opus 5.5 $0.00076 $0.00798
Sonnet 5.5 $0.00038 $0.00399
Haiku 4.5 $0.00019 $0.00199

Measured today against content hash b7728f276f8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloudbase-miniprogram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

connectors/cloudbase/qianwen/entry/cloudbase-miniprogram/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CloudBase 全栈小程序开发

一个小程序要真正跑起来,缺的从来不是页面,是后端那一半:数据存哪、登录怎么做、图片传到哪、消息怎么发、审核怎么过。这个技能按「从想法到上架」的顺序组织,每一步告诉你调哪个工具、去哪取细节。

配方正文不打包,用 CloudBase MCP 的知识库按需检索(见文末)。这样内容永远跟线上最新版一致。

第 0 步:先问清三件事,别急着写代码

要确认 为什么
小程序 appid 与主体类型 个人 / 个体工商户 / 企业主体决定能用哪些能力(支付、部分类目)。测试号不支持云开发
后端是否用 云开发(CloudBase) 不用云开发就走另一条路,本技能不适用
云开发环境是国内站还是国际站 两套账号体系互不相通,选错的表现是「登录了但环境列表空」

还有一个高频坑:DevTools 里「云开发」入口是灰的,或者看不到环境——先诊断,不要当成工具 bug。常见原因就是上表第三条(主体不支持 / 绑定账号不一致 / 站点错)。诊断路径:searchKnowledgeBase({ mode: "skill", skillName: "miniprogram-development" }) 的 Common Pitfalls 一节。

第 1 步:接上 CloudBase MCP

技能包不能携带 MCP 配置,这一步必须显式做。三条路径按客户端能力选:

# A. 能跑命令的客户端
claude mcp add --transport http cloudbase https://tcb-api.cloud.tencent.com/mcp/v1

# B. 本地 stdio(需要 API Key,或要用远程缺的工具)
claude mcp add cloudbase -- npx -y @cloudbase/cloudbase-mcp@latest

# C. 客户端不支持 MCP 但有终端(走 mcporter 桥)
npx -y [email protected] call --stdio "npx -y @cloudbase/cloudbase-mcp@latest" auth action=status

图形客户端(Cursor、Qoder)只能让用户手动加:类型 HTTP / Streamable HTTP,地址填 /mcp/v1。

验证:调 auth action=status,返回 auth_status: READY 且带 current_env_id 就通了。

第 2 步:先跑通一个最小闭环,再谈功能

顺序固定,不要跳:

  1. 建环境并绑定:manageEnv(查/建)→ auth(action="set_env", envId=...) 绑定。
  2. 建一个集合:writeNoSqlDatabaseStructure。
  3. 写一条数据:writeNoSqlDatabaseContent。
  4. 写一个云函数并部署:manageFunctions,创建后在 DevTools 里「上传并部署:云端安装依赖」;用 MCP 的 queryFunctions / queryLogs 验证调用与日志。
  5. 小程序端读这条数据:wx.cloud.init({ env }) → wx.cloud.database().collection(...).get()。

这五步通了,说明环境、权限、网络都对了;后面加页面只是重复。

第 3 步:按任务路由

要做的事 首选工具 / 技能
项目脚手架、project.config.json、miniprogramRoot、tabBar searchKnowledgeBase → miniprogram-development
数据库集合、索引、权限规则 writeNoSqlDatabaseStructure / manageDataModel
增删改查(小程序端 / 云函数端) writeNoSqlDatabaseContent / readNoSqlDatabaseContent + skill cloudbase-document-database-in-wechat-miniprogram
云函数(含 scf_bootstrap、定时触发) manageFunctions + skill cloud-functions
图片/文件上传 manageStorage + skill cloud-storage-web
登录、openid、用户体系 skill auth-wechat-miniprogram(先在控制台配登录方式)
订阅消息 / 客服消息 skill miniprogram-development 的消息推送一节
预览、上传代码、提交审核 miniprogram-ci,或 DevTools Nightly 的 wechatide CLI
页面长得不好看 skill ui-design
上线后出问题 queryLogs / skill ops-inspector

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 107 lines · 190 tokens per session scan A b7728f276f8f

Subscribe to this mod's changes

cloudbase-miniprogram is a skill published in the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit (1,151 stars, last pushed today), licensed MIT. It adds 190 tokens to every session and 1,994 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.