speckit-prototype
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "speckit-prototype" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2d3a8d468f9d5256afc41701bb10e583d71448b06a4a47aee133e9996a7f61cc. Verify the upstream source and version against https://skillhub.cn/skills/user_3085d0c0/speckit-prototype-cimi before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Creates, refines, and staged-delivers clickable HTML prototypes for end users based on the Draft specification and its information architecture. Triggered by requests like “create prototype,” “draw prototype,” “make demo page,” “refine prototype,” “upload prototype,” “stage report,” or “business experience.” Delivers natural, coherent, actionable product interfaces by default; tracks, replays, and validates related evidence as side artifacts. Operates independently of any spec-authoring skills and consumes only the separate input contract defined in this catalog.
Introduction source: third_party · user_3085d0c0 · 1.0.10 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: speckit-prototype
description: 基于 Draft specification 及其信息架构创建、微调和阶段性展示面向最终用户的可点击 HTML 原型。用户要求“出原型”“画原型”“做 demo 页面”“微调原型”“上传原型”“阶段汇报”或“给业务体验”时使用。默认交付自然、连贯、可操作的产品界面;追踪、回放和校验证据放在旁路产物,不显示在业务界面。该 Skill 独立于任何规格编写 Skill,只消费本目录定义的独立输入契约。原型生成(Prototype)
先根据改动范围选择 Execution-Profile: Patch | Delta | Full。已有原型的局部文案、
样式或单页调整默认使用 Patch;有限页面或交互变化使用 Delta;首次生成、IA/路由/
共享行为变化或影响范围不明时才使用 Full。先运行
scripts/plan_prototype_change.py,不要凭经验把局部改动升级为全量重建。
原型的第一目标是展示“产品完成后用户会看到什么、如何完成工作”,不是展示
spec 如何被验证。默认生成 product 模式:面向业务用户、使用自然业务语言、
具有连贯的数据和可操作的关键路径。评审矩阵、ID 映射、回放结果和测试日志是
旁路证据,放入 prototype/evidence/ 或其他明确的 sidecar 目录,不进入用户导航,
不作为业务页面的正文或控件。
读取 command.md、references/input-contract.md、references/spec-to-prototype-map.md、
references/behavior-contract.md、references/prototype-acceptance.md、
references/product-prototype-contract.md 和
references/fallback-design-system.md、references/visual-design-system.md、
references/ux-quality-contract.md 和 assets/interaction-state-matrix.md。
Incremental/Revision 额外读取 references/incremental-prototype-rules.md。
阶段性交付(Optional Delivery)
原型生成、微调和阶段性展示统一使用本 Skill、统一写入当前 FEATURE_DIR/prototype/。
不要创建独立的 preview/ 目录、预览副本、预览包或 Preview-ID。
交付方式使用机器标识 Delivery-Mode: Local | User-Selected:
- 默认只生成或更新本地
prototype/,不自动上传、不自动提交 Git,也不自动调用speckit-version或speckit-publish。 - 用户明确要求上传时,继续使用当前
prototype/目录,按用户指定的目标和方式处理;目标可以是 Git、压缩包、共享目录或其他已提供的上传方式,不假设固定平台、分支或远程路径。 - 阶段性展示不要求
Frozen,也不改变spec、版本状态或正式发布记录。 - 交付结果必须报告
prototype_path、delivery_mode和实际upload_target;未上传时将upload_target标记为Not-Requested,而不是伪造上传结果。
阶段性上传是原型交付选项,不是独立生命周期、独立目录或独立 Skill。
本 Skill 不得依赖、调用或读取规格编写 Skill 的内部文件。Specify 只是输入契约的 一种生产者,其他工具或人工也可以提供符合契约的 Draft spec。
硬约束
- 只接受本目录
input-contract.md定义的 Draft spec、来源台账和 IA 文件。 - 不得添加 spec 和 IA 中不存在的角色、状态、流程阶段、能力、指标或页面。
- 分开建模
CAP、PAGE、VIEW、ACT和NAV;上下文视图不能自动成为全局路由。 - 独立能力可以共享外壳,但必须保留独立身份并填写
shared_shell_reason。 - 默认
prototype_mode=product。产品界面不得暴露CAP-*、PAGE-*、VIEW-*、ACT-*、NAV-*、FR-*、TRANS-*、EXEC-*、spec 章节号、回放矩阵、测试断言、 角色切换器、重置演示数据或评审说明;这些内容只能进入 sidecar 证据。 - 原型页面必须用自然业务语言表达规则,不把“证明规则”写成页面内容;内部追踪可用
data-*或 sidecar 关联,但不能成为用户可见文案。 - 配置页面中的字段、人员、角色、候选范围、任务模式、节点操作和版本必须有真实的 编辑/校验/保存/发布路径;不能用静态说明、只读示例或 toast 冒充配置能力。
- 配置结果必须驱动运行时演示。新增或修改的模板、流程节点、负责人、候选范围和任务 模式至少要能在同一原型会话中影响需求提报、任务生成或节点操作;禁止维护一套配置 数据和另一套运行时硬编码数据。
- 生成前后校验 spec digest,拒绝过期原型;拒绝嵌套
.specify状态。 - 先生成并冻结
prototype/prototype-behavior-contract.json,覆盖 P0/P1 行为的预期结果、 禁止结果、持久化和时间触发方式;HTML、测试脚本和证据必须消费该契约,不得反向降低 契约要求。 - 先选择并记录视觉设计来源,生成并冻结
prototype/visual-plan.json;Greenfield 无外部 设计系统时使用assets/product-ui-v2/,Incremental/Revision 优先沿用已验证基线。 - 产品页面必须消费选定设计系统的 tokens、page patterns 和 state patterns;不能只复制 一个空壳再用临时 CSS 拼页面。
执行流程
Full才完整读取独立输入契约和 spec;Patch/Delta先读取 manifest、变更计划和 受影响的 spec/IA/行为片段。提取用户、主要任务、页面主线、配置对象、 运行时行为和验收结果;不能只按 IA 或 UX 章节逐项翻译。- 先建立
prototype/ia-plan.json,再选择视觉基线并建立并冻结prototype/visual-plan.json, 再建立并冻结prototype/prototype-behavior-contract.json,最后建立面向用户的任务路径设计。 IA 只决定页面边界和上下文关系,不决定把内部 ID 或 审计证据放进界面。 - 先完成主线产品体验:列表/详情、配置、提报、当前任务和结果;再补空态、错误、禁用、 保存中、成功和恢复状态。所有演示数据必须能沿同一条数据链流动。
- 按 Delivery-Mode 处理原型;Incremental/Revision 先解析并准备真实 UI baseline, 再执行 lineage 流程。增量原型保留稳定页面/功能定位键,不能凭页面名称猜测基线关系。
- 生成 manifest,明确
prototype_mode=product、routes、entrypoints、CAP/PAGE/VIEW 映射、配置到运行时的关联、behavior_contract和 digest。Incremental/Revision 额外生成evidence/change-map.json与独立的review/index.html;评审矩阵、回放记录、截图和测试脚本写入旁路evidence,Change Review 不得注册成产品路由。 - 按行为契约执行正向、负向、持久化、权限、唯一性和时序回放;对定时任务和外部接口 明确区分真实实现、可交互模拟和静态证据,不能在设置规则时伪造已触发结果。
- 运行信息架构、产品原型、视觉系统、行为证据、lineage 和 change-map 校验器,由校验器生成权威的
prototype-validation.json与change-map-validation.json;任何用户可见的内部追踪泄漏、静态伪配置、 契约未覆盖、证据过期或配置/运行时脱节都不得交付。 同时调用speckit-workspace/scripts/validate_prototype_package.py和speckit-workspace/scripts/index_evidence.py,确保pages/、assets/、evidence/内部没有错位脚本、备份文件、未登记或重复证据。 - 重新计算受影响对象的 digest,写入 execution receipt,报告校验凭证,不修改 spec,也不自动调用 review、version 或 publish。
工作流必须提供可操作的正常、失败、恢复和权限路径。逐节点回放矩阵是 sidecar 证据, 不能替代用户界面,也不能把审计字段直接堆在页面上。页面、按钮或 toast 不能单独证明 业务闭环;业务闭环由真实交互、状态变化、数据一致性和旁路回放共同证明。
版本上下文与 Git 上传(Version Context and Git Delivery)
读取 ../speckit-version/references/version-context-contract.md。原型继承当前 Draft 的
Product-ID、Product-Version、Spec-Revision、Feature-ID 和 Artifact-Key,不自行
分配新的产品版本。prototype-manifest.json 必须保留这些字段及 prototype_digest。
用户明确要求上传 Git 时,使用同一 prototype/ 目录和同一 Artifact-Key;阶段性上传不要求
冻结,也不创建 Preview 目录。Draft 可以重复上传,Frozen 产物不可覆盖。
成品优先检查
生成后先关闭或隐藏所有开发/评审辅助信息,从业务用户视角逐条检查:
- 用户是否能从主入口完成主要任务,不需要理解 spec、CAP、VIEW 或状态机编号;
- 页面是否像同一个真实产品,导航、文案、数据、保存结果和返回路径是否连贯;
- 页面是否使用统一视觉来源、页面范式和 design tokens,而不是通用后台拼装;
- 1440x900 和 1280x720 下是否无遮挡、截断、非预期横向滚动和模板占位文案;
- 配置对象是否真的可创建、编辑、校验、保存、发布,并影响运行时;
- P0/P1 行为是否同时覆盖成功、失败、恢复和禁止副作用;
- 时间、重试、外部接口的模拟是否保留真实触发条件,并在报告中声明边界;
- 关键操作是否有明确的可用/不可用原因、成功反馈和恢复入口;
- 刷新、切换页面或重新进入详情后,演示数据和版本绑定是否保持一致;
- 产品界面是否没有评审矩阵、测试面板、角色切换器、内部 ID 和开发说明。
Current listing version
1.0.10
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决产品原型设计中的高频刚需,支持创建、微调、阶段性展示可点击 HTML 原型
- 明确区分产品界面与旁路证据,确保交付自然、连贯、可操作的用户体验
Highlights
- 触发词覆盖全面且边界清晰,包括“出原型”“画原型”“做 demo 页面”等常见表达
Areas to improve
-
缺少显式 When to Use 章节 Reported severity: Minor
文档未设置独立的 When to Use 章节,但触发场景已在 description 中充分说明
Recommendation: 建议增加显式 When to Use 章节以提升可读性
-
文档内容较长 Reported severity: Minor
skill_body 内容详实但超过常规长度,可能影响快速浏览
Recommendation: 可考虑拆分部分细节至引用文档或附录
Highlights
- 执行流程清晰,包含从输入契约读取到最终校验的完整闭环
- 硬约束明确,确保原型不泄露内部追踪信息或伪造配置能力
Highlights
- 行为契约先行冻结机制确保原型行为可验证且不可逆操作有确认
- 多重校验器(原型、变更映射、证据索引)保障交付质量与一致性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.