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 teachingai/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, 按钮, 表单, 列表, 弹窗, 提示, 标签页, 导航栏
tools
Automates browser interactions via CLI using agent-browser by Vercel Labs. Covers navigation, clicking, form filling, snapshots, refs-based selectors, agent mode with JSON output, session management, and CDP integration. Use when the user needs to automate web browsing, scrape pages, fill forms, or integrate browser automation into AI agent workflows.
testing
Creates museum-quality visual art as .png or .pdf by first generating a design philosophy manifesto, then expressing it on canvas with precise composition, color palettes, and typography. Use when the user asks to create a poster, art piece, visual design, or static creative piece. Outputs original designs using design-forward principles.
development
Applies Anthropic brand colors (dark #141413, orange #d97757, blue #6a9bcc, green #788c5d), Poppins headings, and Lora body text to artifacts such as presentations, documents, or visuals. Use when the user needs Anthropic brand styling, brand color application, corporate typography, or visual formatting following Anthropic design standards.
development
Creates gallery-quality algorithmic art using p5.js with seeded randomness, interactive parameter controls, and seed navigation, outputting a single self-contained HTML artifact with Anthropic branding. Use when the user requests generative art, algorithmic art, flow fields, particle systems, or code-based visual art using p5.js.