ant_design_skill
БесплатноЗапускает вложенные скриптыНе проверенFront-end design skill for building React UIs with Ant Design (antd): component patterns, layout, forms, tables, and theming/tokens via ConfigProvider.
от modbender★ 21 звезда на GitHubОб этом скилле
Ant Design (React) — Practical Front-end Design Skill
Use this skill when you are building a React UI with Ant Design (antd) and want consistent, non-ugly screens fast.
When to use
- The project uses React + Ant Design
- You need to design/implement pages with: Layout, Menu, Form, Table, Modal, Drawer, Steps, Tabs, Pagination
- You need to implement theme tokens (colors, radius, typography, spacing)
- You want predictable UI patterns (CRUD screens, dashboards, settings pages)
Default workflow (do this order)
- Confirm stack: React + antd version (v5+ assumed).
- Choose page pattern:
- CRUD list (Table) + filters (Form) + actions (Modal/Drawer)
- Wizard (Steps)
- Settings (Form + Cards)
- Dashboard (Grid + Cards + Charts)
- Build layout skeleton first:
Layout+Sider+Header+Content- Navigation with
Menu
- Build the main interaction component:
- Forms:
Form,Form.Item,Input,Select,DatePicker,Switch - Tables:
Table+ column definitions + row actions
- Forms:
- Add feedback loop:
message,notification,Modal.confirm
- Apply theming/tokens via
ConfigProvider(global) and component-level overrides. - Verify:
- Empty states
- Loading states
- Error states
- Mobile responsiveness (at least: 360px layout sanity)
Component patterns (copy/paste mental models)
Layout
- Use
LayoutwithSider(collapsible),Headerfor top actions,Contentscroll. - Put page title + primary CTA in a
Flex(orSpace) row.
Forms
- Keep forms vertical; align labels consistently.
- Use
Form+Form.Itemrules for validation; avoid custom validation unless necessary. - Use
Form.useForm()andform.setFieldsValue()for edit flows.
Tables (CRUD)
- Columns:
- left: identifier/name
- middle: important attributes
- right: actions (Edit/Delete)
- Use
rowKeyalways. - Use server-side pagination for real apps.
Modals/Drawers
- Modal for short forms.
- Drawer for longer forms or when you want context kept.
Theming / Tokens (AntD v5)
Ant Design v5 uses Design Tokens and CSS-in-JS.
Global theme
Wrap your app in ConfigProvider:
import { ConfigProvider, theme } from 'antd';
export function AppProviders({ children }: { children: React.ReactNode }) {
return (
<ConfigProvider
theme={{
algorithm: theme.defaultAlgorithm,
token: {
colorPrimary: '#1677ff',
borderRadius: 10,
fontSize: 14,
},
components: {
Button: { controlHeight: 40 },
Layout: { headerBg: '#ffffff' },
},
}}
>
{children}
</ConfigProvider>
);
}
Dark mode
Use theme.darkAlgorithm and keep tokens consistent:
const isDark = true;
<ConfigProvider
theme={{
algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,
token: { colorPrimary: '#7c3aed' },
}}
/>
Component-level overrides
Use components.<ComponentName> for specific tweaks (Button, Input, Table, etc.).
References
- Read README.md for the full “how-to” (setup + patterns + examples).
- Use
protocols/when you want LLM-first contracts (describe UIs as data, then generate code deterministically). - Read
references/tokens.mdfor a tokens cookbook. - Read
references/components.mdfor practical page recipes (CRUD, Settings, Wizard). - Use
examples/when you want ready-to-copy AntD screens. - Use
starter/when you need a runnable Vite + React + AntD skeleton.
Guardrails
- Assume Ant Design v5+ (tokens). If project is v4 (Less variables), stop and ask.
- Prefer built-in components and patterns over custom CSS.
- Avoid over-theming: set a small set of tokens and only override components when needed.
Установить ant_design_skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ant_design_skill?
Front-end design skill for building React UIs with Ant Design (antd): component patterns, layout, forms, tables, and theming/tokens via ConfigProvider.
Как установить скилл ant_design_skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ant_design_skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic