mattpocock/skills

prototypemattpocock/skills

把抽象设计问题变成可操作的原型

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

prototype 是什么?

围绕一个设计问题制作可丢弃的原型。验证逻辑或状态模型时输出可直接打开的 HTML 演示;比较界面方向时,在一个路由中制作可切换的多种视觉方案。目标是得到设计答案,而不是直接交付生产功能。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 状态流转靠文字难判断,想亲自点击验证。
  • 同一页面有多种视觉方向,需要并排或切换比较。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 prototype,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 prototype

请在 Codex 的当前工作环境中安装并检查 prototype 这个 Skill。

项目身份:mattpocock/skills / prototype
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/prototype/SKILL.md
已定位的源文件:skills/engineering/prototype/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 先给出要回答的问题以及相关页面、模块;安装时保留 LOGIC.md 和 UI.md,两个分支生成的工件不同。

会得到什么

  • 能直接操作的逻辑 HTML,或通过一条项目运行命令启动的界面多方案原型。
  • 最初设计问题的结论及原型的留存位置。

实际使用顺序

  1. 先选逻辑/状态分支或界面分支;含糊时结合周围代码选择并在原型顶部写明假设。
  2. 逻辑分支生成单个 HTML 文件,界面分支按项目路由约定生成多方案页面,用 URL 参数和底部切换条选择。
  3. 在每次操作后显示相关状态,默认只用内存;需要验证数据库时使用明确标为原型的临时数据。
  4. 实际操作原型回答最初问题,把确认的决定带回正式实现。按来源约定把原型保存到独立实验分支,并在实施问题中留下分支和结论引用。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:请用 prototype 验证订单从待付款到已付款、取消、退款的状态逻辑。选择 LOGIC.md 分支,做一个可双击打开的HTML,提供操作按钮并显示当前状态与不允许的转换;标注原型,不接真实支付或生产数据库。先验证状态模型,再讨论正式实现。
预期结果

预期有可操作的状态演示和被验证的规则问题;原型不是生产支付实现,本站未运行本例。

使用前先看这些限制

使用条件与边界

  • 来源明确要求跳过生产级完善和测试;不能把原型直接称作完成上线验收的功能。
  • 默认不持久化;浏览器刷新导致状态重置是预期行为。
针对这个 Skill 的疑问

常见问题

为什么没有完整错误处理和测试?

该 Skill 用可丢弃代码回答一个设计问题。确定方向后,正式实现仍需按项目要求补齐错误处理和测试。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/engineering/prototype/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

查看源文件章节 / Source sections
  • 原文:Prototype
  • 原文:Pick a branch
  • 原文:Rules that apply to both
原文:Prototype

A prototype is **throwaway code that answers a question**. The question decides the shape.

原文:Pick a branch

Identify which question is being answered, using the user's prompt, the surrounding code, or by asking if the user is around: - **"Does this logic / state model feel right?"** → [LOGIC.md](LOGIC.md). Build a single shareable HTML file (free-play buttons plus tabbed guided walkthroughs) that pushes the state machine through cases that are hard to reason about on paper, and that a non-developer can drive. - **"What should this look like?"** → [UI.md](UI.md). Generate several radically different UI variations on a single route, switchable via a URL search param and a floating bottom bar. The two branches produce very different artifacts, so getting this wrong wastes the whole prototype. If the question is genuinely ambiguous and the user isn't reachable, default to whichever branch better matches the surrounding code (a backend module → logic; a page or component → UI) and state the assumption at the top of the prototype.

原文:Rules that apply to both

1. **Throwaway from day one, and clearly marked as such.** Locate the prototype code close to where it will actually be used (next to the module or page it's prototyping for) so context is obvious, but name it so a casual reader can see it's a prototype, not production. For throwaway UI routes, obey whatever routing convention the project already uses; don't invent a new top-level structure. 2. **Trivial to run.** A UI prototype starts from one command in the project's task runner: `pnpm <name>`, `python <path>`, `bun <path>`, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it. 3. **No persistence by default.** State lives in memory. Persistence is the thing the prototype is _checking_, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE, wipe me" name. 4. **Skip the polish.** No tests, no error handling beyond what makes the prototype _runnable_, no abstractions. The point is to learn something fast. 5. **Surface the state.** After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed. 6. **Capture it when done.** Fold any validated decision into the real code, then capture the prototype itself as a **primary source**: commit it to a throwaway branch, out of main, and leave a context pointer to that branch on the implementation issue. Capture the answer too (the verdict and the question it settled) in the issue or a commit. The main branch keeps only the validated decision.

文件 SHA256:714de632d116bb73f65cdb5a882db15b9369a6713b9a47c0fad827848f0bfbe3

仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。

Skills.sh收录简介 · 2026-07-28

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识prototype
来源仓库mattpocock/skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次30
快照累计安装量440954

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源