merge: resolve conflict in req-prototype SKILL.md, keep iframe display rule from main

This commit is contained in:
2026-04-21 09:20:55 +09:30

View File

@@ -286,6 +286,24 @@ generated_at: "<timestamp>"
| HTML 文件超过 5MB | 精简样式或拆分多版本上传 |
| iframe 不显示 | 检查 `prototype_urls` 字段是否非空:`mcp__ai-proj__get_requirement` 确认 |
### 原型展示规则
**原型必须用 iframe 展示**(不得用截图、图片嵌入或内联 HTML 方式替代)。
- PRD 文档的「4.2 界面原型」章节:使用 `<iframe>` 标签嵌入原型 URL而非 `![](...)` 图片
- 需求详情页原型预览卡片:后端渲染 iframe前端不得将 `prototype_urls` 内容渲染为 `<img>`
- 典型正确写法PRD 文档内):
```html
<iframe src="/api/v1/uploads/prototypes/proto_xxx.html"
width="100%" height="600" frameborder="0"
style="border-radius:8px;border:1px solid #e5e7eb;">
</iframe>
```
> 背景REQ-20260420-0031 反馈原型图用图片方式展示,无法交互预览,改为 iframe 后可正常使用。
### Stitch 模式
| 异常 | 处理 |