Token导航 LogoToken导航

Agent Skill · AI 工具

miniprogram-development(小程序开发)

miniprogram-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

miniprogram-development 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描已通过,按安装量在AI 工具类的 2,536 个 Skill 里排第 868。

总安装 1,782周安装 75GitHub Stars 997下载 624核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:miniprogram-development(小程序开发)
来源仓库:https://github.com/tencentcloudbase/cloudbase-mcp
仓库路径:skills/miniprogram-development
安装命令:
npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill miniprogram-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

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

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合围绕仓库状态、代码变更或协作事项进行整理。可结合来源仓库和原始 README 继续核验具体用法。

安装方式:github,通过 npx skills add 命令从 tencentcloudbase/cloudbase-mcp 仓库添加。适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

来源仓库内路径:skills/miniprogram-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill minipro…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

miniprogram-development 怎么安装?

在终端执行 npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill miniprogram-devel…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

miniprogram-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

miniprogram-development 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill miniprogram-development;npx skills add tencentcloudbase/cloudbase-mcp --skill "miniprogram-development" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

miniprogram-development 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

miniprogram-development 用的人多吗?

公开数据是累计安装 1,782 次,近一周安装 75 次,下载 624 次,GitHub 997 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

miniprogram-development 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
miniprogram-development

小程序开发 · 本页

1,782997执行命令MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

When to use this skill

Use this skill for WeChat Mini Program development when you need to:

  • Develop WeChat mini program pages and components
  • Integrate CloudBase capabilities (database, cloud functions, storage)
  • Deploy and preview mini program projects
  • Handle mini program authentication and user identity
  • Call AI models in mini programs
  • Get WeChat step count data

Do NOT use for:

  • Web frontend development (use web-development skill)
  • Backend service development (use cloudrun-development skill)
  • UI design only (use ui-design skill, but may combine with this skill)

How to use this skill (for a coding agent)

  1. Follow project structure conventions

- Mini program code in miniprogram directory - Cloud functions in cloudfunctions directory - Use latest base library version - Include page configuration files (e.g., index.json) when generating pages

  1. Understand authentication characteristics

- Important: Mini programs with CloudBase are naturally login-free - Never generate login pages or login flows - Get user identity via cloud.getWXContext().OPENID in cloud functions

  1. Use WeChat Developer Tools correctly

- Check project.config.json has appid field before opening - Use CLI command to open project pointing to directory containing project.config.json

  1. Handle resources properly

- Icons8 (Recommended): Use Icons8 for icon images (e.g., tabbar iconPath) - URL format: https://img.icons8.com/{style}/{size}/{color}/{icon-name}.png - Parameters: - style: ios (outline style) or ios-filled (filled style) - size: 100 (recommended 100px, file size < 5KB) - color: hex color code without # (e.g., 8E8E93 for gray, FF3B30 for red) - icon-name: icon name (e.g., checked--v1) - Examples: - Unselected (gray outline): https://img.icons8.com/ios/100/8E8E93/checked--v1.png - Selected (red filled): https://img.icons8.com/ios-filled/100/FF3B30/checked--v1.png - Advantages: - ✅ Very small file size (usually < 3KB) - ✅ Supports custom colors - ✅ Clean and professional icons - Use downloadRemoteFile tool to download resources - Avoid build errors by ensuring all referenced resources exist


WeChat Mini Program Development Rules

Project Structure

  1. CloudBase Integration:

- If user needs to develop mini program, you will use various WeChat CloudBase capabilities to develop the project - Mini program base library should use latest version

  1. Directory Organization:

- Mini program projects follow WeChat CloudBase best practices - Mini program code is generally in miniprogram directory - If developing cloud functions, they can be stored in cloudfunctions directory - Mini program's project.config.json needs to specify miniprogramRoot and other configurations

  1. Page Generation:

- When generating mini program pages, must include page configuration files such as index.json - Must comply with specifications to avoid compilation errors

Development Tools

WeChat Developer Tools Opening Project Workflow:

  • When detecting current project is a mini program project, suggest user to use WeChat Developer Tools for preview, debugging, and publishing
  • Before opening, confirm project.config.json has appid field configured. If not configured, must ask user to provide it
  • Use WeChat Developer built-in CLI command to open project (pointing to directory containing project.config.json):

