Tencent Cloud CloudBase WeChat Mini Program Development Skill: Embedding Engineering Specifications into Agent Context

Preface

When using AI to write WeChat Mini Programs, the common issue is not “can it generate a page,” but whether the output fits WeChat’s engineering constraints: whether directories are configured correctly in project.config.json, whether the appid aligns with the preview/upload process, whether tabBar and routing are compilable, and if the project uses CloudBase, whether wx.cloud initialization and environment binding are consistent. Relying solely on generic frontend prompts, Agents often bring Web habits into Mini Programs or apply cloud development rules without confirming the use of CloudBase.

The following introduces the WeChat Mini Program Development Skill (Coordinates @zcwl/miniprogram-development) listed on the SkillHub enterprise source. Designed for AI coding scenarios, it organizes the workflow conventions for building, debugging, previewing, testing, and publishing Mini Programs, along with guidance for CloudBase integration, into SKILL rules that Agents can follow.

What is this

One-sentence positioning: A WeChat Mini Program development Skill for Agents, covering workflow conventions for building, debugging, previewing, testing, and publishing; when the use of CloudBase / wx.cloud is confirmed, it proceeds according to cloud development integration rules.

Publisher and Distribution: The SkillHub page shows the publisher as “Zhichuang Weilai” (智创未来), categorized under dev-programming, and marked with an enterprise source; the official Skill entry is https://api.skillhub.cn/tencent-adm/miniprogram-development, and the community page is https://www.skillhub.cn/skills/zcwl/miniprogram-development. The current listed version is v1.28.19, tagged with requires_api_key=false, meaning no API Key is needed to install the Skill itself.

Relationship with CloudBase Docs: The Tencent CloudBase documentation site’s “App Integration: WeChat Mini Program” page provides a dedicated explanation for the miniprogram-development Skill family. It covers topics such as tabBar configuration, wx.cloud integration, DevTools / wechatide, and miniprogram-ci, offering reproducible test prompts. The SkillHub package and the same-named capability in the CloudBase AI Toolkit belong to the same technical thread; when installing via SkillHub, use the coordinate @zcwl/miniprogram-development, and within the CloudBase ecosystem, the same-named Skill can also be pulled separately from the official repository via npx skills (see the installation section below).

Core Features

The following capabilities can be verified in the SkillHub description or the CloudBase official Skill documentation; the content is organized based on the principle of “general Mini Program workflow first, CloudBase on-demand second.”

Project Structure and Configuration

  • Creation and modification of pages and components, as well as project directory organization.
  • Check project.config.json (including appid, miniprogramRoot, etc.) before suggesting to open, preview, or publish.
  • Ensure page-level .json configurations are complete and local resource paths match configuration files to avoid compilation failures.

tabBar, Routing, and Resources

  • Handle tabBar, route navigation, icon resources, and tag spacing; when icons are not explicitly requested, the documentation rules favor a text-only custom tabBar (tabBar.custom = true, list items retain pagePath and text) to reduce icon placeholder and whitespace issues.
  • Configure iconPath / selectedIconPath only when icons are required, and ensure resources are downloaded into the project.

Debugging, Preview, and Publishing

  • Covers building, debugging, previewing, testing, and publishing (original text from SkillHub).
  • Supplemented by CloudBase documentation: Default recommendation is Nightly version of WeChat Developer Tools and wechatide CLI for opening projects, compiling, emulator, console/network debugging, preview, and upload; if wechatide is missing on the local machine, this should be explained as an environment gap and the user should be asked about installing Nightly. If the user refuses or cannot install, fall back to miniprogram-ci for preview/upload combined with CloudBase MCP paths, explaining capability differences.
  • Nightly download page: https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly_backup.html.

CloudBase / wx.cloud Integration (On-demand)

  • Apply cloud development constraints (authentication, database, storage, cloud functions, etc.) only when the user or codebase explicitly uses CloudBase, wx.cloud, Tencent CloudBase, or cloud development; do not force application on non-CloudBase Mini Programs.
  • Issues involving entity selection, test accounts, greyed-out cloud development entries, or environments not visible in DevTools require reading the account and environment diagnostics in the CloudBase integration reference first, rather than directly modifying code.
  • For scenarios like payment, virtual payment, or Official Account OAuth, the documentation requires referring to sibling Skills such as cloudbase-wechat-integration; this Skill does not cover them entirely.

Other Topics (Listed in original CloudBase rules)

  • Mini Program SEO / WeChat Search Indexing (mpcrawler, etc.), see dedicated reference.
  • Message push and customer service auto-reply (requiring cloud.openapi.customerServiceMessage.send, etc.), see dedicated reference.
  • Change Safety Protocol and Deployment Gate are in the accompanying cloudbase-platform sibling Skill; these should be followed before modifying code or uploading for release.

Explicitly Not Applicable To: Pure Web frontends (use web-development), pure backend services (cloudrun-development / cloud-functions), or UI design without Mini Program engineering context (ui-design).

Installation and Activation

The Agent prompt provided on the SkillHub page is: Please ask the Agent to read the installation instructions and install @zcwl/miniprogram-development.

