Overview
- Skill Key
- felipeoff/ant-design-skill
- Author
- felipeoff
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/felipeoff/ant-design-skill
- Latest Commit SHA
- 741a342dffa1eef534120d30eefb230729749391
Ant Design React — Practical Front end Design Skill
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Ant Design Skill 技能。 若已安装,则直接安装 Ant Design Skill 技能。
# 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...
# ant_design_skill — Ant Design skill for OpenClaw
A practical skill to help an AI agent (OpenClaw/Codex-style) build **React UIs** using **Ant Design (antd)** with:
- reliable UI patterns (CRUD, Settings, Wizard)
- consistent layout/spacing
- Ant Design v5 **Design Tokens** (global + component overrides)
Repo purpose: when you ask “make a screen with Ant Design”, the agent follows the workflow/patterns here instead of generating random ugly UI.
## What is Ant Design?
Ant Design is a React UI library with a large set of enterprise-ready components.
- Official repo: https://github.com/ant-design/ant-design
- Docs: https://ant.design/
## Installation (React)
```bash
npm i antd
```
Add antd styles (depends on your setup):
### Vite / CRA / Next.js (typical)
```ts
import 'antd/dist/reset.css';
```
> Ant Design v5 recommends `reset.css`.
## Minimal App Example
```tsx
import 'antd/dist/reset.css';
import { Button, Space, Typography } from 'antd';
export default function App() {
return (
<div style={{ padding: 24 }}>
<Typography.Title level={3}>Hello AntD</Typography.Title>
<Space>
<Button type="primary">Primary</Button>
<Button>Default</Button>
</Space>
</div>
);
}
```
## Theming / Tokens (Ant Design v5)
AntD v5 uses **design tokens** via `ConfigProvider`.
### Global theme tokens
```tsx
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,
// spacing tokens exist too (padding, margin patterns are often via layout)
},
}}
>
{children}
</ConfigProvider>
);
}
```
### Dark mode
```tsx
const isDark = true;
<ConfigProvider
theme={{
algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,
token: { color...
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
carlulsoe
Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, or processing voice recordings locally without cloud APIs.
carlzhao007
飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化。 使用场景:飞书自动化工作流、任务进度追踪、批量任务处理、需要实时反馈的场景。
cartoonitunes
BottyFans agent skill for autonomous creator monetization. Lets AI agents register, build a profile, publish posts (public, subscriber-only, or pay-to-unlock), upload media, accept USDC subscriptions and tips on Base, send and receive DMs, track earnings, and appear on the creator leaderboard. Use this skill when an agent needs to monetize content, interact with fans, manage a creator profile, handle payments in USDC, or operate as an autonomous creator on the BottyFans platform.
camopel
Local arXiv paper manager with semantic search. Crawls arXiv categories, downloads PDFs, chunks content, and indexes with FAISS + Ollama embeddings. No cloud API keys required — everything runs locally.