Skip to content
nexu-io avatar

Export Download Debugging

Diagnostic playbook for image export failures that produce 0 KB or unusable files in browsers and Electron.

CCM score
57 of 100
skills.sh installs
2.1K
GitHub stars
110.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the capture-then-save split: confirm the payload has non-zero bytes before debugging the destination path
  • Includes a fix order (prepare payload, fall back to <a download> or Electron's download manager, add image save filters) plus test and typecheck validation steps
  • Enforces a rule to disable Save until bytes are ready, so a native picker never creates an empty destination file
  • Designed for web previews, iframe capture, and Electron shells that hit Save As, Blob/Data URL, or createWritable failures

Install

$ npx -y skills add nexu-io/open-design --skill export-download-debugging -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Export Download Debugging

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.

Core rule

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.

Evidence

  • Record the payload type, MIME type, byte length, object URL or data URL path, and thrown error name/message.
  • Check browser console output and app logs around showSaveFilePicker, createWritable, <a download>, URL.createObjectURL, and URL revocation.
  • In Electron, inspect the will-download path: filename, MIME, file extension, save dialog filters, cancellation, and final file size.
  • Confirm the actual downloaded file size on disk and whether it opens in a normal image viewer.

Fix order

Details

Repository
github.com/nexu-io/open-design
Categories
Debugging, Frontend & UI Code
First seen
Jul 14, 2026

Questions

What does the export-download-debugging skill do?

It diagnoses and fixes browser, preview, or Electron export and download failures, especially image exports that produce empty or 0 KB files. It covers Save As, Blob and Data URLs, the File System Access API, and createWritable failures.

How do I install the export-download-debugging skill?

Run npx -y skills add nexu-io/open-design --skill export-download-debugging -y in a project. After that, the agent can separate capture from save and check that the export payload has non-zero bytes before debugging the destination path.

Where does export-download-debugging rank in the Debugging category?

It ranks in the top 100 on the Claude Marketplaces Debugging category page. It sits alongside diagnosing-bugs, safe-debug, systematic-debugging, and sentry-cli, but it focuses on export and download failures.

When should I use the export-download-debugging skill?

Use it 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, and it checks Save As and the Electron will-download path.

What tools or setup does export-download-debugging need?

The listing gives no separate accounts or keys. It works in a repository with pnpm and runs the typecheck and guard scripts, such as pnpm --filter @open-design/web typecheck and pnpm guard.

More from nexu-io/open-design

All 196

Similar to Export Download Debugging

More Debugging