Skills Plugins MCP Prompt Model 博客 我的中心
生活与工具 #data #browser #image #api

export-download-debugging

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.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=nexu-io-open-design-skills-export-download-debugging-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name export-download-debugging description 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. triggers ["export image failed","image export","download is 0kb","0 KB file","showSaveFilePicker","createWritable","blob URL","Electron download"] od {"mode":"utility","category":"web-artifacts"} 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.
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。