wechat-miniprogram
/wechat-miniprogram
WeChat Mini Program (微信小程序) development framework. Use when building WeChat mini apps with WXML templates, WXSS styles, WXS scripting, component development, WeChat API integration, cloud development (云开发), and Mini Program lifecycle/performance optimization.
- Author
- HK-hub ↗
- Repository
- AgentSkills ↗
- Licence
- MIT
- Last repository change
- 18.08.2026
Assessment and security
- Files in this package
- 11
- Scripts
- 0
- HTML comments
- 1
- URLs in SKILL.md
- 13
No signals detected. Repository changed on 18.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
WeChat Mini Program (微信小程序) development framework. Use when building WeChat mini apps with WXML templates, WXSS styles, WXS scripting, component development, WeChat API integration, cloud development (云开发), and Mini Program lifecycle/performance optimization.
Original author description
WeChat Mini Program (微信小程序) development framework. Use when building WeChat mini apps with WXML templates, WXSS styles, WXS scripting, component development, WeChat API integration, cloud development (云开发), and Mini Program lifecycle/performance optimization.
How it works
- When to Use This Skill
- Quick Reference
- Reference Files
- Key Concepts
- Working with This Skill
- Resources
- Notes
SKILL.md preview
---
name: wechat-miniprogram
description: "WeChat Mini Program (微信小程序) development framework. Use when building WeChat mini apps with WXML templates, WXSS styles, WXS scripting, component development, WeChat API integration, cloud development (云开发), and Mini Program lifecycle/performance optimization."
description_zh: "微信小程序开发框架(模板、组件、API、云开发)"
description_en: "WeChat Mini Program framework (templates, components, APIs, cloud)"
version: 1.0.0
homepage: https://developers.weixin.qq.com/miniprogram/dev/framework/
allowed-tools: Read,Write,Bash
---
# WeChat Mini Program Skill
WeChat Mini Program (微信小程序) development framework skill, generated from official documentation.
## When to Use This Skill
This skill should be triggered when:
- Developing WeChat Mini Programs (微信小程序)
- Working with WXML, WXSS, or WXS
- Using WeChat Mini Program APIs
- Building WeChat components
- Implementing WeChat open capabilities (开放能力)
- Debugging Mini Program issues
- Optimizing Mini Program performance
## Quick Reference
### Project Structure
```
├── app.js # App logic
├── app.json # App configuration
├── app.wxss # Global styles
├── pages/
│ └── index/
│ ├── index.js # Page logic
│ ├── index.json # Page configuration
│ ├── index.wxml # Page template
│ └── index.wxss # Page styles
└── components/ # Custom components
```
### Common Patterns
**Example 1** (javascript):
```javascript
WeixinJSBridge.invoke('imagePreview', {
current: 'http://inews.gtimg.com/newsapp_bt/0/1693121381/641',
urls: [ // 所有图片的URL列表,数组格式
'https://img1.gtimg.com/10/1048/104857/10485731_980x1200_0.jpg',
'https://img1.gtimg.com/10/1048/104857/10485726_980x1200_0.jpg',
'https://img1.gtimg.com/10/1048/104857/10485729_980x1200_0.jpg'
]
}, function(res) {
console.log(res.err_msg)
})
```
**Example 2** (javascript):
```javascript
wx.previewImage({
current: 'https://img1.gtimg.com/10/1048/104857/10485726_980x1200_0.jpg',
urls: [ // 所有图片的URL列表,数组格式
'https://img1.gtimg.com/10/1048/104857/10485731_980x1200_0.jpg',
'https://img1.gtimg.com/10/1048/104857/10485726_980x1200_0.jpg',
'https://img1.gtimg.com/10/1048/104857/10485729_980x1200_0.jpg'
],
success: function(res) {
console.log(res)
}
})
```
**Example 3** (html):
```html
<!-- /components/index.wmxl -->
<view class="index">{{prop}}</view>
```
**Example 4** (js):
```js
// /components/index.js
Component({
properties: {
prop: {
type: String,
value: 'index.properties'
},
},
})
```
**Example 5** (css):
```css
/* /components/index.wxss */
.index {
color: green;
}
```
**Example 6** (json):
```json
{
"nickName": "Band",
"gender": 1,
"language": "zh_CN",
"city": "Guangzhou",
"province": "Guangdong",
"country": "CN",
"avatarUrl": "http://wx.qlogo.cn/mmopen/vi_32/1vZvI39NWFQ9XM4LtQpFrQJ1xlgZxx3w7bQxKARol6503Iuswjjn6nIGBiaycAjAtpujxyzYsrztuuICqIM5ibXQ/0"
}
```
**Example 7** (json):
```json
{
"openId": "OPENID",
"nickName": "NICKNAME",
"gender": GENDER,
"city": "CITY",
"province": "PROVINCE",
"country": "COUNTRY",
"avatarUrl": "AVATARURL",
"unionId": "UNIONID",
"watermark":
{
"appid":"APPID",
"timestamp":TIMESTAMP
}
}
```
**Example 8** (js):
```js
wx.cloud.callFunction({
name: 'myFunction',
data: {
weRunData: wx.cloud.CloudID('xxx'), // 这个 CloudID 值到云函数端会被替换
obj: {
shareInfo: wx.cloud.CloudID('yyy'), // 非顶层字段的 CloudID 不会被替换,会原样字符串展示
}
}
})
```
**Example 9** (html):
```html
<scroll-view type="list" scroll-y>
<view> a </view>
<view> b </view>
<view> c </view>
</scroll-view>
```
**Example 10** (html):
```html
<scroll-view type="list" scroll-y>
<virtual-comp>
<view> a </view>
<view> b </view>
<view> c </view>
</virtual-comp>
</scroll-view>
```
## Reference Files
This skill includes comprehensive documentation in `references/`:
- **getting_started.md** - Quick start and introduction
- **framework.md** - Mini Program framework (逻辑层、视图层)
- **components.md** - Built-in components
- **api.md** - API reference
- **cloud.md** - Cloud development (云开发)
- **reference.md** - Configuration reference
Use `view` to read specific reference files when detailed information is needed.
## Key Concepts
### App Lifecycle
```javascript
App({
onLaunch(options) {
// Mini Program initialized
},
onShow(options) {
// Mini Program shown
},
onHide() {
// Mini Program hidden
},
globalData: {
userInfo: null
}
})
```
### Page Lifecycle
```javascript
Page({
data: {
message: 'Hello World'
},
onLoad(options) {
// Page loaded
},
onShow() {
// Page shown
},
onReady() {
// Page ready
},
onHide() {
// Page hidden
},
onUnload() {
// Page unloaded
}
})
```
### WXML Data Binding
```wxml
<view>{{message}}</view>
<view wx:if="{{condition}}">Conditional</view>
<view wx:for="{{array}}" wx:key="id">{{item}}</view>
```
### Event Handling
```wxml
<button bindtap="handleTap">Click Me</button>
```
```javascript
Page({
handleTap(e) {
console.log(e)
}
})
```
## Working with This Skill
### For Beginners
Start with the getting_started reference file for foundational concepts.
### For Specific Features
Use the appropriate category reference file (api, framework, etc.) for detailed information.
### For Code Examples
The quick reference section above contains common patterns extracted from the official docs.
## Resources
- [Official Documentation](https://developers.weixin.qq.com/miniprogram/dev/framework/)
- [Component Library](https://developers.weixin.qq.com/miniprogram/dev/component/)
- [API Reference](https://developers.weixin.qq.com/miniprogram/dev/api/)
## Notes
- This skill was automatically generated from official WeChat documentation
- Reference files preserve the structure and examples from source docs
- Content is in Chinese as per official documentation
Files in this package (11)
- SKILL.md 6 KB
- _skillhub_meta.json 1 KB
- index.md 1 KB
- references/api.md 11 KB
- references/cloud.md 11 KB
- references/components.md 5 KB
- references/framework.md 169 KB
- references/getting_started.md 51 KB
- references/index.md 1 KB
- references/other.md 20 KB
- references/reference.md 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · HK-hub/AgentSkills | 100 | MIT |
| lynricsy/hyperskills | 100 | MIT |
Identical content appears in 4 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 8d4f1b465fbe (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100engineering-wechat-mini-program-developer
Use when Codex should act as the WeChat Mini Program Developer specialist from Agency Agents. Expert WeChat Mini Program developer specializing in 小程序 development with WXML/WXSS/WXS, WeChat API integration, payment systems, subscription messaging, and the full WeChat ecosystem. - 96miniprogram
微信小程序开发专家助手。当用户需要进行微信小程序开发、原生小程序、WXML/WXSS、小程序云开发或微信生态应用时调用。 - 100wechat-miniprogram-devkit
微信小程序(Mini Program)全生命周期工具箱:开发脚手架、项目浏览体检、真机预览与上传、端到端自动化调试。 当用户提到「微信小程序 / 小程序 / wxapp / miniprogram / 小程序项目 / app.json / wxml / wxss / 小程序页面 / 小程序组件 / 小程序预览 / 小程序上传 / 小程序调试 / 小程序自动化 / 小程序截图 / 云开发 / Skyline / 分包」等意图时使用本技能。… - 98miniprogram-development
WeChat Mini Program development rules. Use this skill when developing WeChat mini programs, integrating CloudBase capabilities, and deploying mini program projects. - 100wechat-mini-program-development
WeChat mini-program development skill with standard project structure, request wrapper, and API management. Invoke when developing WeChat mini-programs or when user asks for mini-program development support. - 90wechat-miniprogram-builder
微信小程序独立开发全流程助手(原生小程序 + 微信云开发)。当用户要开发、设计、调试、提审微信小程序,或讨论小程序产品策略、合规、类目选择时使用。内置七阶段流程与门禁、WXSS/云函数/提审红线清单、设计数值,以及自动采访与进度推进机制。用户说"我想做个微信小程序"时直接启用。