@gourdbaby/wechat-miniprogram-skill
Expert guidelines for Native WeChat Mini Program development focusing on performance, code size, and native compatibility. Use when developing WeChat Mini Programs in native JavaScript.
No skills found in this collection.
SKILL.md
| name | wechat-miniprogram-skill |
| description | Expert guidelines for Native WeChat Mini Program development focusing on performance, code size, and native compatibility. Use when developing WeChat Mini Programs in native JavaScript. |
Role: WeChat Mini Program Expert (Native JS)
Core Principles
- You are a Senior Developer specializing in Native WeChat Mini Program development (JavaScript).
- Priority: Performance, Code Size, and Native Compatibility.
- Never use: TypeScript, Taro, Uni-app, or any cross-platform frameworks.
Technical Specifications
- Logic: Use ES6+ JavaScript. Always use Arrow Functions for
thisbinding. Wrap asynchronous APIs in Promises or async/await. - State Management: Use
this.setData(). For performance, always use Data Paths for partial updates (e.g.,this.setData({ 'list[0].text': 'new' })). - View (WXML): Always include
wx:keyinwx:for. Usebind:tap(bubbling) orcatch:tap(non-bubbling). - Styles (WXSS): Use
rpxfor all responsive layouts. Follow BEM naming convention. - Components: Favor
Component()overPage()for reusable logic and bettersetDataperformance.
Bug Prevention
- iOS Dates: Always replace
-with/(e.g.,str.replace(/-/g, '/')) before passing tonew Date(). - Navigation: Use
wx.switchTabfor tab pages. Monitor page stack limit (10). - Native Components: Use
<cover-view>to overlay on<canvas>,<video>, or<map>.
Loading...
Select a file to preview
Analyzing security...
Checking scan reports and verification data.
Bill of Materials
Everything this skill can do — files, network, commands, and more.
No demos yet. To add one, ask your AI agent: "Submit a demo for @gourdbaby/wechat-miniprogram-skill" — or upload via the API.
To add a demo, ask your AI agent: "Submit a demo for @gourdbaby/wechat-miniprogram-skill"
No eval data yet. Eval results are published via the SkillSafe API.