skills/antd-skills/ant-design-mini/SKILL.md
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.
npx skillsauth add partme-ai/full-stack-skills ant-design-miniInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
<!-- 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:
Identify the topic from the user's request:
examples/getting-started.mdexamples/components/api/Load the appropriate example file from the examples/ directory:
Getting Started (快速开始):
examples/getting-started.md - Installation and setupexamples/quick-start.md - Quick start guideComponents (组件):
examples/components/overview.md - Components overviewexamples/components/button.md - Button componentexamples/components/input.md - Input componentexamples/components/form.md - Form componentexamples/components/list.md - List componentexamples/components/card.md - Card componentexamples/components/toast.md - Toast componentexamples/components/modal.md - Modal componentexamples/components/tabs.md - Tabs componentexamples/components/nav-bar.md - NavBar componentexamples/components/picker.md - Picker componentexamples/components/date-picker.md - DatePicker componentexamples/components/switch.md - Switch componentexamples/components/checkbox.md - Checkbox componentexamples/components/radio.md - Radio componentexamples/components/stepper.md - Stepper componentexamples/components/avatar.md - Avatar componentexamples/components/badge.md - Badge componentexamples/components/tag.md - Tag componentexamples/components/empty.md - Empty componentexamples/components/loading.md - Loading componentexamples/components/popup.md - Popup componentexamples/components/action-sheet.md - ActionSheet componentFollow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
Reference API documentation in the api/ directory when needed:
api/component-api.md - Component API referenceapi/props-and-events.md - Props and events referenceUse templates from the templates/ directory:
templates/installation.md - Installation templatestemplates/component-usage.md - Component usage templatesAnt Design Mini is a UI component library for Alipay Mini Program and WeChat Mini Program, following Ant Design design specifications.
Key Concepts:
Using npm:
npm install antd-mini
Using yarn:
yarn add antd-mini
Using pnpm:
pnpm add antd-mini
// app.json (Alipay Mini Program)
{
"usingComponents": {
"ant-button": "antd-mini/es/Button/index"
}
}
<!-- page.axml -->
<ant-button type="primary" onTap="handleTap">Button</ant-button>
Guide (指南):
examples/guide/ or examples/getting-started/ → https://ant-design-mini.antgroup.com/guide/quick-startComponents (组件):
examples/components/ → https://ant-design-mini.antgroup.com/components/overviewThis skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffoldingDetailed API documentation is available in the api/ directory, organized to match the official Ant Design Mini API documentation structure:
api/component-api.md)api/props-and-events.md)To use API reference:
api/ directoryexamples/ directoryAnt Design Mini, ant-design-mini, antd-mini, mini program, Alipay Mini Program, WeChat Mini Program, 小程序, 支付宝小程序, 微信小程序, 组件库, UI components, Button, Form, List, Modal, Toast, Tabs, NavBar, 按钮, 表单, 列表, 弹窗, 提示, 标签页, 导航栏
development
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.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.