[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DM5BGBCN5WVTZPZBSPXKKE":3,"skill-same:01M7DM5BGBCN5WVTZPZBSPXKKE":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M7DM5BGBCN5WVTZPZBSPXKKE","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.","andremolnar\u002Fopen-open-design","andremolnar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F919644?v=4","01M7DHE1X4QH6SJBHR92VG5N84","01M7DHE1XRHK1WQV34AM9M328E",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\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":23,"name":5,"triggers":26,"description":35},{"mode":24,"category":25},"utility","web-artifacts",[27,28,29,30,31,32,33,34],"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","3a6721b94dec7506e324023f2855495c9c54d0d2","skills\u002Fexport-download-debugging",0,"https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design","https:\u002F\u002Fopen-design.ai","https:\u002F\u002Fgithub.com\u002Fandremolnar","2026-10-30 01:33:11",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add andremolnar\u002Fopen-open-design --skill export-download-debugging",{"tool":50,"command":51},"bunx","bunx skills add andremolnar\u002Fopen-open-design --skill export-download-debugging",{"tool":53,"command":54},"pnpm","pnpm dlx skills add andremolnar\u002Fopen-open-design --skill export-download-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Fskills\u002Fexport-download-debugging\u002FSKILL.md",true,[],[59,66,73,80,87,96],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7DMPDFNBD52ZP0GNY046Z2A","Beta Skill","Instruction-only fixture skill.","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7DMPC4JJ8ENX7VWTMP38Y9C","Alpha Skill","First fixture skill with a runnable demo.","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7DMP9J5BX307VWVD67J0BBM","Deck One","A small deck template fixture.","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fdesign-templates\u002Fdeck-one\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7DMP7GNYTFXGK9RDZ2X723P","youtube-clipper","YouTube clip generation and editing with automated workflows — pull source video, slice highlights, add captions, and export.","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":91,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M7DMP2WHMNKM0P5BXRYAG8D1","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\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M7DMP0GVJQ37CGXYQDD20VWS","wpds","WordPress Design System. Apply WordPress's official design tokens, typography, and component patterns to themes and sites.","https:\u002F\u002Fgithub.com\u002Fandremolnar\u002Fopen-open-design\u002Fblob\u002Fmain\u002Fskills\u002Fwpds\u002FSKILL.md",[],[]]