网站导航

文档

提示词与工作流

提示词与工作流的可用示例与编写接口。

提示词是读者会复制到其他工具的文字。DocumentPrompt 保留原文、让长行换行,并持续显示复制操作,不会呈现为可编辑字段或模拟聊天界面。

Review a component

Review this component’s layout, keyboard behavior and reduced-motion state. Explain the observed issue before changing it.

Prepare a site change

Read the site instructions and inspect the existing components. Reuse the shared design tokens and verify both themes at a narrow width.

审查提议的更改

  1. Inspect

    Read the source and reproduce the issue.

  2. Preview

    Review the proposed change and its effect.

  3. Verify

    Check the affected behavior and output.

范围明确的源码更改

源代码
<button>Save</button>
结果
<button type="button">Save</button>

已应用样式的按钮

这是样式示例;此按钮不会保存数据。
<DocumentPrompt  title="Review a component"  text="Review this component's classes and keyboard behavior."/>

标题应简短描述任务。段落与列表保留在文字本身,让剪贴板与可移植导出都保有完整指示。短任务与较长的设置提示词使用相同布局,都会在阅读栏内换行。正文采用阅读字体,同时保留每个换行与实际复制的文字。标题、内凹接缝与正文的起点统一为 24px。文字由服务器渲染,只有复制按钮需要客户端状态。

提示词可搭配 DocumentOptions 说明工具名称、DocumentFlow 呈现有顺序的流程,以及 DocumentCodeExample 显示经过验证的前后内容。流程图不会执行工具,也不代表已取得批准。提示词应放在示例的测量区域之外;源代码对空白敏感且需要横向滚动时,请使用普通代码区块。

背景信息、复核与项目规则的组合示例请参阅 AI 编程;实际预览/应用流程请参阅 MCP 服务器。手册中的按钮是独立的样式示例,产品专属的代理示例仍由产品 Guide 维护。