# Build WeChat Mini Programs with CloudBase

WeChat Mini Program work requires platform-specific structure, preview, and CloudBase decisions. This skill guides setup, debugging, release checks, and CloudBase integration.

## Install

```bash
npx skillstore add tencentcloudbase/miniprogram-development
```

## Metadata

- Status: approved
- Slug: tencentcloudbase-miniprogram-development
- Version: 2.23.8
- Author version: 2.23.8
- Skillstore revision: r1
- Version status: valid
- Tree hash: 801173d0bb51c96da4777c35acb8ecd2caf5391400dbb626b5afd4adbb3eefdb
- Author: tencentcloudbase
- GitHub username: tencentcloudbase
- License: MIT
- Repository: https://github.com/tencentcloudbase/skills/tree/main/skills/miniprogram-development
- Ref: 24b2fe42a456262f3fd0fb3df72e12d9ed2c32ec
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/tencentcloudbase-miniprogram-development
- Manifest: https://skillstore.pages.dev/api/skills/tencentcloudbase-miniprogram-development/manifest

## Capabilities

- Guides Mini Program page, component, structure, and configuration work.
- Checks project configuration, appid, and miniprogramRoot before preview or publishing.
- Recommends WeChat Developer Tools first, with miniprogram-ci as a fallback.
- Provides a text-only custom tabBar default and minimal project skeleton guidance.
- Routes CloudBase work to wx.cloud initialization, identity, database, and storage rules.
- Lists pitfalls for syntax support, TDesign styling, canvas storage, and environment drift.

## Use Cases

- Create Mini Program Pages: Plan page files, component structure, routing, and required configuration for a new feature.
- Review Preview Readiness: Check project configuration, appid, miniprogramRoot, assets, and preview workflow before device testing.
- Add CloudBase Integration: Apply wx.cloud patterns for environment setup, identity, database access, storage, and cloud functions.

## Prompt Templates

### Create a Basic Page

```
Create a WeChat Mini Program page for [feature]. Include required page files and explain where each file belongs.
```

### Review Project Configuration

```
Review this Mini Program project configuration for preview readiness. Check appid, miniprogramRoot, page registration, and asset paths.
```

### Add CloudBase Data Flow

```
Design a CloudBase data flow for [feature]. Use wx.cloud correctly and separate client-safe writes from privileged cloud function work.
```

### Prepare Release Workflow

```
Prepare this Mini Program for preview or upload. Identify required checks for DevTools, real-device testing, miniprogram-ci, and release gates.
```

## Limitations

- It provides guidance only and does not run WeChat Developer Tools itself.
- CloudBase guidance applies only when the project already uses CloudBase.
- Payment, refund, and Official Account OAuth work is delegated to another skill.
- Some sibling guidance is referenced outside this package.

## Best Practices

- Confirm the configured Mini Program root before editing page files.
- Use CloudBase rules only when the project clearly uses CloudBase.
- Complete preview and release checks before upload or publishing.

## Anti Patterns

- Do not copy Web authentication patterns into Mini Programs.
- Do not create icon-based tab bars when text-only tabs meet the requirement.
- Do not publish without checking appid, assets, and project configuration.

## Security Audit

- Audited at: 2026-07-09T16:31:59.912\+00:00
- Summary: Most static command findings are false positives caused by Markdown code spans and fenced examples. Confirmed issues are the mutable external instruction URLs and parent-directory references to sibling skills outside the package. No prompt injection language was found in the reviewed files.

## Stats

- Views: 0
- Downloads: 4
- Favorites: 1
- Popularity score: 0