- Windows: "C:\Program Files (x86)\Tencent\微信web开发者工具\cli.bat" open --project "项目根目录路径" - macOS: /Applications/wechatwebdevtools.app/Contents/MacOS/cli open --project "/path/to/project/root"

  • Project root directory path is the directory containing project.config.json file

CloudBase Integration

  1. Environment Configuration:

- When using wx.cloud in mini program, need to specify environment ID - Environment ID can be queried via envQuery tool

  1. Resource Management:

- When generating mini program code, if material images are needed, such as tabbar's iconPath and other places, prefer Icons8 (see section 4 above for details) - Use downloadRemoteFile tool to download resources - When generating mini program code, if using iconPath and similar, must simultaneously help user download icons to avoid build errors

Mini Program Authentication Characteristics

Important: Mini programs with CloudBase are naturally login-free. It is strictly forbidden to generate login pages or login flows!

  1. Login-Free Feature: Mini program CloudBase does not require user login, can get user identity in cloud functions via wx-server-sdk
  2. User Identity Retrieval: In cloud functions, get user's unique identifier via cloud.getWXContext().OPENID
  3. User Data Management: Manage user data in cloud functions based on openid, no login flow needed
// Example of getting user identity in cloud function
exports.main = async (event, context) => {
  const wxContext = cloud.getWXContext();
  const openid = wxContext.OPENID;

  return { openid: openid };
};

AI Model Invocation

Mini programs with base library version 3.7.1+ already support direct AI model invocation

// Create model instance, here we use DeepSeek AI model
const model = wx.cloud.extend.AI.createModel("deepseek");

// First set AI's system prompt, here using seven-character quatrain generation as example
const systemPrompt =
  "请严格按照七言绝句或七言律诗的格律要求创作,平仄需符合规则,押韵要和谐自然,韵脚字需在同一韵部。创作内容围绕用户给定的主题,七言绝句共四句,每句七个字;七言律诗共八句,每句七个字,颔联和颈联需对仗工整。同时,要融入生动的意象、丰富的情感与优美的意境,展现出古诗词的韵味与美感。";

// User's natural language input, e.g., '帮我写一首赞美玉龙雪山的诗'
const userInput = "帮我写一首赞美玉龙雪山的诗";

// Pass system prompt and user input to AI model
const res = await model.streamText({
  data: {
    model: "deepseek-v3", // Specify specific model
    messages: [
      { role: "system", content: systemPrompt },
      { role: "user", content: userInput },
    ],
  },
});

// Receive AI model's response
// Since AI model's return result is streaming, we need to loop to receive complete response text
for await (let str of res.textStream) {
  console.log(str);
}

WeChat Step Count Retrieval

WeChat step count retrieval must use CloudID method (base library 2.7.0+):

  • Frontend: wx.getWeRunData() to get cloudID, use wx.cloud.CloudID(cloudID) to pass to cloud function
  • Cloud Function: Directly use weRunData.data to get decrypted step count data, check weRunData.errCode to handle errors
  • Forbidden: Do not use session_key manual decryption method, CloudID is more secure and simple
  • Required: Must implement fallback mechanism (simulated data) to handle cloudID retrieval failure cases

Cloud Function Deployment and Permission Notes

  • After AI automatically deploys cloud functions, special permissions like cloud invocation may be missing
  • Recommend users to right-click cloud function in WeChat Developer Tools, select "Install Dependencies in Cloud"
  • For functions requiring cloud invocation permissions (such as WeChat step count decryption), recommend manually deploying once via Developer Tools to get complete permissions
  • If encountering permission issues, prompt user to check cloud function's service authorization and API permission configuration

Development Workflow Guidance

  • After completing mini program project development, proactively suggest user to use WeChat Developer Tools for preview, debugging, and publishing
  • If user agrees, use CLI command to open WeChat Developer Tools, pointing to project root directory containing project.config.json
  • Remind user to perform real device preview, debugging, and publishing operations in WeChat Developer Tools

平台分布

Claude Code

27.71%
按下载量换算173

Antigravity

25.45%
按下载量换算159

OpenCode

17.85%
按下载量换算111

Cursor

13.51%
按下载量换算84

Gemini CLI

8.47%
按下载量换算53

Codex

3.57%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill miniprogram-development;npx skills add tencentcloudbase/cloudbase-mcp --skill "miniprogram-development" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills