← 返回 Skills 市场
felipeoff

Ant Design Skill

作者 Felipe Oliveira · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
1944
总下载
2
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install ant-design-skill
功能描述
Skill for efficiently building React UIs using Ant Design v5+ with layouts, forms, tables, modals, theming via ConfigProvider, and consistent component patte...
使用说明 (SKILL.md)

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)

  1. Confirm stack: React + antd version (v5+ assumed).
  2. Choose page pattern:
    • CRUD list (Table) + filters (Form) + actions (Modal/Drawer)
    • Wizard (Steps)
    • Settings (Form + Cards)
    • Dashboard (Grid + Cards + Charts)
  3. Build layout skeleton first:
    • Layout + Sider + Header + Content
    • Navigation with Menu
  4. Build the main interaction component:
    • Forms: Form, Form.Item, Input, Select, DatePicker, Switch
    • Tables: Table + column definitions + row actions
  5. Add feedback loop:
    • message, notification, Modal.confirm
  6. Apply theming/tokens via ConfigProvider (global) and component-level overrides.
  7. Verify:
    • Empty states
    • Loading states
    • Error states
    • Mobile responsiveness (at least: 360px layout sanity)

Component patterns (copy/paste mental models)

Layout

  • Use Layout with Sider (collapsible), Header for top actions, Content scroll.
  • Put page title + primary CTA in a Flex (or Space) row.

Forms

  • Keep forms vertical; align labels consistently.
  • Use Form + Form.Item rules for validation; avoid custom validation unless necessary.
  • Use Form.useForm() and form.setFieldsValue() for edit flows.

Tables (CRUD)

  • Columns:
    • left: identifier/name
    • middle: important attributes
    • right: actions (Edit/Delete)
  • Use rowKey always.
  • 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 (
    \x3CConfigProvider
      theme={{
        algorithm: theme.defaultAlgorithm,
        token: {
          colorPrimary: '#1677ff',
          borderRadius: 10,
          fontSize: 14,
        },
        components: {
          Button: { controlHeight: 40 },
          Layout: { headerBg: '#ffffff' },
        },
      }}
    >
      {children}
    \x3C/ConfigProvider>
  );
}

Dark mode

Use theme.darkAlgorithm and keep tokens consistent:

const isDark = true;

\x3CConfigProvider
  theme={{
    algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,
    token: { colorPrimary: '#7c3aed' },
  }}
/>

Component-level overrides

Use components.\x3CComponentName> 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.md for a tokens cookbook.
  • Read references/components.md for 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.
安全使用建议
This skill appears to be what it says: UI patterns and a starter Ant Design project. Before using: (1) inspect README and package.json/package-lock.json to review dependencies and any npm scripts, (2) verify the Ant Design version (the skill assumes v5+ and will behave differently for v4), (3) run any bootstrap/install commands in a sandbox or dev machine (do not run unknown scripts on production hosts), (4) check licenses of included packages if that matters, and (5) if you allow the agent to invoke skills automatically, note this skill is model-invocable by default but it doesn't request secrets.
功能分析
Type: OpenClaw Skill Name: ant-design-skill Version: 0.1.0 The skill bundle is benign, providing comprehensive instructions and examples for an AI agent to generate React UIs using Ant Design. All markdown files (e.g., SKILL.md, README.md, protocols/*.md) contain clear, constructive guidance for UI development without any prompt injection attempts to subvert the agent's purpose. The code (e.g., examples/crud-users/UsersPage.tsx, mockServer.ts) is standard React/TypeScript, uses in-memory mock data, and lacks any network calls to external endpoints, data exfiltration, malicious execution, persistence mechanisms, or obfuscation. Dependencies in package.json are standard for a React project.
能力评估
Purpose & Capability
The SKILL.md and included files focus on building React UIs with Ant Design (patterns, theming, examples, and a starter Vite project). Required env/binaries are empty and nothing requested appears unrelated to the stated purpose.
Instruction Scope
Runtime instructions describe UI patterns, layout, forms, tables, tokens, and where to find examples; they do not instruct the agent to read arbitrary host files, access secrets, or transmit data to external endpoints beyond normal development references. The guidance is scoped to AntD UI work.
Install Mechanism
There is no install specification (instruction-only), so nothing will be written/installed automatically. However, the skill bundle includes a starter project with package.json and package-lock.json — if you or the agent run npm/yarn locally, dependencies will be fetched. Review dependencies and scripts before running installs.
Credentials
The skill declares no required environment variables, credentials, or config paths. No sensitive environment access appears necessary for the described functionality.
Persistence & Privilege
The skill does not set always:true. disableModelInvocation is not set (default allows model invocation), meaning the model could call it when eligible. Given the skill has no credentials or install steps, this is low risk, but be aware it is model-invocable by default.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ant-design-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ant-design-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
ant-design-skill v0.1.0 - Initial release with detailed guidance for building React UIs using Ant Design (antd). - Covers default workflows for page patterns, layout, form, table, modal/drawer, and theming. - Includes practical component usage patterns and theming via ConfigProvider and tokens (AntD v5+). - Provides references and resources for setup, tokens, components, and project examples. - Recommends guardrails: use built-in patterns, minimal theming, and confirm AntD version before starting.
元数据
Slug ant-design-skill
版本 0.1.0
许可证
累计安装 6
当前安装数 6
历史版本数 1
常见问题

Ant Design Skill 是什么?

Skill for efficiently building React UIs using Ant Design v5+ with layouts, forms, tables, modals, theming via ConfigProvider, and consistent component patte... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1944 次。

如何安装 Ant Design Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ant-design-skill」即可一键安装,无需额外配置。

Ant Design Skill 是免费的吗?

是的,Ant Design Skill 完全免费(开源免费),可自由下载、安装和使用。

Ant Design Skill 支持哪些平台?

Ant Design Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ant Design Skill?

由 Felipe Oliveira(@felipeoff)开发并维护,当前版本 v0.1.0。

💬 留言讨论