KS
Killer-Skills

ant-design — how to use ant-design with React 18-19 how to use ant-design with React 18-19, ant-design vs material-ui, ant-design setup guide for Vite, what is ant-design and its benefits, ant-design alternative for admin interfaces, installing ant-design for scalable UI components, ant-design documentation and tutorials, ant-design pro components and their usage, ant-design and accessibility best practices

v1.0.0
GitHub

About this Skill

Ideal for Frontend Agents building efficient React-based admin projects with streamlined UI component management using ant-design and Vite. ant-design is a React-based framework providing core components, theming, and CSS-in-JS capabilities for building scalable admin interfaces.

Features

Supports core components and theming/tokens with antd@^6
Utilizes CSS-in-JS for styling with tokens
Enables Server-Side Rendering (SSR) for improved performance
Provides accessibility (a11y) features for compliant UI
Integrates with ant-design-pro@^5 for advanced layouts and routing
Includes X (AI/chat UI) patterns for enhanced user experience

# Core Topics

wtyang wtyang
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
50
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add wtyang/basic-antd-vite/ant-design

Agent Capability Analysis

The ant-design MCP Server by wtyang is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use ant-design with React 18-19, ant-design vs material-ui, ant-design setup guide for Vite.

Ideal Agent Persona

Ideal for Frontend Agents building efficient React-based admin projects with streamlined UI component management using ant-design and Vite.

Core Value

Empowers agents to leverage antd v6, theming/tokens, css-in-js, SSR, a11y, and performance optimizations, while utilizing Pro layouts, routing, access, and CRUD operations, all integrated with X patterns for AI/chat UI.

Capabilities Granted for ant-design MCP Server

Building responsive and accessible admin dashboards with ant-design-pro
Streamlining UI component management with antd v6 and Vite
Implementing SSR and performance optimizations for React-based projects
Utilizing X patterns for integrating AI/chat UI components

! Prerequisites & Limits

  • Requires React 18-19 and antd@^6
  • Avoids undocumented APIs and internal `.ant-*` class coupling
  • Limited to specific versions of ant-design-pro and @ant-design/x
Project
SKILL.md
8.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Ant Design

S - Scope

  • Target: antd@^6 with React 18-19, plus ant-design-pro@^5 / @ant-design/pro-components and @ant-design/x@^2 when applicable.
  • Cover: core components, theming/tokens, css-in-js, SSR, a11y, performance, Pro layouts/routing/access/CRUD, and X (AI/chat UI) patterns.
  • Avoid: undocumented APIs, internal .ant-* class coupling, or cross-version mixing without explicit request.

Default assumptions (when not specified)

  • Language: TypeScript.
  • Styling: prefer tokens, classNames, and styles; avoid global overrides.
  • Provider: a single ConfigProvider at app root, unless isolation is required.
  • Dependencies: do not add new packages unless required or requested.

Scope rules (must follow)

  • Use only officially documented antd APIs and patterns.
  • Do not invent props, events, or component names.
  • Use only officially documented Pro/X APIs and patterns.
  • Assume v6 by default; do not mix v5 APIs unless explicitly requested.
  • Do not add global .ant-* overrides; prefer tokens and component tokens.
  • Keep examples short; no long, multi-screen samples in the main skill.
  • Do not rely on internal .ant-* classes or DOM details; if unavoidable, state risk and alternatives.
  • Theme priority is fixed: global tokens -> component tokens -> alias tokens.
  • For SSR, provide the minimal provider setup and verification points (hydration, style order, duplication).
  • Route complex issues to Reference files; main skill gives only decisions and entry points.

Complex triggers (must open a Reference)

  • More than 3 interaction states or cross-field linkage (Form).
  • Remote search, large data, or custom rendering (Select).
  • Server sorting/filtering/pagination, virtualization, fixed columns/headers (Table).
  • Async load, checkStrictly, or virtualization (Tree).
  • Controlled fileList, customRequest, preview/auth edge cases (Upload).
  • SSR style order, streaming/hydration errors, or performance bottlenecks.
  • Pro layouts, route-driven menus, or access control (Layout/Access).
  • ProTable/ProForm with request coupling, dynamic fields, or perf tuning.
  • X streaming, tool rendering, or Markdown extensions beyond the defaults.

Reference index (Chinese)

