Mini Program UI/UX Design Skills: Integrating WeChat Mini Program Design Constraints into Agent Workflows

Introduction

When building WeChat Mini Program interfaces, a common issue is writing styles based on Web habits: using px/rem, expecting CSS Grid or remote fonts, and facing layout shifts on different devices after launch, which leads to having to go back and modify WXSS. There is also often a lack of unified conversion between design drafts and code (e.g., 375px canvas vs. rpx), and accessibility and dark mode are often treated as afterthoughts.

The following introduces the community Skill “Mini Program UI/UX Design Skill” on SkillHub (coordinate @user_04fe3e31/miniprogram-ui-ux-design). It encapsulates WeChat Mini Program UI/UX specifications, WXSS capability boundaries, and actionable checklists into the standard SKILL.md format. This provides coding Agents with a consistent reference during design, styling, and review, rather than verbalizing constraints from scratch every time.

What is this

One-sentence positioning: A UI/UX design specification and best practices Skill for WeChat Mini Programs, designed for automatic loading by AI Agents in relevant tasks.

Item Description
Name Mini Program UI/UX Design Skill
Coordinate @user_04fe3e31/miniprogram-ui-ux-design
Version 1.0.1 (SkillHub page and package SKILL.md)
Source community (SkillHub Community)
Category design-media
Publisher user_04fe3e31 (Author listed as Huamaoshu on SkillHub page)
Rating / Downloads SkillHub Rating 100000; Crawled data shows 6722 downloads
API Key Tagged requires_api_key=false, no additional API key required

The applicable directions declared within the Skill include: designing Mini Program interfaces, writing WXSS, accessibility compliance, reviewing design drafts, establishing Design Token systems, etc.

Core Features

The following content is derived from the SKILL.md and references/ documents within the installation package, representing the knowledge capabilities provided by the Skill to the Agent, rather than an independent running service.

Design Principles & Quick Reference

  • Design Philosophy: “rpx first, Flexbox primary, system fonts, touch-first”; emphasizes constraints such as single vertical scrolling, rpx adaptation, WXSS subset, and no Web fonts.
  • Iron Rules of Design: Contrast hierarchy, whitespace and spacing, component consistency, operational feedback (including 0.2–0.3s micro-interactions), accessibility (88rpx touch targets, don’t rely solely on color, etc.).
  • Visual Hierarchy: Usage of size, color, whitespace, proximity, contrast; explanation of Z-pattern / F-pattern reading paths.
  • rpx Conversion: 1rpx = screen width / 750; for a 375px wide canvas, “Design px × 2 = rpx”.
  • WXSS Capability Boundaries Table: Supports Flexbox, transform/transition/animation, CSS variables, etc.; unsupported or incomplete items include CSS Grid, backdrop-filter, remote @font-face, etc.
  • Font Strategy: System font stack only, with example font-family provided.
  • Top 5 Anti-patterns: Such as copying Web habits, setData abuse, excessive view nesting, ignoring dark mode, small touch areas, and corresponding correct practices.
  • Pre-Build Checklist: Item-by-item confirmation of rpx, Flexbox, color palette, dark mode, safe areas, contrast, and multi-device compatibility before writing code.

Reference Document Index

The Skill extends reading via references/, allowing Agents to dive deep according to the task:

File Content Summary
MINIPROGRAM_BASICS.md rpx, safe areas, dark mode, multi-device, layout, anti-patterns, component library decisions, etc.
DESIGN_TOKENS.md Token methodology, spacing, typography, color, and example themes
DESIGN_WORKFLOW.md Process from PRD to WXSS, Figma specs, annotation, and rpx conversion
COMPONENTS.md WXML+WXSS examples for 10 categories and 30 common components
ACCESSIBILITY.md WCAG principles, Mini Program side accessibility, testing, and checklists

The package also summarizes design references for WeUI and WeChat official documentation, as well as tool tables for Figma, contrast checking, iconfont, WeChat Developer Tools, etc. (see SKILL.md “Design Tools Summary”).

Installation & Activation

