Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/aide-family/moon-webWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/aide-family/moon-web/ant-design-v6)<a href="https://agentmods.dev/rules/aide-family/moon-web/ant-design-v6"><img src="https://agentmods.dev/badge/rules/aide-family/moon-web/ant-design-v6/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/aide-family/moon-web/ant-design-v6"><img src="https://agentmods.dev/badge/rules/aide-family/moon-web/ant-design-v6.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01238 |
| Opus 5.5 | $0.00000 | $0.00495 |
| Sonnet 5.5 | $0.00000 | $0.00248 |
| Haiku 4.5 | $0.00000 | $0.00124 |
Grade A, and why
ant-design-v6 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ant Design v6 组件库规范
编写 Ant Design 代码时,以官方文档为准:**https://ant.design/llms-full.txt**(完整组件 API)与 **https://ant.design/components/overview-cn/**(组件总览)。本项目使用 antd@^6,仅使用 v6 推荐 API,禁止已废弃写法。
全局与上下文
- 根节点:
ConfigProvider包裹App,App.useApp()须在<App>子树内调用。 - 静态方法:优先
const { message, modal, notification } = App.useApp(),避免直接message.success()/Modal.confirm()(上下文与主题可能不一致)。 - 图标:从
@ant-design/icons按需引入;antd内置Icon组件已在 v6 移除。 - 类型工具:
GetRef、GetProps、GetProp用于提取组件 ref/props 类型。
import type { GetProps } from 'antd'
type SelectOption = GetProp<typeof Select, 'options'>[number]
v6 已移除 / 禁止使用的 API
| 废弃 | 替代 |
|---|---|
visible / onVisibleChange |
open / onOpenChange |
destroyOnClose / destroyPopupOnHide |
destroyOnHidden |
bodyStyle / headStyle / overlayStyle / overlayClassName |
styles.* / classNames.*(语义化 DOM) |
dropdownRender / dropdownClassName |
popupRender / classNames.popup.root |
List、BackTop、Dropdown.Button、antd/Icon |
不用或改用 Flex/Space、FloatButton、Space.Compact |
Notification.message |
title |
Tabs.tabPosition |
tabPlacement(start/end 逻辑位置) |
Table 列 fixed: 'left'/'right' |
fixed: 'start'/'end' |
pagination.position |
pagination.placement |
Space.direction / split |
orientation / separator |
Divider.type |
orientation(vertical 语法糖) |
Collapse.expandIconPosition |
expandIconPlacement |
Steps.labelPlacement |
titlePlacement |
Table rowKey 函数第二参数 index |
仅用 record 的稳定字段 |
常用组件要点
Modal / Drawer
- 受控:
open+onCancel;提交用confirmLoading。 - 关闭时回收本地 state;详情弹窗可用
footer={null}。 - 样式:
styles={{ body: {...} }},不用bodyStyle。
Form
const [form] = Form.useForm();提交form.validateFields()。- 校验失败(
errorFields)直接 return;其它异常记录并提示。 - 动态字段:
Form.useWatch(v6 支持动态 name path);联动用shouldUpdate或dependencies。 - Checkbox/Switch 绑定:
valuePropName="checked"。
Table
- 必须设
rowKey(业务稳定字段,如uid);列类型ColumnsType<RowType>。 - 分页受控:
pagination={{ current, pageSize, total }}+onChange。 - 列渲染处理
undefined(emptyPlaceholder或'-')。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 96 lines · 0 tokens per session scan A 2c3908e7376c
ant-design-v6 is a cursor rule published in the GitHub repository aide-family/moon-web (12 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,238 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
general
Wonder Blocks design system conventions, component patterns, and coding standards.
react-chakra-ui-cursorrules-prompt-file
Cursor rules for React development with Chakra UI integration.
react-styled-components-cursorrules-prompt-file
Cursor rules for React development with Styled Components integration.
react-chakra-ui---folder-structure
A standard folder layout for React and Chakra UI projects, including separate locations for components, pages, themes, hooks, utilities, and assets. It also defines how Chakra UI theme files are grouped.
ant-design
Definitive guidelines for building consistent, performant, and maintainable UIs with Ant Design v6.x, focusing on design tokens, layout, and component usage.
815-reactflow-diagrams
Conventions for narrative @xyflow/react canvases: custom nodes and edges, semantic stroke colors, Cloudflare orange shell grouping, readability inside tinted frames, handles, and verification before merge.