用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill antd命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | antd |
| description | Ant Design — enterprise React UI with forms, tables; official MCP. |
antd in package.json@ant-design/icons dependencyConfigProvider at app root@ant-design/pro-components (ProTable, ProForm) in larger projectsdayjs for date components (antd v5 dropped moment.js)Ant Design has an official MCP server with real-time documentation, code examples, and API references.
Add to .claude/settings.json:
{
"mcpServers": {
"antd": {
"command": "npx",
"args": ["-y", "@ant-design/mcp@latest"]
}
}
}
If auto-configuration fails, ask the user to add the entry manually in their CLI's MCP settings (Claude Code → Settings → MCP Servers, the
mcpblock ofopencode.json, or Codex CLI's MCP config), or runnpm install -g @ant-design/cliand useantd mcpas the command.
| Concept | Detail |
|---|---|
| ConfigProvider | Global config: locale, theme tokens, component defaults |
| Design tokens | Theme via theme.token and theme.components in ConfigProvider |
Form + useForm | Built-in validation, async rules, field state management |
| Table | Column definitions, dataSource, rowKey, pagination, sort, filter |
| ProComponents | @ant-design/pro-components — high-level ProTable, ProForm for CRUD |
| Tree-shaking | Import from individual paths or use with a bundler that supports it |
// ConfigProvider is mandatory — without it, some labels default to Chinese
import { ConfigProvider } from 'antd'
import enUS from 'antd/locale/en_US'
<ConfigProvider locale={enUS} theme={{ token: { colorPrimary: '#1677ff' } }}>
<App />
</ConfigProvider>
// Form — always use Form.useForm(); never manage field state manually
const [form] = Form.useForm()
<Form form={form} onFinish={handleSubmit} layout="vertical">
<Form.Item name="email" rules={[{ required: true, type: 'email' }]}>
<Input />
</Form.Item>
<Button htmlType="submit">Submit</Button>
</Form>
// Table — define columns separately for readability
const columns = [
{ title: 'Name', dataIndex: 'name', sorter: true },
{ title: , : , : [...] },
]
< columns={columns} dataSource={data} rowKey= />
Form.useForm() — never build form state manually alongside antd Form; the two fight each otherdayjs, not moment — antd v5 migrated; importing moment causes peer dep warnings and bundle bloatimport { Button } from 'antd' is fine with tree-shaking; avoid importing everything@ant-design/pro-components is present, prefer ProTable/ProForm over building custom table+form combosConfigProvider's theme prop, not CSS overrides; token changes cascade automatically