Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

ant-design-mini蚂蚁设计迷你

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

449

周安装

18

GitHub Stars

公开资料未说明

下载量

145
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ant-design-mini(蚂蚁设计迷你)
来源仓库:https://github.com/teachingai/agent-skills
仓库路径:skills/ant-design-mini
安装命令:
npx skills add teachingai/agent-skills --skill "ant-design-mini"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add teachingai/agent-skills --skill "ant-design-mini"

简介

ant-design-mini 是蚂蚁集团出品的小程序 UI 组件库,提供轻量级移动端界面解决方案。

  • 适用于微信小程序、支付宝小程序等平台的前端开发,覆盖表单、导航、反馈等基础模块。
  • 通过 JSON 配置快速搭建页面骨架,支持主题定制和无障碍访问,适配不同屏幕尺寸。
  • 使用前需引入对应框架的运行时环境,并遵循各平台的分包大小限制,避免审核不通过。
  • 建议参考官方文档对齐组件命名规范,防止因版本差异导致样式错乱或功能异常。

SKILL.md

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/

  1. Load the appropriate example file from the examples/ directory: Getting Started (快速开始): Components (组件):

- examples/getting-started.md - Installation and setup - examples/quick-start.md - Quick start guide - 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

  1. 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

  1. 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

  1. 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, 按钮, 表单, 列表, 弹窗, 提示, 标签页, 导航栏

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30%
按下载量换算44

OpenCode

22.78%
按下载量换算33

Antigravity

18.32%
按下载量换算27

Codex

13.64%
按下载量换算20

windsurf

9.25%
按下载量换算13

Gemini CLI

3.73%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills