让 AI 更懂你
极简结构,规则与示例一一对应,AI 理解力倍增。
📐 规则与示例 Rules & Examples
1. 明确 UI 变更 / UI Change
说明要做什么、UI 长什么样、具体位置。
示例(中文):
在商品管理页面添加一个“上传素材”按钮,位置如图所示,放在红色方框下方。
Describe what to do, UI appearance, and exact position.
Example (EN):
Add an upload material button in merchandise management, located as shown in the image, under the red square.
2. 描述交互逻辑 / Interaction Logic
如果不涉及 UI,说明修改目的和适用场景。
示例(中文):
用户点击按钮后,弹出文件选择窗口,允许用户从本地选择并上传文件。
If not UI-related, describe the purpose and scenario.
Example (EN):
After the user clicks the button, a file selector popup should appear, allowing the user to select and upload files from the local environment.
3. 细化数据交互 / Data Interaction
指出具体修改点,底层数据如何关联。
示例(中文):
上传按钮应位于商品管理列表中,列名为“相关图片”。用户通过该按钮上传素材后,素材需与对应商品关联,并支持按商品排序。
Specify what to change and how data is linked.
Example (EN):
The upload button should be in the merchandise management list, in the column named "相关图片". After uploading, the material should be linked to the specific merchandise and sortable by merchandise.
4. 引导 AI 工作风格 / Guide AI Workflow
鼓励 AI 深度思考,逐步优化。
示例(中文):
请基于 @business-lines 和 @page.tsx 深度思考,逐步优化。
Encourage AI to think deeply and optimize step-by-step.
Example (EN):
Think deeply based on @business-lines and @page.tsx, and optimize it step-by-step.
5. 状态/限制性控制 / State & Restriction Control
仅为状态控制,无新增功能,直接 @ 目标文件并说明修改逻辑。
示例(中文):
当子任务处于 processing 状态时,不允许用户编辑,仅在非 processing 状态下可编辑。请基于 @content-task-detail-client.tsx 深度优化。
For state control only, no new features. Directly @ target file and describe logic.
Example (EN):
When a sub-task is in processing status, users should not be allowed to edit it. Editing is only allowed when the task is not processing. Think deeply based on @content-task-detail-client.tsx and optimize step-by-step.