Please install `@zcwl/miniprogram-development` according to https://skillhub.cn/install/skillhub.md.

If the skillhub CLI is already on the local machine, the --dir flag must be used during installation to point to the current Agent’s skills directory; otherwise, defaulting to ./skills/ might not be recognized:

command -v skillhub && skillhub --version

skillhub install @zcwl/miniprogram-development --dir <Your Agent skills directory>

If the CLI is not installed, follow the SkillHub installation documentation (full installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Common Agent skills paths (excerpted from SkillHub installation docs):

Agent skills Directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under project

Restart or refresh according to the specific Agent’s requirements after installation to bring the Skill into context.

Method 2: Install the same-named Skill from the CloudBase Official Repository

If you are already working within the CloudBase AI Toolkit ecosystem, the documentation provides a npx skills installation method (different from SkillHub coordinates, but the Skill name is miniprogram-development):

npx skills add tencentcloudbase/cloudbase-skills

To install only the current Skill:

npx skills add https://github.com/tencentcloudbase/skills --skill miniprogram-development

Sibling CloudBase Skills (such as auth, document database, UI, etc.) must be installed side-by-side in the same directory as miniprogram-development; if missing, prompt the user to install the full CloudBase plugin rather than fetching remote SKILL content via HTTP in the conversation to fudge it.

Typical Usage

After enabling the Skill, simply describe the Mini Program task in natural language; the CloudBase documentation page provides copy-ready test prompts:

Help me create a WeChat Mini Program project and integrate CloudBase
Implement complete integration between the Mini Program and CloudBase
I want to adjust the WeChat Mini Program tabBar to a text-only style; how do I remove icon placeholders and eliminate the whitespace above the labels?
Help me do Mini Program SEO: optimize the page so WeChat Search can index it (Mini Program Search Optimization Guide)

Summary of rules the Agent should follow (from the original Skill text in CloudBase docs):

  1. Default to handling as a general WeChat Mini Program, do not presuppose CloudBase connection.
  2. Check project.config.json and page index.json configurations before modifying code.
  3. Read references based on the scenario: debugging/preview, CloudBase integration, SEO, message push, etc., are expanded in separate files.
  4. Complete deployment-gate and other gate checks before preview/upload (requires the cloudbase-platform sibling Skill to be installed).

The documentation also provides a minimal engineering skeleton example to help Agents align file layouts. For example, project.config.json:

{
  "appid": "your-mini-program-appid",
  "projectname": "cloudbase-mini-program",
  "miniprogramRoot": "./",
  "compileType": "miniprogram"
}

Fragment of app.json for a text-only tabBar:

{
  "tabBar": {
    "custom": true,
    "list": [
      { "pagePath": "pages/index/index", "text": "Home" },
      { "pagePath": "pages/travel/travel", "text": "Itinerary" },
      { "pagePath": "pages/my/my", "text": "Me" }
    ]
  }
}

Applicable Scenarios and Notes

Who it is for

  • Teams or individuals using Agents like Cursor, Claude Code, or Codex in WeChat Mini Program repositories for daily development, joint debugging, and release preparation.
  • Projects already using or planning to use CloudBase / wx.cloud, hoping the Agent doesn’t generate Web-style login or incorrect SDK assumptions.
  • When needing topics like tabBar, DevTools Nightly, miniprogram-ci, search indexing, or message push, hoping the Agent consults references by file rather than hallucinating CLI parameters in one go.

Limitations and Pitfalls

  • SkillHub statistics (as of data capture): Rating 100000, Downloads 16583; Skill rules update with versions. SkillHub is currently at v1.28.19, which may differ from the version number of the open-source SKILL on GitHub; rely on the package you actually installed.
  • requires_api_key=false only indicates that the Skill installation layer does not require a Key; actual preview, upload, and CloudBase resource operations still depend on account-side configurations like the WeChat Mini Program appid, Developer Tools, and cloud development environment.
  • The stable version of WeChat Developer Tools may not contain Nightly’s Skills / wechatide; if the CLI is missing, communicate about installing Nightly rather than silently downgrading to “manual import” as the default solution.
  • Test accounts do not support CloudBase, and entity types affect payment and categories: documentation emphasizes diagnosing accounts and environments before modifying projects.
  • Full CloudBase capabilities often depend on multiple sibling Skills; if only miniprogram-development is installed, encountering issues with auth, payment, or platform protocols should prompt a guide to install the missing components rather than hard-coding within a single Skill.

Conclusion

The WeChat Mini Program Development Skill (@zcwl/miniprogram-development) writes Mini Program engineering structure, debugging and publishing paths, and on-demand CloudBase integration rules into the Agent workflow. It is suitable for reducing rework of “it runs but cannot compile/upload” during AI-assisted coding. Official Skill entry: https://api.skillhub.cn/tencent-adm/miniprogram-development; SkillHub community page: https://www.skillhub.cn/skills/zcwl/miniprogram-development. CloudBase side description and rule mirror: https://docs.cloudbase.net/ai/cloudbase-ai-toolkit/prompts/miniprogram-development.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye