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

ant-design-mini蚂蚁设计迷你

Agent Skill

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

总安装

1,653

周安装

71

GitHub Stars

347

下载量

579
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill ant-design-mini

简介

用于构建支付宝或微信小程序的 UI,基于 Ant Design Mini 组件库实现移动端界面。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要小程序表单、导航或反馈组件时使用。
  • 使用时需结合 CSS 变量自定义主题,处理组件事件和生命周期。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可通过 GitHub 仓库获取具体用法,建议结合原始 README 和示例脚本进一步验证功能。

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

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

能力 5

展示第三方安全扫描或审计结果

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

平台分布

Claude Code

28.38%
按下载量换算164

OpenCode

22.64%
按下载量换算131

Codex

17.41%
按下载量换算101

Gemini CLI

11.5%
按下载量换算67

Antigravity

7.42%
按下载量换算43

Cursor

3.13%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills