[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FASN6SGCF7GPESZNRRQG4Z":3,"skill-same:01M7FASN6SGCF7GPESZNRRQG4Z":84},{"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":54,"commitSha":55,"skillDirectory":56,"forksCount":14,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":73},"01M7FASN6SGCF7GPESZNRRQG4Z","worker-visualizer",null,"A real-time data\u002Fparticle\u002Fsimulation visualizer whose heavy compute runs in\na Web Worker (off the main thread), optionally sharing memory with the UI via\nSharedArrayBuffer, and renders to a canvas at 60fps. Produced as a single\nself-contained `index.html`. Use when the brief asks for a \"web worker\",\n\"simulation\", \"particle system\", \"physics\", \"off-main-thread\", \"fractal\",\n\"real-time compute\", or \"audio\u002Fdata visualizer\". OpenDesign serves this in\npowered-preview mode so Workers and SharedArrayBuffer actually work.","zachuntitled\u002Fdesign-playground","zachuntitled","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F217992765?v=4","01M7F7CCKS505KKDSBMDYMGGKZ","zach","01M7F7CCMEC4JH2VFXGH9M110R",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fexamples\u002Fworker-visualizer\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: worker-visualizer\ndescription: |\n  A real-time data\u002Fparticle\u002Fsimulation visualizer whose heavy compute runs in\n  a Web Worker (off the main thread), optionally sharing memory with the UI via\n  SharedArrayBuffer, and renders to a canvas at 60fps. Produced as a single\n  self-contained `index.html`. Use when the brief asks for a \"web worker\",\n  \"simulation\", \"particle system\", \"physics\", \"off-main-thread\", \"fractal\",\n  \"real-time compute\", or \"audio\u002Fdata visualizer\". OpenDesign serves this in\n  powered-preview mode so Workers and SharedArrayBuffer actually work.\ntriggers:\n  - \"web worker\"\n  - \"worker\"\n  - \"simulation\"\n  - \"particle system\"\n  - \"physics sim\"\n  - \"fractal\"\n  - \"off main thread\"\n  - \"sharedarraybuffer\"\n  - \"real-time compute\"\n  - \"visualizer\"\n  - \"多线程\"\n  - \"粒子\"\nod:\n  mode: prototype\n  platform: web\n  scenario: design\n  preview:\n    type: html\n    entry: index.html\n    reload: debounce-100\n  design_system:\n    requires: false\n    sections: [color, typography]\n  craft:\n    requires: [animation-discipline, state-coverage]\n---\n\n# Worker Visualizer Skill\n\nProduce a single self-contained `index.html` that moves heavy per-frame compute into a Web Worker and renders the result to a canvas, keeping the main thread at a smooth 60fps.\n\n## Why this is a powered artifact\n\nOpenDesign detects `new Worker(` \u002F `SharedArrayBuffer` \u002F `OffscreenCanvas` and renders this file in **powered preview** — a cross-origin-isolated iframe with `allow-same-origin`. That means external and blob Web Workers construct successfully, `SharedArrayBuffer` is defined (`crossOriginIsolated === true`), and `importScripts` works. In the old opaque sandbox all three failed; here they just work.\n\n## Resource map\n\n```\nworker-visualizer\u002F\n├── SKILL.md      ← you're reading this\n└── example.html  ← a working 12k-particle SharedArrayBuffer sim (READ FIRST)\n```\n\n## Workflow\n\n### Step 0 — Read the reference\nRead `example.html`. Note the split: the worker integrates positions each tick; the main thread only reads + draws. It feature-detects `crossOriginIsolated` and uses a `SharedArrayBuffer` for zero-copy when available, falling back to a transferable `postMessage` copy otherwise. Always ship that fallback so the artifact still animates if isolation is off.\n\n### Step 1 — Choose the workload\nPick ONE compute-bound job worth offloading:\n- **Particle \u002F N-body field** (default): thousands of bodies with a cheap force law.\n- **Fractal**: Mandelbrot\u002FJulia escape-time into an `ImageData` buffer.\n- **Cellular automata \u002F reaction-diffusion**: grid updated in the worker.\n- **Data\u002Faudio visualizer**: transform a stream into bars\u002Frings each frame.\n\n### Step 2 — Build `index.html`\n- **One file, zero external requests.** Build the worker from a `Blob` + `URL.createObjectURL` (inline its source), or embed it as a `data:` URL.\n- **Prefer SharedArrayBuffer** for large per-frame state: allocate on the main thread, pass the `SharedArrayBuffer` to the worker, and read the same `Float32Array`\u002F`Uint8ClampedArray` view while drawing. Guard on `typeof SharedArrayBuffer !== 'undefined' && crossOriginIsolated`.\n- **Fallback path**: if not isolated, `postMessage` a transferable `ArrayBuffer` each frame.\n- Consider `OffscreenCanvas` + `canvas.transferControlToOffscreen()` to render inside the worker for the heaviest scenes.\n\n### Step 3 — Overlay + brand\n- HUD with the title and 2–3 live stat tiles (particle count, transport mode, fps). Map accent color to the active DESIGN.md when present; otherwise a dark ground with one vivid accent.\n\n### Step 4 — Self-review (P0)\n- [ ] Worker constructs with no SecurityError; sim runs.\n- [ ] Main-thread render holds ~60fps under the full workload.\n- [ ] `SharedArrayBuffer` path engages when `crossOriginIsolated` is true; `postMessage` fallback engages otherwise — verify BOTH branches degrade cleanly.\n- [ ] No unbounded growth: velocities\u002Fpositions stay stable over minutes.\n- [ ] The \"Transport\" stat truthfully reports which path is live.\n","# Worker Visualizer Skill\n\nProduce a single self-contained `index.html` that moves heavy per-frame compute into a Web Worker and renders the result to a canvas, keeping the main thread at a smooth 60fps.\n\n## Why this is a powered artifact\n\nOpenDesign detects `new Worker(` \u002F `SharedArrayBuffer` \u002F `OffscreenCanvas` and renders this file in **powered preview** — a cross-origin-isolated iframe with `allow-same-origin`. That means external and blob Web Workers construct successfully, `SharedArrayBuffer` is defined (`crossOriginIsolated === true`), and `importScripts` works. In the old opaque sandbox all three failed; here they just work.\n\n## Resource map\n\n```\nworker-visualizer\u002F\n├── SKILL.md      ← you're reading this\n└── example.html  ← a working 12k-particle SharedArrayBuffer sim (READ FIRST)\n```\n\n## Workflow\n\n### Step 0 — Read the reference\nRead `example.html`. Note the split: the worker integrates positions each tick; the main thread only reads + draws. It feature-detects `crossOriginIsolated` and uses a `SharedArrayBuffer` for zero-copy when available, falling back to a transferable `postMessage` copy otherwise. Always ship that fallback so the artifact still animates if isolation is off.\n\n### Step 1 — Choose the workload\nPick ONE compute-bound job worth offloading:\n- **Particle \u002F N-body field** (default): thousands of bodies with a cheap force law.\n- **Fractal**: Mandelbrot\u002FJulia escape-time into an `ImageData` buffer.\n- **Cellular automata \u002F reaction-diffusion**: grid updated in the worker.\n- **Data\u002Faudio visualizer**: transform a stream into bars\u002Frings each frame.\n\n### Step 2 — Build `index.html`\n- **One file, zero external requests.** Build the worker from a `Blob` + `URL.createObjectURL` (inline its source), or embed it as a `data:` URL.\n- **Prefer SharedArrayBuffer** for large per-frame state: allocate on the main thread, pass the `SharedArrayBuffer` to the worker, and read the same `Float32Array`\u002F`Uint8ClampedArray` view while drawing. Guard on `typeof SharedArrayBuffer !== 'undefined' && crossOriginIsolated`.\n- **Fallback path**: if not isolated, `postMessage` a transferable `ArrayBuffer` each frame.\n- Consider `OffscreenCanvas` + `canvas.transferControlToOffscreen()` to render inside the worker for the heaviest scenes.\n\n### Step 3 — Overlay + brand\n- HUD with the title and 2–3 live stat tiles (particle count, transport mode, fps). Map accent color to the active DESIGN.md when present; otherwise a dark ground with one vivid accent.\n\n### Step 4 — Self-review (P0)\n- [ ] Worker constructs with no SecurityError; sim runs.\n- [ ] Main-thread render holds ~60fps under the full workload.\n- [ ] `SharedArrayBuffer` path engages when `crossOriginIsolated` is true; `postMessage` fallback engages otherwise — verify BOTH branches degrade cleanly.\n- [ ] No unbounded growth: velocities\u002Fpositions stay stable over minutes.\n- [ ] The \"Transport\" stat truthfully reports which path is live.\n",{"od":24,"name":5,"triggers":40,"description":53},{"mode":25,"craft":26,"preview":30,"platform":34,"scenario":35,"design_system":36},"prototype",{"requires":27},[28,29],"animation-discipline","state-coverage",{"type":31,"entry":32,"reload":33},"html","index.html","debounce-100","web","design",{"requires":20,"sections":37},[38,39],"color","typography",[41,42,43,44,45,46,47,48,49,50,51,52],"web worker","worker","simulation","particle system","physics sim","fractal","off main thread","sharedarraybuffer","real-time compute","visualizer","多线程","粒子","A real-time data\u002Fparticle\u002Fsimulation visualizer whose heavy compute runs in\na Web Worker (off the main thread), optionally sharing memory with the UI via\nSharedArrayBuffer, and renders to a canvas at 60fps. Produced as a single\nself-contained `index.html`. Use when the brief asks for a \"web worker\",\n\"simulation\", \"particle system\", \"physics\", \"off-main-thread\", \"fractal\",\n\"real-time compute\", or \"audio\u002Fdata visualizer\". OpenDesign serves this in\npowered-preview mode so Workers and SharedArrayBuffer actually work.\n","main","ae28647d4dc2a7f7942993e39171f65d80abc398","plugins\u002F_official\u002Fexamples\u002Fworker-visualizer","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground","https:\u002F\u002Fgithub.com\u002Fzachuntitled","2026-11-03 08:32:15",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add zachuntitled\u002Fdesign-playground --skill worker-visualizer",{"tool":66,"command":67},"bunx","bunx skills add zachuntitled\u002Fdesign-playground --skill worker-visualizer",{"tool":69,"command":70},"pnpm","pnpm dlx skills add zachuntitled\u002Fdesign-playground --skill worker-visualizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fexamples\u002Fworker-visualizer\u002FSKILL.md",true,[74,80],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"example.html","REFERENCE","参考文档",5624,"https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fexamples\u002Fworker-visualizer\u002Fexample.html",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"open-design.json",11244,"https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fexamples\u002Fworker-visualizer\u002Fopen-design.json",[85,92,99,106,113,122],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7FBQ9TYCC8FTMRNS13KBMDF","Beta Skill","Instruction-only fixture skill.","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7FBQ6YY1GHBT4NESM8BS6F5","Alpha Skill","First fixture skill with a runnable demo.","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7FBQ5WZW3YBRRKG4X1TAQ5K","Deck One","A small deck template fixture.","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fdesign-templates\u002Fdeck-one\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7FBQ3QVNQ2ERHDX79GXT70D","youtube-clipper","YouTube clip generation and editing with automated workflows — pull source video, slice highlights, add captions, and export.","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":117,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7FBPZZXBFWBE6T8MR25BP7E","writing-guidelines","Review docs\u002Fprose for Writing Guidelines compliance. Use when asked to \"review my docs\", \"check writing style\", \"audit prose\", \"review docs voice and tone\", or \"check this page against the writing handbook\".","MIT","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7FBPW1GE4TFSGXV1C21XPQD","wpds","WordPress Design System. Apply WordPress's official design tokens, typography, and component patterns to themes and sites.","https:\u002F\u002Fgithub.com\u002Fzachuntitled\u002Fdesign-playground\u002Fblob\u002Fmain\u002Fskills\u002Fwpds\u002FSKILL.md",[],[]]