TopicDescriptionReference
Core v6Version scope, migration notes, theming/SSR overviewreferences/antd-v6.md
Legacy v5Existing v5 projects and migration guardrailsreferences/antd-v5.md
Form advancedDynamic forms, dependencies, validation perfreferences/form-advanced.md
Table advancedSorting/filtering/virtualization patternsreferences/table-advanced.md
Upload advancedControlled upload, customRequest, edge casesreferences/upload-advanced.md
Select advancedRemote search, tags, rendering and a11yreferences/select-advanced.md
Tree advancedAsync load, checkStrictly, virtualreferences/tree-advanced.md
Pro v5Pro 5 scope and baseline guidancereferences/pro-v5.md
Pro layoutLayouts, menus, access, multi-layout patternsreferences/pro-layout-advanced.md
ProTableQuery/table coupling, request patterns, perfreferences/protable-advanced.md
ProFormStep forms, dynamic fields, table linkagereferences/proform-advanced.md
X v2X v2 scope and baseline guidancereferences/x-v2.md
X componentsMessage/tool component patternsreferences/x-components-advanced.md
X SDKStreaming integration and state modelreferences/x-sdk-advanced.md
X MarkdownX Markdown extensions and renderingreferences/x-markdown-advanced.md

Reference routing rule

  • Do not expand advanced topics in the main skill.
  • Jump to a Reference if any condition matches:
    • More than 3 interaction states.
    • Async flows or large data sets.
    • Virtualization or performance tuning.
    • Complex accessibility requirements.

P - Process

1) Identify the layer first

  • Core antd UI, Pro admin app, or X chat/agent UI?
  • If Pro or X is involved, route to the relevant Reference when complexity triggers match.

2) Clarify context before advising

  • Framework and rendering: Next.js / Umi / Vite? CSR / SSR / streaming?
  • antd version: confirm v6 if unclear.
  • Theming depth: small token changes or component-level overrides?
  • Data scale: large lists/tables/trees/selects?
  • Interaction complexity: controlled state, linkage, async, auth, upload flows?

3) Provider minimal set

  • CSR: usually ConfigProvider only.
  • SSR or strict style order: add StyleProvider as per references/antd-v6.md.
  • One app, one root provider; local themes only for isolation needs.

4) Component selection rules (core antd)

  • Form: prefer Form as source of truth unless external state is required.
  • Overlay: Modal for blocking flows; Drawer for side context or long content.
  • Lists: structured data uses Table, light lists use List; Table needs stable rowKey.
  • Large data: use virtualization (see references/table-advanced.md).
  • Select: local filter uses filterOption; remote search uses showSearch + filterOption={false} + onSearch (see references/select-advanced.md).
  • Upload: controlled flow uses fileList; complex flow uses customRequest (see references/upload-advanced.md).

5) Pro decision shortcuts (when Pro is in scope)

  • Routes are the menu source of truth; avoid hand-built menus.
  • Access control is page-first; UI hides are secondary; backend still enforces.
  • CRUD uses ProTable/ProForm schemas as the source of truth (see Pro references).

6) X decision shortcuts (when X is in scope)

  • Model messages/tools as serializable data; JSX is a pure view.
  • Streaming needs stable keys, throttled updates, and scroll management (see X references).

7) Theming decision chain

  1. Use global tokens for most cases.
  2. Use component tokens or classNames/styles for differences.
  3. Only if unavoidable, use scoped CSS overrides and state the risk.
  4. Never rely on global .ant-* overrides.

8) Shunt complexity to Reference

  • If any complex trigger matches, provide decision + minimal skeleton + Reference path.
  • Details live in the corresponding references/*.md.

9) a11y and performance checks

  • a11y: keyboard access, focus management for overlays, icon buttons with aria-label, not color-only states.
  • perf: stable keys, memoized columns, avoid frequent setState, use virtualization and throttling as needed.

O - Output

Output should include (as needed)

  • Component and layout recommendations with 1-3 sentence rationale.
  • Minimal provider and theming strategy.
  • SSR, perf, and a11y risks with concrete mitigations.
  • Pro: route/layout plan, access model, and ProTable/ProForm schema when relevant.
  • X: message/tool schema and streaming state model when relevant.
  • A Reference path when complex triggers match.
  • Advice only (no code) when the request is selection or decision guidance.

Output forbidden

  • Inventing antd APIs, tokens, or relying on internal classes without calling out risk.
  • Replacing tokens with global CSS overrides.
  • Vague SSR/hydration advice without verification points.

Regression checklist (prefer 5-10 items)

  • Provider: one root ConfigProvider; SSR style order is controlled.
  • Theming: tokens first, no broad global .ant-* overrides.
  • Form: validation and linkage are within Form and reproducible.
  • Table: stable rowKey; pagination/sort/filter entry points are consistent.
  • Select: remote search disables local filter; a11y checks pass.
  • Upload: controlled vs uncontrolled mode is clear; failure and retry flows defined.
  • Overlays: close and destroy behavior is defined (destroyOnClose etc).
  • Performance: stable keys and memoization; virtualization or throttling when needed.
  • Pro: route-driven menus/access are consistent with backend enforcement.
  • X: streaming state, stop/retry, and tool rendering are deterministic.

Related Skills

Looking for an alternative to ant-design or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication