MCPInstall

ant-design-mini

Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns.

Installs
111
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/partme-ai/full-stack-skills --skill ant-design-mini
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ant-design-mini automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

When to use this skill

Use this skill whenever the user wants to:

  • Build Alipay or WeChat mini-program UIs with Ant Design Mini components
  • Use form, data display, feedback, or navigation components in mini-programs
  • Customize the Ant Design Mini theme via CSS variables
  • Handle component events and lifecycle in mini-program contexts

How to use this skill

Quick-Start Example: Button and Form in Mini-Program

<!-- pages/index/index.axml -->
<ant-button type="primary" onTap="handleClick">Submit</ant-button>

<ant-form onFinish="onFormFinish">
  <ant-form-item label="Name" name="name" required="{{true}}">
    <ant-input placeholder="Enter your name" />
  </ant-form-item>
  <ant-form-item label="Phone" name="phone">
    <ant-input type="number" placeholder="Enter phone" />
  </ant-form-item>
  <ant-button type="primary" form-type="submit">Submit</ant-button>
</ant-form>
// pages/index/index.js
Page({
  handleClick() { my.showToast({ content: 'Clicked!' }); },
  onFormFinish(values) { console.log('Form values:', values); }
});

This skill is organized to match the Ant Design Mini official documentation structure (https://ant-design-mini.antgroup.com/guide/quick-start, https://ant-design-mini.antgroup.com/components/overview). When working with Ant Design Mini:

  1. Identify the topic from the user's request:

    • Getting started/快速开始 → examples/getting-started.md
    • Components/组件 → examples/components/
    • API/API 文档 → api/
  2. Load the appropriate example file from the examples/ directory:

    Getting Started (快速开始):

    • examples/getting-started.md - Installation and setup
    • examples/quick-start.md - Quick start guide

    Components (组件):

    • examples/components/overview.md - Components overview
    • examples/components/button.md - Button component
    • examples/components/input.md - Input component
    • examples/components/form.md - Form component
    • examples/components/list.md - List component
    • examples/components/card.md - Card component
    • examples/components/toast.md - Toast component
    • examples/components/modal.md - Modal component
    • examples/components/tabs.md - Tabs component
    • examples/components/nav-bar.md - NavBar component
    • examples/components/picker.md - Picker component
    • examples/components/date-picker.md - DatePicker component
    • examples/components/switch.md - Switch component
    • examples/components/checkbox.md - Checkbox component
    • examples/components/radio.md - Radio component
    • examples/components/stepper.md - Stepper component
    • examples/components/avatar.md - Avatar component
    • examples/components/badge.md - Badge component
    • examples/components/tag.md - Tag component
    • examples/components/empty.md - Empty component
    • examples/components/loading.md - Loading component
    • examples/components/popup.md - Popup component
    • examples/components/action-sheet.md - ActionSheet component
  3. Follow the specific instructions in that example file for syntax, structure, and best practices

    Important Notes:

    • Ant Design Mini is for Alipay Mini Program and WeChat Mini Program
    • Components use mini-program syntax (axml/json)
    • Examples include both Alipay and WeChat syntax
    • Each example file includes key concepts, code examples, and key points
  4. Reference API documentation in the api/ directory when needed:

    • api/component-api.md - Component API reference
    • api/props-and-events.md - Props and events reference
  5. Use templates from the templates/ directory:

    • templates/installation.md - Installation templates
    • templates/component-usage.md - Component usage templates

1. Understanding Ant Design Mini

Ant Design Mini is a UI component library for Alipay Mini Program and WeChat Mini Program, following Ant Design design specifications.

Key Concepts:

  • Mini Program Support: Alipay and WeChat Mini Programs
  • Design System: Follows Ant Design design language
  • Rich Components: Button, Form, List, Modal, etc.
  • Theme Customization: Support for theme customization
  • i18n: Internationalization support

2. Installation

Using npm:

npm install antd-mini

Using yarn:

yarn add antd-mini

Using pnpm:

pnpm add antd-mini

3. Basic Setup

// app.json (Alipay Mini Program)
{
  "usingComponents": {
    "ant-button": "antd-mini/es/Button/index"
  }
}
<!-- page.axml -->
<ant-button type="primary" onTap="handleTap">Button</ant-button>

Doc mapping (one-to-one with official documentation)

Guide (指南):

Components (组件):

Examples and Templates

This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

API Reference

Detailed API documentation is available in the api/ directory, organized to match the official Ant Design Mini API documentation structure:

Component API (api/component-api.md)

  • Component props and events
  • Component methods
  • Component slots

Props and Events (api/props-and-events.md)

  • Common props
  • Common events
  • Event handling

To use API reference:

  1. Identify the API you need help with
  2. Load the corresponding API file from the api/ directory
  3. Find the API signature, parameters, return type, and examples
  4. Reference the linked example files for detailed usage patterns
  5. All API files include links to relevant example files in the examples/ directory

Best Practices

  1. Register components: Register components in app.json or page.json
  2. Use correct syntax: Use axml for Alipay, wxml for WeChat
  3. Handle events: Use onTap for Alipay, bindtap for WeChat
  4. Customize theme: Use theme variables for customization
  5. Follow design specs: Follow Ant Design design specifications

Resources

Keywords

Ant Design Mini, ant-design-mini, antd-mini, mini program, Alipay Mini Program, WeChat Mini Program, 小程序, 支付宝小程序, 微信小程序, 组件库, UI components, Button, Form, List, Modal, Toast, Tabs, NavBar, 按钮, 表单, 列表, 弹窗, 提示, 标签页, 导航栏

FAQ

What does the ant-design-mini skill do?

Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns.

How do I install ant-design-mini?

Run npx skills add https://github.com/partme-ai/full-stack-skills --skill ant-design-mini in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ant-design-mini/ (personal) or .claude/skills/ant-design-mini/ (project).

Which AI agents can use ant-design-mini?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ant-design-mini safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ant-design-mini?

It is published by partme-ai in partme-ai/full-stack-skills. It has 111 recorded installs.

More from partme-ai/full-stack-skills

View all →

electron

partme-ai/full-stack-skills

Build cross-platform desktop applications with Electron, covering main/renderer process architecture, IPC communication, BrowserWindow management, menus, tray icons, packaging, and security best practices. Use when the user asks about Electron, needs to create desktop applications, implement Electron features, or build cross-platform desktop apps.

element-plus-vue3

partme-ai/full-stack-skills

Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.

Frontend & Design1.9K installs

uniapp-project

partme-ai/full-stack-skills

Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.

Frontend & Design902 installs

drawio-flowchart

partme-ai/full-stack-skills

Creates flowcharts, swim lane diagrams, and business process diagrams using Draw.io (diagrams.net). Covers standard flowchart shapes (process, decision, start/end), connectors, auto-layout, and export to PNG/SVG/PDF. Use when the user needs to visualize workflows, decision trees, or business processes.

Business & Finance704 installs

vue3

partme-ai/full-stack-skills

Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.

Frontend & Design637 installs

course-designer

partme-ai/full-stack-skills

Design structured courses including syllabi, learning objectives using Bloom's taxonomy, lesson plans, and assessment rubrics. Use when the user asks about course design, needs to create a curriculum, write learning objectives, structure educational modules, or build assessment plans.

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs