[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ARHN9R8JZ3HVN4VYQJCEA7":3,"skill-same:01M7ARHN9R8JZ3HVN4VYQJCEA7":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7ARHN9R8JZ3HVN4VYQJCEA7","prototype",null,"构建一个用完即弃的原型，用来回答某个设计问题。当用户想先验证某种状态模型或逻辑是否顺手，或者想探索界面应该长什么样时使用。","FeatherHunter\u002Fdsh-mattpocock-skills-deck","FeatherHunter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12967785?v=4","01M71JFD7JMNT8HWC3Y9JKMWGG","王辰浩","01M7ARGR9XSH26AXVRCDJYP6T5",363,"MIT","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills-zh\u002Fprototype\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: prototype\ndescription: 构建一个用完即弃的原型，用来回答某个设计问题。当用户想先验证某种状态模型或逻辑是否顺手，或者想探索界面应该长什么样时使用。\n---\n\n# 原型\n\n原型是**用来回答某个问题的用完即弃的代码**。问题决定原型的形态。\n\n## 选择分支\n\n先判断当前要回答的是哪个问题。可以看用户的提示词，看周围的代码，如果用户就在旁边，也可以直接问：\n\n- **「这套逻辑／状态模型顺不顺手？」** → [LOGIC.md](LOGIC.md)。做一个可以分享的单个 HTML 文件（自由操作按钮，加上分标签页的引导式走查），让状态机走一遍那些在纸上很难推演的情形，并且让非开发人员也能自己操作。\n- **「这东西应该长什么样？」** → [UI.md](UI.md)。在同一条路由上生成若干套截然不同的界面变体，用一个 URL 查询参数加一条悬浮底栏来切换。\n\n两条分支产出的东西差别极大，选错就会把整个原型白白浪费掉。如果问题确实模棱两可，又联系不上用户，就默认选与周围代码更匹配的那条分支（后端模块 → 逻辑；页面或组件 → 界面），并在原型顶部写明这个假设。\n\n## 两条分支都适用的规则\n\n1. **从第一天起就是用完即弃，并且明确标注。** 把原型代码放在它真正会被使用的位置附近（紧挨着它为之做原型的模块或页面），让上下文一目了然；但命名要让随手翻看的人一眼就知道这是原型，不是生产代码。用完即弃的界面路由要遵守项目已有的路由约定，不要另造一套新的一级结构。\n2. **跑起来毫无门槛。** 界面原型从项目任务运行器的一条命令启动：`pnpm \u003Cname>`、`python \u003Cpath>`、`bun \u003Cpath>` 等。逻辑演示则是用户双击就能打开的单个 HTML 文件。无论哪种，启动时都不需要动脑。\n3. **默认不做持久化。** 状态放在内存里。持久化正是原型要_检验_的东西，而不是它应该依赖的东西。如果问题明确涉及数据库，就接一个临时数据库，或者用一个名字写得很清楚的本地文件，例如「PROTOTYPE, wipe me」。\n4. **别做打磨。** 不写测试，除了让原型_能跑起来_所必需的部分之外不做错误处理，也不做抽象。重点是把东西快速学明白。\n5. **把状态露出来。** 每一次操作之后（逻辑分支），或每一次切换变体时（界面分支），都把完整的相关状态打印或渲染出来，让用户看得见什么变了。\n6. **做完就归档。** 把验证过的决定并回真实代码，然后把原型本身作为一份**一手来源**留存下来：提交到一个用完即弃的分支上，不放在 main 上，并在实现议题上留一个指向该分支的上下文指针。答案也要留档（结论，以及它解决了哪个问题），写进议题或某次提交。main 分支只保留那条被验证通过的决定。\n","# 原型\n\n原型是**用来回答某个问题的用完即弃的代码**。问题决定原型的形态。\n\n## 选择分支\n\n先判断当前要回答的是哪个问题。可以看用户的提示词，看周围的代码，如果用户就在旁边，也可以直接问：\n\n- **「这套逻辑／状态模型顺不顺手？」** → [LOGIC.md](LOGIC.md)。做一个可以分享的单个 HTML 文件（自由操作按钮，加上分标签页的引导式走查），让状态机走一遍那些在纸上很难推演的情形，并且让非开发人员也能自己操作。\n- **「这东西应该长什么样？」** → [UI.md](UI.md)。在同一条路由上生成若干套截然不同的界面变体，用一个 URL 查询参数加一条悬浮底栏来切换。\n\n两条分支产出的东西差别极大，选错就会把整个原型白白浪费掉。如果问题确实模棱两可，又联系不上用户，就默认选与周围代码更匹配的那条分支（后端模块 → 逻辑；页面或组件 → 界面），并在原型顶部写明这个假设。\n\n## 两条分支都适用的规则\n\n1. **从第一天起就是用完即弃，并且明确标注。** 把原型代码放在它真正会被使用的位置附近（紧挨着它为之做原型的模块或页面），让上下文一目了然；但命名要让随手翻看的人一眼就知道这是原型，不是生产代码。用完即弃的界面路由要遵守项目已有的路由约定，不要另造一套新的一级结构。\n2. **跑起来毫无门槛。** 界面原型从项目任务运行器的一条命令启动：`pnpm \u003Cname>`、`python \u003Cpath>`、`bun \u003Cpath>` 等。逻辑演示则是用户双击就能打开的单个 HTML 文件。无论哪种，启动时都不需要动脑。\n3. **默认不做持久化。** 状态放在内存里。持久化正是原型要_检验_的东西，而不是它应该依赖的东西。如果问题明确涉及数据库，就接一个临时数据库，或者用一个名字写得很清楚的本地文件，例如「PROTOTYPE, wipe me」。\n4. **别做打磨。** 不写测试，除了让原型_能跑起来_所必需的部分之外不做错误处理，也不做抽象。重点是把东西快速学明白。\n5. **把状态露出来。** 每一次操作之后（逻辑分支），或每一次切换变体时（界面分支），都把完整的相关状态打印或渲染出来，让用户看得见什么变了。\n6. **做完就归档。** 把验证过的决定并回真实代码，然后把原型本身作为一份**一手来源**留存下来：提交到一个用完即弃的分支上，不放在 main 上，并在实现议题上留一个指向该分支的上下文指针。答案也要留档（结论，以及它解决了哪个问题），写进议题或某次提交。main 分支只保留那条被验证通过的决定。\n",{"name":5,"description":7},"main","5b4d78f3b2f70a7de1743ddf59b1999330daa1d1","package\u002Fbundled-skills-zh\u002Fprototype",33,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck","https:\u002F\u002Ffeatherhunter.github.io\u002Fdsh-mattpocock-skills-deck\u002Farchitecture\u002FMattSkills-architecture.html","https:\u002F\u002Fgithub.com\u002FFeatherHunter","The Boy, The Man, The Human.","2026-11-14 17:21:39",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add FeatherHunter\u002Fdsh-mattpocock-skills-deck --skill prototype",{"tool":39,"command":40},"bunx","bunx skills add FeatherHunter\u002Fdsh-mattpocock-skills-deck --skill prototype",{"tool":42,"command":43},"pnpm","pnpm dlx skills add FeatherHunter\u002Fdsh-mattpocock-skills-deck --skill prototype","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills-zh\u002Fprototype\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"LOGIC.md","REFERENCE","参考文档",6305,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills-zh\u002Fprototype\u002FLOGIC.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"UI.md",7206,"https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills-zh\u002Fprototype\u002FUI.md",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7ARN2HT5PJ948V8V1X6AE2P","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7ARMY0H53GWTKKDWEFW38H7","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7ARMTZHMWQCM1VN87EFKHYF","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7ARMS9JVG5BJSAGBZCYFEJV","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7ARMPH1T621Q493BRNJA4M9","triage","Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7ARMJ9YHKAQQ9Z2WSQ5Y9VK","to-tickets","Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).","https:\u002F\u002Fgithub.com\u002FFeatherHunter\u002Fdsh-mattpocock-skills-deck\u002Fblob\u002Fmain\u002Fpackage\u002Fbundled-skills\u002Fto-tickets\u002FSKILL.md",[],[]]