mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
4b465465dd
Generated-By: mintlify-agent Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
74 lines
2.7 KiB
Plaintext
74 lines
2.7 KiB
Plaintext
---
|
|
title: "提示"
|
|
description: "展示预置的 AI 提示,提供一键复制和 Cursor 集成按钮,方便用户在 AI 工具中快速使用。"
|
|
keywords: ["提示", "AI", "cursor", "复制", "提示卡片"]
|
|
boost: 3
|
|
---
|
|
|
|
import IconsOptional from "/snippets/zh/icons-optional.mdx";
|
|
|
|
使用 Prompt 组件来显示预构建的 AI 提示,用户可以将其复制到剪贴板,或直接在 [Cursor](https://www.cursor.com) 中打开。
|
|
|
|
|
|
<div id="examples">
|
|
## 示例
|
|
</div>
|
|
|
|
<Prompt description="生成清晰、简洁的说明。">
|
|
你是一名**技术写作 AI 助手**。撰写清晰、准确且简洁的文档。
|
|
|
|
* 使用第二人称("you")和主动语态动词。
|
|
* 以目标导向的标题开始操作步骤。
|
|
* 在写作前,先就文档的最终用户、他们的目标和需求提出澄清性问题。
|
|
</Prompt>
|
|
|
|
```mdx Basic prompt example
|
|
<Prompt description="生成清晰、简洁的文档。">
|
|
你是一个**技术写作助手**。编写清晰、准确且简洁的文档。
|
|
- 使用第二人称("你")和主动动词。
|
|
- 以面向目标的标题开始操作步骤。
|
|
- 在编写之前,询问有关文档最终用户、他们的目标和需求的明确问题。
|
|
</Prompt>
|
|
```
|
|
|
|
<Prompt description="生成**清晰**、*简洁*的文档。" icon="paperclip" iconType="solid" actions={["copy", "cursor"]}>
|
|
你是一名**技术写作助手**。请撰写清晰、准确且简洁的文档。
|
|
|
|
* 使用第二人称("you")和主动语态。
|
|
* 以目标导向的标题开始编写步骤。
|
|
* 在动笔之前,先询问并澄清文档终端用户是谁、他们的目标是什么以及他们有哪些需求。
|
|
</Prompt>
|
|
|
|
```mdx Prompt with multiple properties example
|
|
<Prompt
|
|
description="Generate **clear**, *concise* documentation."
|
|
icon="paperclip"
|
|
iconType="solid"
|
|
actions={["copy", "cursor"]}
|
|
>
|
|
你是一位**技术写作助手**。编写清晰、准确且简洁的文档。
|
|
- 使用第二人称("你")和主动语态动词。
|
|
- 以目标导向的标题开始操作步骤。
|
|
- 在编写之前,询问有关文档最终用户、他们的目标和需求的澄清性问题。
|
|
</Prompt>
|
|
```
|
|
|
|
|
|
<div id="properties">
|
|
## 属性
|
|
</div>
|
|
|
|
<ResponseField name="description" type="string" required>
|
|
显示在提示卡片上的文本。支持 Markdown 格式。
|
|
</ResponseField>
|
|
|
|
<ResponseField name="children" type="string" required>
|
|
提示的文本内容。此文本会被复制到剪贴板,或在 Cursor 中打开。
|
|
</ResponseField>
|
|
|
|
<ResponseField name="actions" type="array" default='["copy"]'>
|
|
可用操作的数组。有效取值为 `"copy"`(复制到剪贴板)和 `"cursor"`(在 Cursor 中打开)。
|
|
</ResponseField>
|
|
|
|
<IconsOptional />
|