miniprogram-development — miniprogram-development install miniprogram-development, cowork-platform, community, miniprogram-development install, ide skills, WeChat Mini Program development, CloudBase integration, mini program authentication, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for WeChat-focused AI Agents needing to develop and deploy mini program pages and components with CloudBase integration miniprogram-development is a skill for building WeChat Mini Program projects, integrating CloudBase capabilities, and handling authentication and AI model calls.

Features

Develop WeChat mini program pages and components
Integrate CloudBase capabilities, including database, cloud functions, and 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

# Core Topics

baiyongping baiyongping
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The miniprogram-development skill by baiyongping is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for miniprogram-development install, WeChat Mini Program development, CloudBase integration.

Ideal Agent Persona

Ideal for WeChat-focused AI Agents needing to develop and deploy mini program pages and components with CloudBase integration

Core Value

Empowers agents to build WeChat Mini Program projects with seamless integration of CloudBase capabilities, such as database, cloud functions, and storage, while handling user identity and AI model calls through protocols like WeChat authentication

Capabilities Granted for miniprogram-development

Developing WeChat mini program pages and components
Integrating CloudBase capabilities for enhanced functionality
Deploying and previewing mini program projects with user identity handling

! Prerequisites & Limits

  • Specific to WeChat Mini Program development
  • Not suitable for web frontend or backend service development
  • Requires WeChat and CloudBase setup
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

miniprogram-development

Unlock WeChat Mini Program development with our AI agent skill. Discover how to integrate CloudBase capabilities, deploy projects, and handle...

SKILL.md
Readonly

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

    • Download icon images (e.g., tabbar iconPath) from Unsplash or similar sources
    • 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, can download from Unsplash via URL
    • Can refer to workflow's download remote resources process
    • 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

js
1// Example of getting user identity in cloud function 2exports.main = async (event, context) => { 3 const wxContext = cloud.getWXContext(); 4 const openid = wxContext.OPENID; 5 6 return { openid: openid }; 7};

AI Model Invocation

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

js
1// Create model instance, here we use DeepSeek AI model 2const model = wx.cloud.extend.AI.createModel("deepseek"); 3 4// First set AI's system prompt, here using seven-character quatrain generation as example 5const systemPrompt = 6 "请严格按照七言绝句或七言律诗的格律要求创作,平仄需符合规则,押韵要和谐自然,韵脚字需在同一韵部。创作内容围绕用户给定的主题,七言绝句共四句,每句七个字;七言律诗共八句,每句七个字,颔联和颈联需对仗工整。同时,要融入生动的意象、丰富的情感与优美的意境,展现出古诗词的韵味与美感。"; 7 8// User's natural language input, e.g., '帮我写一首赞美玉龙雪山的诗' 9const userInput = "帮我写一首赞美玉龙雪山的诗"; 10 11// Pass system prompt and user input to AI model 12const res = await model.streamText({ 13 data: { 14 model: "deepseek-v3", // Specify specific model 15 messages: [ 16 { role: "system", content: systemPrompt }, 17 { role: "user", content: userInput }, 18 ], 19 }, 20}); 21 22// Receive AI model's response 23// Since AI model's return result is streaming, we need to loop to receive complete response text 24for await (let str of res.textStream) { 25 console.log(str); 26}

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

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is miniprogram-development?

Ideal for WeChat-focused AI Agents needing to develop and deploy mini program pages and components with CloudBase integration miniprogram-development is a skill for building WeChat Mini Program projects, integrating CloudBase capabilities, and handling authentication and AI model calls.

How do I install miniprogram-development?

Run the command: npx killer-skills add baiyongping/cowork-platform/miniprogram-development. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for miniprogram-development?

Key use cases include: Developing WeChat mini program pages and components, Integrating CloudBase capabilities for enhanced functionality, Deploying and previewing mini program projects with user identity handling.

Which IDEs are compatible with miniprogram-development?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for miniprogram-development?

Specific to WeChat Mini Program development. Not suitable for web frontend or backend service development. Requires WeChat and CloudBase setup.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add baiyongping/cowork-platform/miniprogram-development. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use miniprogram-development immediately in the current project.

Related Skills

Looking for an alternative to miniprogram-development or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI