Agent skill

Miniprogram Development

by LeoYeAI in LeoYeAI/openclaw-master-skills

WeChat Mini Program development rules. An agent skill from LeoYeAI/openclaw-master-skills.

MITAuto-check passedProductivity & Automation

Install Miniprogram Development

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill miniprogram-development -a claude-code

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

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills miniprogram-development --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/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cloudbase/references/miniprogram-development .claude/skills/miniprogram-development && 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
miniprogram-development
GitHub stars
2.2k
Used in
1 other repo
Token cost
~2k tokens
SKILL.md length
809 words
Files
1
Skills in repo
1,215
Repo updated
First seen
Licence
MIT

At a glance

WeChat Mini Program development rules. An agent skill from LeoYeAI/openclaw-master-skills.

  • Works in 4 steps: Follow project structure conventions → Understand authentication characteristics → Use WeChat Developer Tools correctly → …
  • Developing WeChat mini programs
  • SKILL.md covers When to use this skill, How to use this skill (for a…, Project Structure and Development Tools, plus 6 more sections
  • Reaches img.icons8.com

What it does

Miniprogram Development is an agent skill from LeoYeAI/openclaw-master-skills. WeChat Mini Program development rules. Use this skill when developing WeChat mini programs, integrating CloudBase capabilities, and deploying mini program projects.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Messaging and chat bots. It works with WeChat. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • Developing WeChat mini programs
  • Integrating CloudBase capabilities
  • Deploying mini program projects

Example prompts

  • “/miniprogram-development”

Workflow steps

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

  1. Follow project structure conventions
  2. Understand authentication characteristics
  3. Use WeChat Developer Tools correctly
  4. Handle resources properly

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. 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

    Hosts in commands or code, which the agent is likely to contact:

    • img.icons8.com

    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

Miniprogram Development loads about 2k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 809 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~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 LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 809 words, ~2,017 tokens.

Download SKILL.mdSave it as .claude/skills/miniprogram-development/SKILL.md (or your agent's skills folder).
name
miniprogram-development
description
WeChat Mini Program development rules. Use this skill when developing WeChat mini programs, integrating CloudBase capabilities, and deploying mini program projects.
alwaysApply
false

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
  2. 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
  3. 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
  4. 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
  2. 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
  3. 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
  2. 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
Show full SKILL.md (288 more words)Show less

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

js
// 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

js
// 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 p =
  "请严格按照七言绝句或七言律诗的格律要求创作,平仄需符合规则,押韵要和谐自然,韵脚字需在同一韵部。创作内容围绕用户给定的主题,七言绝句共四句,每句七个字;七言律诗共八句,每句七个字,颔联和颈联需对仗工整。同时,要融入生动的意象、丰富的情感与优美的意境,展现出古诗词的韵味与美感。";

// 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: p },
      { 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

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

Files

Just SKILL.md in skills/cloudbase/references/miniprogram-development of LeoYeAI/openclaw-master-skills.

Open the folder on GitHubat commit e5199b5

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in LeoYeAI/openclaw-master-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Miniprogram Development 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.

Miniprogram Development compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Miniprogram Development this skillLeoYeAI/openclaw-master-skills2.2k1 repos~2kAutomated safety check: PassMIT
Weixin Accessqufei1993/cc-weixin154—~372Automated safety check: PassMIT
Add WeChat Channelnanocoai/nanoclaw31k—~1.9kAutomated safety check: NotesMIT
Cloudbase Wechat IntegrationTencentCloudBase/CloudBase-AI-Toolkit1.1k2 repos~1.9kAutomated safety check: PassMIT
Minimal Web Baas DemoTencentCloudBase/CloudBase-AI-Toolkit1.1k1 repos~2.2kAutomated safety check: PassMIT
Wechat ChannelaAAaqwq/AGI-Super-Team1051 repos~1.3kAutomated safety check: NotesMIT

Similar skills

  • Weixin Access

    qufei1993/cc-weixin

    Manage WeChat access control (pairing codes and allowlist). An agent skill from qufei1993/cc-weixin.

    154 GitHub stars~372 tokensUpdated 5 mo ago
    Productivity & AutomationAuto-check passed
  • Add WeChat Channel

    nanocoai/nanoclaw

    Adds a personal WeChat channel to a NanoClaw install through Tencent's iLink Bot API, with QR-code login and long polling instead of a public webhook.

    31k GitHub stars~1.9k tokensUpdated yesterday
    Productivity & AutomationAuto-check: notes
  • Cloudbase Wechat Integration

    TencentCloudBase/CloudBase-AI-Toolkit

    CloudBase WeChat integration guide for Mini Program WeChat Pay, Mini Program virtual payment (虚拟支付, wx.requestVirtualPayment), Official Account JSAPI Pay, Native QR-code Pay, Official Account OAuth…

    1.1k GitHub starsUsed in 2 repos~1.9k tokens
    Productivity & AutomationAuto-check passed
  • Minimal Web Baas Demo

    TencentCloudBase/CloudBase-AI-Toolkit

    Fast path for a minimal CloudBase Web + database demo (最小前后端 / 最小可用 fullstack / Lovable-like BaaS).

    1.1k GitHub starsUsed in 1 repo~2.2k tokens
    Productivity & AutomationAuto-check passed
  • Wechat Channel

    aAAaqwq/AGI-Super-Team

    微信 (WeChat) 与 OpenClaw 的双向集成通道。基于 Wechaty + PadLocal 实现微信消息的接收和发送,支持私聊、群聊、@提及检测、图片/文件传输。当需要通过微信与 AI 助手交互、接收微信消息触发 AI 响应、或从 OpenClaw 发送消息到微信时使用此技能。

    105 GitHub starsUsed in 1 repo~1.3k tokens
    Productivity & AutomationAuto-check: notes
  • Wechat Miniprogram

    infometa/workbuddyskills

    WeChat Mini Program (微信小程序) development framework. An agent skill from infometa/workbuddyskills.

    342 GitHub stars~1.5k tokensUpdated today
    Productivity & AutomationAuto-check: notes

More from LeoYeAI/openclaw-master-skills

All 1,215 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Miniprogram Development

What does Miniprogram Development do?

WeChat Mini Program development rules. An agent skill from LeoYeAI/openclaw-master-skills. Miniprogram Development is an agent skill from LeoYeAI/openclaw-master-skills. WeChat Mini Program development rules.

When should I use Miniprogram Development?

Miniprogram Development fits situations like: developing WeChat mini programs; integrating CloudBase capabilities; deploying mini program projects.

How do I install Miniprogram Development in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill miniprogram-development -a claude-code`. Or copy the skill folder (skills/cloudbase/references/miniprogram-development in LeoYeAI/openclaw-master-skills) into .claude/skills/miniprogram-development in your project. Claude Code loads it when a task matches its description.

How do I install Miniprogram Development in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill miniprogram-development -a codex`. Or copy the skill folder (skills/cloudbase/references/miniprogram-development in LeoYeAI/openclaw-master-skills) into .agents/skills/miniprogram-development in your project. Codex loads it when a task matches its description.

Can I use Miniprogram Development 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 LeoYeAI/openclaw-master-skills --skill miniprogram-development -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/miniprogram-development, .gemini/skills/miniprogram-development, .github/skills/miniprogram-development and .opencode/skills/miniprogram-development in your project.

What does Miniprogram Development need to run?

SKILL.md names no scripts, command-line tools or credentials: Miniprogram Development is instructions for the agent only.

Does Miniprogram Development access the network?

SKILL.md names 1 domain. In commands or code: img.icons8.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Miniprogram Development 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 Miniprogram Development use?

Miniprogram Development 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 Miniprogram Development use?

About 2k tokens (SKILL.md is roughly 8.1k 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 Miniprogram Development?

Skills that share tags, products or a category with Miniprogram Development: Weixin Access (qufei1993/cc-weixin, 154 stars), Add WeChat Channel (nanocoai/nanoclaw, 31k stars), Cloudbase Wechat Integration (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars) and Minimal Web Baas Demo (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Miniprogram Development?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,158 GitHub stars. The repository holds 1,215 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.