The installation method provided on the official SkillHub page is: instruct the AI to install this Skill according to the SkillHub Installation Guide. Below are the verification steps using the CLI locally.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, you can execute (full installation or CLI only, subject to installation documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install this Skill to the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, it defaults to ./skills/ and may not be loaded. The coordinate requires the @ prefix:

skillhub install @user_04fe3e31/miniprogram-ui-ux-design --dir <your skills directory>

Common paths (from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Upon successful installation, the package will be placed in a subdirectory like @user_04fe3e31/miniprogram-ui-ux-design/, with SKILL.md as the root file.

3. Enable in conversation

Simply explain to the Agent that the task belongs to WeChat Mini Program UI/UX or WXSS design. The Skill itself lists in “When to Use” that it should be loaded for scenarios like designing interfaces, writing WXSS, accessibility reviews, design draft reviews, and Design Tokens. Whether it matches automatically depends on the Skill discovery mechanism of your client; if it doesn’t take effect, you can explicitly reference the Skill name or coordinate in the prompt.

You can also send the prompt provided on the SkillHub page to the AI:

Please install `@user_04fe3e31/miniprogram-ui-ux-design` according to https://skillhub.cn/install/skillhub.md.

Typical Usage

The following examples reproduce the intent in the Skill documentation for easy trial in environments like Cursor.

Trigger by Scenario

Align with “When to Use” in SKILL.md within the requirement description, for example:

I want to build a WeChat Mini Program order list page. Please follow the specifications of @user_04fe3e31/miniprogram-ui-ux-design:
Provide page structure suggestions using Flexbox + rpx, and list the items in the Pre-Build Checklist that I haven't covered yet.

Style & Capability Boundaries

Have the Agent check against the capability table before writing WXSS to avoid Grid or remote fonts:

According to the Mini Program UI/UX Design Skill, write title and body styles using the system font stack;
Explain which properties cannot be used, and provide a micro-interaction for the button press state (transform + opacity, approx 0.15s).

Design Workflow & Delivery

When bridging Figma to code, you can point to references/DESIGN_WORKFLOW.md:

According to DESIGN_WORKFLOW: 375px canvas, 8px grid, convert the annotated 16px spacing to rpx,
and explain the six states that each component needs to cover in the high-fidelity stage.

Components & Accessibility

When implementing specific controls or passing accessibility checklists:

Select a list item pattern from COMPONENTS and provide a WXML+WXSS skeleton;
Then check against ACCESSIBILITY to see if contrast and 88rpx touch targets are satisfied.

Applicable Scenarios & Notes

Who it is for

  • Developers or design collaborators using AI to assist with WeChat Mini Program interfaces, WXSS, and simple design reviews.
  • Teams looking to solidify constraints like rpx, safe areas, dark mode, and anti-patterns on the Agent side to reduce repetitive explanations.

Limitations & Notes

  • The content consists of specifications and reference documents, not replacing the WeChat Developer Tools real-device preview or official review rules; verification on target devices is still required before launch.
  • The Skill emphasizes the combination of WCAG thinking and Mini Program constraints; specific accessibility implementations need to be checked against current WeChat capabilities and project requirements.
  • Product references in SKILL.md (such as WeChat Read, WeUI) are for design inspiration and direction only, not official endorsement cases.
  • The version field in the package’s _meta.json is 1.0.0. If it conflicts with the 1.0.1 shown on SkillHub, prioritize the store page and the version in the SKILL.md header.
  • Community source (community); update and maintenance rhythm depends on the publisher. To upgrade, you can use skillhub to reinstall the same coordinate or update via the SkillHub process.

Conclusion

The “Mini Program UI/UX Design Skill” consolidates WeChat Mini Program specific rpx, WXSS boundaries, Design Tokens, component examples, and accessibility checklists into an Agent-readable Skill package. It is suitable for unifying standards in the chain from design to coding. To install from the store or view metadata, you can open the SkillHub page:

  • Page: https://www.skillhub.cn/skills/user_04fe3e31/miniprogram-ui-ux-design
  • API Entry: https://api.skillhub.cn/user_04fe3e31/miniprogram-ui-ux-design
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye