[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DR4R19ARH29XX04WWW24T":3,"skill-same:01M79DR4R19ARH29XX04WWW24T":60},{"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":6,"updatedAt":31,"install":32,"resources":45},"01M79DR4R19ARH29XX04WWW24T","prototype",null,"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.","spectroscope\u002Fspectroscope","spectroscope","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F306844128?v=4","01M79DQ3TDVZFVMDAQXV630F1E","Christopher Ezell","01M79DQ3V1TGB9HT87FJG4Y06A",2,"MIT","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002F.spectro\u002Fskills-catalogue\u002Fmatt-pocock\u002Fskills\u002Fengineering\u002Fprototype\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: prototype\ndescription: 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.\n---\n\n# Prototype\n\nA prototype is **throwaway code that answers a question**. The question decides the shape.\n\n## Pick a branch\n\nIdentify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:\n\n- **\"Does this logic \u002F 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.\n- **\"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.\n\nThe two branches produce very different artifacts — 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.\n\n## Rules that apply to both\n\n1. **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.\n2. **Trivial to run.** A UI prototype starts from one command in the project's task runner — `pnpm \u003Cname>`, `python \u003Cpath>`, `bun \u003Cpath>`, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it.\n3. **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.\n4. **Skip the polish.** No tests, no error handling beyond what makes the prototype _runnable_, no abstractions. The point is to learn something fast.\n5. **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.\n6. **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.\n","# Prototype\n\nA prototype is **throwaway code that answers a question**. The question decides the shape.\n\n## Pick a branch\n\nIdentify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:\n\n- **\"Does this logic \u002F 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.\n- **\"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.\n\nThe two branches produce very different artifacts — 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.\n\n## Rules that apply to both\n\n1. **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.\n2. **Trivial to run.** A UI prototype starts from one command in the project's task runner — `pnpm \u003Cname>`, `python \u003Cpath>`, `bun \u003Cpath>`, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it.\n3. **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.\n4. **Skip the polish.** No tests, no error handling beyond what makes the prototype _runnable_, no abstractions. The point is to learn something fast.\n5. **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.\n6. **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.\n",{"name":5,"description":7},"main","4ee98acbdee77bbc9d0b989ac8c3d7421963b1c2",".spectro\u002Fskills-catalogue\u002Fmatt-pocock\u002Fskills\u002Fengineering\u002Fprototype",1,"https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope","https:\u002F\u002Fspectroscope.ai","https:\u002F\u002Fgithub.com\u002Fspectroscope","2026-11-11 07:30:30",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add spectroscope\u002Fspectroscope --skill prototype",{"tool":38,"command":39},"bunx","bunx skills add spectroscope\u002Fspectroscope --skill prototype",{"tool":41,"command":42},"pnpm","pnpm dlx skills add spectroscope\u002Fspectroscope --skill prototype","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002F.spectro\u002Fskills-catalogue\u002Fmatt-pocock\u002Fskills\u002Fengineering\u002Fprototype\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",100,"https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002F.spectro\u002Fskills-catalogue\u002Fmatt-pocock\u002Fskills\u002Fengineering\u002Fprototype\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"LOGIC.md",6093,"https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002F.spectro\u002Fskills-catalogue\u002Fmatt-pocock\u002Fskills\u002Fengineering\u002Fprototype\u002FLOGIC.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"UI.md",6959,"https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002F.spectro\u002Fskills-catalogue\u002Fmatt-pocock\u002Fskills\u002Fengineering\u002Fprototype\u002FUI.md",[61,68,75,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M79DY61ZW6AS4ZXPGPK8CYQM","brainstorming","Test fixture skill.","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002Fspectro-server\u002Fsrc\u002Ftest\u002Fresources\u002Ftest-bundled-playbooks\u002Fspectro\u002Fskills\u002Fspectropowers\u002Fbrainstorming\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M79DY3K5E2S4F9CK4QA4V1VD","s","A fixture skill.","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002Fspectro-server\u002Fsrc\u002Ftest\u002Fresources\u002Fspectrolyzr-fixture\u002Fbundle\u002Fskills\u002Fs\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79DY2H81J251GQT8M9SYXJ2","beta","The second skill of the fixture plugin.","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002Fspectro-server\u002Fsrc\u002Ftest\u002Fresources\u002Fplugin-fixture\u002Ffixture\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M79DY1CTTH4EH1WTKDH8379N","alpha","The first skill of the fixture plugin.","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002Fspectro-server\u002Fsrc\u002Ftest\u002Fresources\u002Fplugin-fixture\u002Ffixture\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M79DXWTRCQD2XM27K0V8MY50","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002Fspectro-server\u002Fsrc\u002Fmain\u002Fresources\u002Fbundled-playbooks\u002Fspectro\u002Fskills\u002Fspectropowers\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M79DXTXR39NVJX3KBX8ZE44P","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fspectroscope\u002Fspectroscope\u002Fblob\u002Fmain\u002Fspectro-server\u002Fsrc\u002Fmain\u002Fresources\u002Fbundled-playbooks\u002Fspectro\u002Fskills\u002Fspectropowers\u002Fwriting-plans\u002FSKILL.md",[],[]]