Diagnose and fix browser, preview, or Electron export/download failures, especially image export issues involving Save As, Blob/Data URLs, the File System Access API, createWritable failures, and 0 KB files.
73
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use this when an export or download appears to run but produces an empty, missing, or unusable file. It is tuned for browser previews, iframe capture, and Electron shells.
Separate capture from save. Prove the export payload has non-zero bytes before debugging the destination path. A 0 KB file often means the native picker or host created the target file, then the write failed or was blocked.
showSaveFilePicker,
createWritable, <a download>, URL.createObjectURL, and URL revocation.will-download path: filename, MIME, file extension,
save dialog filters, cancellation, and final file size.showSaveFilePicker().createWritable() fails, is sandboxed, or creates empty
files, route to <a download> or Electron's download manager instead..png, .jpg, .jpeg, .webp) so users can choose a real image target.pnpm --filter @open-design/web typecheck.pnpm --filter @open-design/desktop typecheck.pnpm guard, inspect the staged diff for unrelated files,
generated artifacts, and accidental secrets, then use the repository's PR
quality-gate workflow if the fix is being prepared for review.f2760fd
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.