---
nav:
  title: 指南
  order: 1
title: For Agents
order: 4
---

### 推荐在业务项目根目录加入 AI 使用规范

当前 `fan-standard-comp@6.x` 基于 React 18 和 Ant Design 6。建议将 npm 包内的模板复制或引用到业务项目根目录：

```text
node_modules/fan-standard-comp/ai/templates/AGENTS.md
```

AI 应优先读取当前安装版本中的资料：

1. `node_modules/fan-standard-comp/llms.txt`
2. `node_modules/fan-standard-comp/ai/component-index.json`
3. 索引指向的 `docs/components/*.md`
4. `node_modules/fan-standard-comp/llms-full.txt`
5. 当前安装版本的 TypeScript 类型声明

无法访问 npm 包内文件时，才使用以下在线入口：

- [6.x 在线文档](http://47.113.227.251:1203/doc-v6/)
- [llms.txt](http://47.113.227.251:1203/doc-v6/llms.txt)
- [llms-full.txt](http://47.113.227.251:1203/doc-v6/llms-full.txt)
- [组件索引](http://47.113.227.251:1203/doc-v6/ai/component-index.json)

在线文档与安装版本不一致时，以本地 npm 包的文档和类型声明为准。完整规范请直接读取上述 `AGENTS.md` 模板，避免在业务项目中维护一份容易过期的手工副本。
