# 指南 · AI 集成

在助手修改 UI 前，提供最新的 Edge 文档。

Package: @bolerish/edge 0.4.0
Source: https://edge.bolerish.com/zh/docs/ai-integration/

<a id="llms-txt"></a>

## 阅读文档

[llms.txt](https://edge.bolerish.com/zh/llms.txt) 是一个简短索引，链接到各指南和 API 参考的 Markdown 文档。如果助手需要完整文档，请提供 [llms-full.txt](https://edge.bolerish.com/zh/llms-full.txt)。

这些文件与本站内容同源生成，并标明对应的包版本。发布文件不代表助手会自动读取，请在请求中附上 URL。

<a id="prompt"></a>

## 编写提示词

粘贴需要修改的组件代码，并说明哪些元素需要显示光照效果。例如，可以这样提问：

```text
Read https://edge.bolerish.com/llms.txt and follow the relevant Markdown links.
Check the installed @bolerish/edge version and its types before choosing APIs.
Add Edge to the component below, preserving its markup, colors and interactions.
Connect only the surfaces I specify. Keep native controls and focus indicators.
Use the library's default motion="system" unless I ask for another mode.
```

<a id="installed-version"></a>

## 确认已安装版本

请检查包清单或锁文件。在线文档可能对应较新版本；若版本不同，请以已安装包的声明和对应文档为准。不要仅为匹配示例而升级依赖。
