---
title: "提示词"
subtitle: "<Prompt> 可复制、可在 AI 工具中打开的提示词块。"
---

一段可以复制、或一键在 AI 工具中打开的提示词：

```mdx
<Prompt title="让 AI 帮你写 docs.yml" actions={["claude", "chatgpt", "cursor"]}>
  阅读 https://docs.butterix.com/llms.txt，为我的 Express API 项目生成一个包含「指南」和「API 参考」两个标签页的 ButterIX docs.yml。
</Prompt>
```

<Prompt title="让 AI 帮你写 docs.yml" actions={["claude", "chatgpt", "cursor"]}>
  阅读 https://docs.butterix.com/llms.txt，为我的 Express API 项目生成一个包含「指南」和「API 参考」两个标签页的 ButterIX docs.yml。
</Prompt>

<ParamField path="title" type="string">标题行；设置后操作按钮移到标题行中。</ParamField>
<ParamField path="icon" type="icon">提示词左侧的图标。</ParamField>
<ParamField path="actions" type="array">内置的 `"claude"`、`"chatgpt"`、`"cursor"`，或 `{ label, url, icon }`（`url` 中可以用 `{prompt}` 占位）。第一个为主按钮，其余进入下拉菜单；复制按钮始终存在。</ParamField>
<ParamField path="hidePrompt" type="boolean" default="false">只显示标题行（需要 `title`）。</ParamField>
<ParamField path="singleLine" type="boolean" default="false">正文截断为一行。</ParamField>
