# Requirements Prototype

> 从需求功能生成或检查 D1–D3 页面原型标注文档，覆盖页面结构、字段、按钮、状态、交互、权限和跨文档追溯。用于原型设计、线框图、页面标注、交互说明和开发就绪检查；不要用于视觉品牌稿或前端代码实现。

- Skill: `chenychenyu/requirements-prototype` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add chenychenyu/requirements-prototype`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chenychenyu/requirements-prototype/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: chenychenyu (https://skillmd.com/u/chenychenyu)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/chenychenyu/requirements-prototype

---


# 原型标注

## 模式与输入

- `create`：生成 D1、D2 或 D3 原型标注，对本轮产物闭环。
- `validate`：只读执行 23 项检查。
- `review`：与 `validate` 相同，只读给出评审结论，不默认保存报告。
- `repair`：得到明确授权后修改既有标注。

至少需要页面名称或关联功能。若目标等级未说明，默认生成 D3 开发就绪标注，并显式记录假设。

## 执行流程

1. 读取唯一规则源：[原型标准](../../standards/02-prototype.md)。
2. 按任务读取 [页面布局](./sub/01-page-layout.md) 或 [字段标注](./sub/02-field-annotation.md)。
3. 从 [匿名空白模板](./templates/page-annotation.md) 开始；只有需要质量对照时才读取 [匿名样例](./examples/01-page-annotation.md)。
4. 保持 `spec 功能 → 页面 → 字段/按钮 → API/词典` 的可追溯关系。
5. 执行 PT-A/B/C/X 共 23 项验证，分别记录通过、失败、暂挂和不适用理由。

## 交付约束

- 默认写入 `docs/prototype/{功能编码}-{页面名称}.md`。
- 不承诺未经基准测试证明的代码还原百分比。
- 验证模式不修改用户文件；创建模式仅自动修复本轮产物。
- 最终说明目标等级、关联功能、产物路径和 23 项验证结果。

