mcpbeat Sign in

Export Download Debugging Agent Skill

| 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.

725 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
83386
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/nexu-io/open-design --skill export-download-debugging

The instruction itself

5 sections, as written by the author

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

  • Prepare and validate the export payload first; disable Save until bytes are

available.

  • Prefer the simplest stable save channel for the host. If

showSaveFilePicker().createWritable() fails, is sandboxed, or creates empty

files, route to <a download> or Electron's download manager instead.

  • Avoid opening a native picker before the payload is ready. This prevents the

host from creating an empty destination file on later write failure.

  • For PNG fallback, prefer a verified non-empty data URL when blob URLs,

revocation timing, CSP, or iframe sandboxing are suspicious.

  • In Electron, add explicit Save As filters for exported image extensions

(.png, .jpg, .jpeg, .webp) so users can choose a real image target.

  • Keep the UI restrained: format selection, filename/path hint, clear pending

and error states, and one primary save action.

Validation

  • Add or update tests for non-empty payload preparation, fallback save behavior,

file extension/MIME mapping, and UI disabled/error states.

  • Run focused export tests, then pnpm --filter @open-design/web typecheck.
  • If Electron download handling changed, also run

pnpm --filter @open-design/desktop typecheck.

  • Before landing, run 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.

Other skills for the same job

different authors, same section of the catalogue
Dogfood
by vercel-labs
vendor ×2

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/site/platform", 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.

4k tokens
Prioritize Assumptions
by phuryn

Prioritize assumptions using an Impact × Risk matrix and suggest experiments for each. Use when triaging a list of assumptions, deciding what to test first, or applying the assumption prioritization canvas.

577 tokens
Hatch Pet
by openai
vendor

Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.

33k tokens scripts
Image Studio UI Tests
by Automattic

Run comprehensive UI tests for the Image Studio feature. Covers Media Library entry points, Edit Mode, Generate Mode, Block Editor integration, navigation, and delete. Use when running the full UI smoke test or testing any Image Studio surface.

11k tokens
Ios Simulator Test Recording
by firebase

>- Skill to run xcodebuild tests on iOS Simulator while recording a video walkthrough, dynamically selecting the highest available OS and device. Most useful for running XCUITests.

3k tokens scripts
Frontend App Builder
by openai
vendor

Use for new frontend applications, dashboards, games, creative websites, hero sections, and visually driven UI from scratch, or when the user explicitly asks for a redesign/restyle/modernization. Builds from clean, airy, high-taste, readable image-generated concept design with section-specific references, faithful implementation, and browser testing.

13k tokens
Jetson Validate Image
by NVIDIA
vendor

>- Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build

18k tokens scripts
Dogfood
by callstackincubator
vendor

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", or "test this app" on mobile. Produces a structured report with reproducible evidence: screenshots, optional repro videos, and detailed steps for every issue.

3k tokens

How to use it

Copy the folder

Take nexu-io/export-download-debugging from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.