[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BSWSFXGWQGMPTAFTKM502D":3,"skill-same:01M7BSWSFXGWQGMPTAFTKM502D":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":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M7BSWSFXGWQGMPTAFTKM502D","export-download-debugging",null,"Diagnose and fix browser, preview, or Electron export\u002Fdownload failures, especially image export issues involving Save As, Blob\u002FData URLs, the File System Access API, createWritable failures, and 0 KB files.","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\u002Fskills\u002Fexport-download-debugging\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: export-download-debugging\ndescription: |\n  Diagnose and fix browser, preview, or Electron export\u002Fdownload failures, especially image export issues involving Save As, Blob\u002FData URLs, the File System Access API, createWritable failures, and 0 KB files.\ntriggers:\n  - \"export image failed\"\n  - \"image export\"\n  - \"download is 0kb\"\n  - \"0 KB file\"\n  - \"showSaveFilePicker\"\n  - \"createWritable\"\n  - \"blob URL\"\n  - \"Electron download\"\nod:\n  mode: utility\n  category: web-artifacts\n---\n\n# Export Download Debugging\n\nUse this when an export or download appears to run but produces an empty,\nmissing, or unusable file. It is tuned for browser previews, iframe capture,\nand Electron shells.\n\n## Core rule\n\nSeparate capture from save. Prove the export payload has non-zero bytes before\ndebugging the destination path. A 0 KB file often means the native picker or\nhost created the target file, then the write failed or was blocked.\n\n## Evidence\n\n- Record the payload type, MIME type, byte length, object URL or data URL path,\n  and thrown error name\u002Fmessage.\n- Check browser console output and app logs around `showSaveFilePicker`,\n  `createWritable`, `\u003Ca download>`, `URL.createObjectURL`, and URL revocation.\n- In Electron, inspect the `will-download` path: filename, MIME, file extension,\n  save dialog filters, cancellation, and final file size.\n- Confirm the actual downloaded file size on disk and whether it opens in a\n  normal image viewer.\n\n## Fix order\n\n1. Prepare and validate the export payload first; disable Save until bytes are\n   available.\n2. Prefer the simplest stable save channel for the host. If\n   `showSaveFilePicker().createWritable()` fails, is sandboxed, or creates empty\n   files, route to `\u003Ca download>` or Electron's download manager instead.\n3. Avoid opening a native picker before the payload is ready. This prevents the\n   host from creating an empty destination file on later write failure.\n4. For PNG fallback, prefer a verified non-empty data URL when blob URLs,\n   revocation timing, CSP, or iframe sandboxing are suspicious.\n5. In Electron, add explicit Save As filters for exported image extensions\n   (`.png`, `.jpg`, `.jpeg`, `.webp`) so users can choose a real image target.\n6. Keep the UI restrained: format selection, filename\u002Fpath hint, clear pending\n   and error states, and one primary save action.\n\n## Validation\n\n- Add or update tests for non-empty payload preparation, fallback save behavior,\n  file extension\u002FMIME mapping, and UI disabled\u002Ferror states.\n- Run focused export tests, then `pnpm --filter @open-design\u002Fweb typecheck`.\n- If Electron download handling changed, also run\n  `pnpm --filter @open-design\u002Fdesktop typecheck`.\n- Before landing, run `pnpm guard`, inspect the staged diff for unrelated files,\n  generated artifacts, and accidental secrets, then use the repository's PR\n  quality-gate workflow if the fix is being prepared for review.\n","# Export Download Debugging\n\nUse this when an export or download appears to run but produces an empty,\nmissing, or unusable file. It is tuned for browser previews, iframe capture,\nand Electron shells.\n\n## Core rule\n\nSeparate capture from save. Prove the export payload has non-zero bytes before\ndebugging the destination path. A 0 KB file often means the native picker or\nhost created the target file, then the write failed or was blocked.\n\n## Evidence\n\n- Record the payload type, MIME type, byte length, object URL or data URL path,\n  and thrown error name\u002Fmessage.\n- Check browser console output and app logs around `showSaveFilePicker`,\n  `createWritable`, `\u003Ca download>`, `URL.createObjectURL`, and URL revocation.\n- In Electron, inspect the `will-download` path: filename, MIME, file extension,\n  save dialog filters, cancellation, and final file size.\n- Confirm the actual downloaded file size on disk and whether it opens in a\n  normal image viewer.\n\n## Fix order\n\n1. Prepare and validate the export payload first; disable Save until bytes are\n   available.\n2. Prefer the simplest stable save channel for the host. If\n   `showSaveFilePicker().createWritable()` fails, is sandboxed, or creates empty\n   files, route to `\u003Ca download>` or Electron's download manager instead.\n3. Avoid opening a native picker before the payload is ready. This prevents the\n   host from creating an empty destination file on later write failure.\n4. For PNG fallback, prefer a verified non-empty data URL when blob URLs,\n   revocation timing, CSP, or iframe sandboxing are suspicious.\n5. In Electron, add explicit Save As filters for exported image extensions\n   (`.png`, `.jpg`, `.jpeg`, `.webp`) so users can choose a real image target.\n6. Keep the UI restrained: format selection, filename\u002Fpath hint, clear pending\n   and error states, and one primary save action.\n\n## Validation\n\n- Add or update tests for non-empty payload preparation, fallback save behavior,\n  file extension\u002FMIME mapping, and UI disabled\u002Ferror states.\n- Run focused export tests, then `pnpm --filter @open-design\u002Fweb typecheck`.\n- If Electron download handling changed, also run\n  `pnpm --filter @open-design\u002Fdesktop typecheck`.\n- Before landing, run `pnpm guard`, inspect the staged diff for unrelated files,\n  generated artifacts, and accidental secrets, then use the repository's PR\n  quality-gate workflow if the fix is being prepared for review.\n",{"od":24,"name":5,"triggers":27,"description":36},{"mode":25,"category":26},"utility","web-artifacts",[28,29,30,31,32,33,34,35],"export image failed","image export","download is 0kb","0 KB file","showSaveFilePicker","createWritable","blob URL","Electron download","Diagnose and fix browser, preview, or Electron export\u002Fdownload failures, especially image export issues involving Save As, Blob\u002FData URLs, the File System Access API, createWritable failures, and 0 KB files.\n","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fskills\u002Fexport-download-debugging",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":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill export-download-debugging",{"tool":52,"command":53},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill export-download-debugging",{"tool":55,"command":56},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill export-download-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fskills\u002Fexport-download-debugging\u002FSKILL.md",true,[],[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},"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":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},"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":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},"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":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},"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":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},"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":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},"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",[],[]]