[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BR8JD4MH7CQS82P4223Q61":3,"skill-same:01M7BR8JD4MH7CQS82P4223Q61":83},{"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":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M7BR8JD4MH7CQS82P4223Q61","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\". Open Design serves this in\npowered-preview mode so Workers and SharedArrayBuffer actually work.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fdesign-templates\u002Fworker-visualizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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\". Open Design 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\nOpen Design 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\nOpen Design 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\". Open Design serves this in\npowered-preview mode so Workers and SharedArrayBuffer actually work.\n","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fdesign-templates\u002Fworker-visualizer",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill worker-visualizer",{"tool":69,"command":70},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill worker-visualizer",{"tool":72,"command":73},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill worker-visualizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fdesign-templates\u002Fworker-visualizer\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"example.html","REFERENCE","参考文档",5625,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fdesign-templates\u002Fworker-visualizer\u002Fexample.html",[84,91,98,105,112,119],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]