skills/antd-skills/ant-design-react/SKILL.md
Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme.
npx skillsauth add teachingai/agent-skills ant-design-reactInstall 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:
import { Button, Form, Input, Table, message } from 'antd';
const columns = [
{ title: 'Name', dataIndex: 'name', sorter: (a, b) => a.name.localeCompare(b.name) },
{ title: 'Email', dataIndex: 'email' },
{ title: 'Status', dataIndex: 'status', filters: [
{ text: 'Active', value: 'active' }, { text: 'Inactive', value: 'inactive' }
], onFilter: (value, record) => record.status === value },
];
function UserPage() {
const [form] = Form.useForm();
const onFinish = (values) => {
message.success(`Created user: ${values.name}`);
};
return (
<>
<Form form={form} layout="inline" onFinish={onFinish}>
<Form.Item name="name" rules={[{ required: true }]}>
<Input placeholder="Name" />
</Form.Item>
<Form.Item name="email" rules={[{ required: true, type: 'email' }]}>
<Input placeholder="Email" />
</Form.Item>
<Form.Item>
<Button type="primary" htmlType="submit">Add User</Button>
</Form.Item>
</Form>
<Table columns={columns} dataSource={[]} rowKey="id" pagination={{ pageSize: 10 }} />
</>
);
}
This skill is organized to match the Ant Design React official documentation structure (https://4x-ant-design.antgroup.com/docs/react/introduce-cn, https://4x-ant-design.antgroup.com/components/overview-cn/). When working with Ant Design React:
Identify the topic from the user's request:
examples/getting-started/installation.md or examples/getting-started/basic-usage.mdexamples/components/button.mdexamples/components/form.mdexamples/components/table.mdexamples/components/input.mdexamples/components/select.mdexamples/components/date-picker.mdexamples/components/modal.mdexamples/components/layout.mdexamples/components/menu.mdexamples/advanced/theme-customization.mdexamples/advanced/internationalization.mdexamples/advanced/typescript.mdLoad the appropriate example file from the examples/ directory:
Getting Started (快速开始) - examples/getting-started/:
examples/getting-started/installation.md - Installing Ant Design and basic setupexamples/getting-started/basic-usage.md - Basic component usageComponents (组件) - examples/components/:
examples/components/button.md - Button componentexamples/components/input.md - Input componentexamples/components/form.md - Form component with validationexamples/components/table.md - Table componentexamples/components/select.md - Select componentexamples/components/date-picker.md - DatePicker componentexamples/components/modal.md - Modal componentexamples/components/layout.md - Layout componentexamples/components/menu.md - Menu componentexamples/components/icon.md - Icon componentexamples/components/typography.md - Typography componentexamples/components/grid.md - Grid componentexamples/components/space.md - Space componentexamples/components/card.md - Card componentexamples/components/tabs.md - Tabs componentexamples/components/pagination.md - Pagination componentexamples/components/upload.md - Upload componentexamples/components/upload.md - Upload componentexamples/components/message.md - Message componentexamples/components/notification.md - Notification componentexamples/components/alert.md - Alert componentexamples/components/spin.md - Spin componentexamples/components/progress.md - Progress componentAdvanced (高级) - examples/advanced/:
examples/advanced/theme-customization.md - Customizing themeexamples/advanced/internationalization.md - Internationalization setupexamples/advanced/typescript.md - TypeScript supportFollow 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/components.md - Component API referenceapi/config-provider.md - ConfigProvider APIapi/design-tokens.md - Design tokens APIUse templates from the templates/ directory:
templates/project-setup.md - Project setup templatestemplates/component-template.md - Component usage templatesGuide (指南):
examples/guide/ or examples/getting-started/ → https://4x-ant-design.antgroup.com/docs/react/introduce-cnComponents (组件):
examples/components/ → https://4x-ant-design.antgroup.com/components/overview-cn/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:
To use templates:
templates/ directory for common scaffoldingDetailed API documentation is available in the api/ directory, organized to match the official Ant Design React API documentation structure:
api/components.md)api/config-provider.md)api/design-tokens.md)To use API reference:
api/ directoryexamples/ directoryAnt Design, Ant Design React, antd, React UI library, components, Button, Form, Table, Input, Select, DatePicker, Modal, Layout, Menu, theme, customization, internationalization, i18n, TypeScript, design system, 组件库, 按钮, 表单, 表格, 输入框, 选择器, 日期选择器, 对话框, 布局, 菜单, 主题, 国际化, 类型支持
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.