Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/antdigital-ai/agentic-uinpx agentmods add rules/antdigital-ai/agentic-ui/agentsWrote 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/antdigital-ai/agentic-ui/agents)<a href="https://agentmods.dev/rules/antdigital-ai/agentic-ui/agents"><img src="https://agentmods.dev/badge/rules/antdigital-ai/agentic-ui/agents/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/antdigital-ai/agentic-ui/agents"><img src="https://agentmods.dev/badge/rules/antdigital-ai/agentic-ui/agents.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.03867 | $0.03867 |
| Opus 5.5 | $0.01547 | $0.01547 |
| Sonnet 5.5 | $0.00773 | $0.00773 |
| Haiku 4.5 | $0.00387 | $0.00387 |
Grade A, and why
AGENTS 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 3mo 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 — 451 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
项目背景
这是 ant-design/ant-design(antd)的源代码仓库,是一个 React 组件库,发布为 npm 包 antd。
- 使用 TypeScript 和 React 开发
- 兼容 React 16 ~ 19 版本
- 组件库设计精美,功能完善,广泛应用于企业级中后台产品
- 遵循 Ant Design 设计规范
- 支持国际化
安装和设置
开发环境要求
- Node.js 版本 >= 16
- 推荐使用 npm 或 yarn 或 pnpm
- Chrome 80+ 浏览器兼容性
安装依赖
npm install
# 或
yarn install
# 或
pnpm install
开发命令
pnpm start # 启动开发服务器
pnpm run build # 构建项目
pnpm test # 运行测试
pnpm run lint # 代码检查
代码风格指南
基本编码规范
- 使用 TypeScript 和 React 书写
- 使用函数式组件和 hooks,避免类组件
- 使用提前返回(early returns)提高代码可读性
- 避免引入新依赖,严控打包体积
- 兼容 Chrome 80+ 浏览器
- 支持服务端渲染
- 保持向下兼容,避免 breaking change
- 组件名使用大驼峰(PascalCase)
- 属性名使用小驼峰(camelCase)
- 合理使用 React.memo、useMemo 和 useCallback 优化性能
命名规范
Antd 命名要求使用完整名称而非缩写。
Props 命名
- 初始化属性:
default+PropName - 强制渲染:
forceRender - 子组件强制渲染:
force+Sub Component Name+Render - 子组件渲染:
Sub Component Name+Render - 数据源:
dataSource - 面板开启:使用
open,避免使用visible - 显示相关:
show+PropName - 功能性:
PropName+able - 禁用:
disabled - 额外内容:
extra - 图标:
icon - 触发器:
trigger - 类名:
className
事件命名
- 触发事件:
on+EventName - 子组件事件:
on+SubComponentName+EventName - 前置事件:
before+EventName - 后置事件:
after+EventName - 连续动作完成:
on+EventName+Complete
组件引用
组件应提供 ref 属性,结构如下:
ComponentRef {
nativeElement: HTMLElement;
focus: VoidFunction;
// 其他函数
}
组件 Token 命名
格式:variant (optional) + semantic part + semantic part variant (optional) + css property + size/disabled (optional)
API 文档规范
| Property | Description | Type | Default |
|---|---|---|---|
| htmlType | xxx | string | button |
| type | xxx | horizontal | vertical |
horizontal |
| disabled | xxx | boolean | false |
| minLength | xxx | number | 0 |
| style | xxx | CSSProperties | - |
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.
- 3mo ago First seen · 451 lines · 3,867 tokens per session scan A 91a55273b545
AGENTS is a cursor rule published in the GitHub repository antdigital-ai/agentic-ui (237 stars, last pushed 1mo ago), licensed MIT. It adds 3,867 tokens to every session, about $0.0155 per session on Opus 5.5. 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.
AGENTS compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| AGENTSantdigital-ai/agentic-ui | Cursor rule | 237 | 1mo ago | MIT | A | 3,867 | Cursor |
| windsurfrulesAPIParkLab/APIPark | Cursor rule | 1.8k | 1mo ago | Apache-2.0 | A | 521 | Windsurf |
| backendtenstorrent/tt-studio | Cursor rule | 13 | today | Apache-2.0 | A | 0 | Cursor |
| tanstack-start-guidejahands/prompts | Cursor rule | 19 | 1mo ago | MIT | A | 17 | Cursor |
| new-componentkubev2v/forklift-console-plugin | Cursor rule | 11 | today | Apache-2.0 | A | 6 | Cursor |
| tanstack-react-router_routingWebMCP-org/webmcp-sh | Cursor rule | 18 | 1mo ago | MIT | A | 17,188 | Cursor |
| rendering-and-memoizationgrafana/grafana-pathfinder-app | Cursor rule | 24 | today | AGPL-3.0 | A | 50 | Cursor |