{
  "schemaVersion": "1.0",
  "item": {
    "slug": "electron",
    "name": "Electron",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/ivangdavila/electron",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/electron",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/electron",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=electron",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "electron",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T07:36:15.858Z",
      "expiresAt": "2026-05-08T07:36:15.858Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=electron",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=electron",
        "contentDisposition": "attachment; filename=\"electron-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "electron"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/electron"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/electron",
    "agentPageUrl": "https://openagent3.xyz/skills/electron/agent",
    "manifestUrl": "https://openagent3.xyz/skills/electron/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/electron/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Security Non-Negotiables",
        "body": "nodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromise\ncontextIsolation: true is mandatory — separates preload context from renderer\nWhitelist IPC channels explicitly — never forward arbitrary channel names from renderer\nValidate all IPC message content — renderer is untrusted, treat like external API input\nNever use eval() or new Function() in renderer — defeats all security boundaries"
      },
      {
        "title": "Preload Script Rules",
        "body": "contextBridge.exposeInMainWorld() is the only safe bridge — raw ipcRenderer exposure is vulnerable\nClone data before passing across bridge — prevents prototype pollution attacks\nMinimal API surface — expose specific functions, not generic send/receive"
      },
      {
        "title": "Architecture Traps",
        "body": "webPreferences locked after window creation — can't enable nodeIntegration later\nBlocking main process freezes ALL windows — async everything, no sync file operations\nEach BrowserWindow is separate renderer process — can't share JS variables directly\nshow: false then ready-to-show — prevents white flash, looks more native"
      },
      {
        "title": "Native Module Pain",
        "body": "Pre-built native modules won't work — must rebuild for Electron's specific Node version\nelectron-rebuild after every Electron upgrade — version mismatch = runtime crash\nN-API modules more stable — survive Electron upgrades better than nan-based"
      },
      {
        "title": "Packaging Pitfalls",
        "body": "Dev dependencies included by default — production builds bloat without explicit exclusion\nCode signing required for macOS auto-update — unsigned apps can't use Squirrel\nWindows notifications require app.setAppUserModelId() — silent failure without it\nASAR isn't encryption — source readable with simple tools, don't rely on it for secrets"
      },
      {
        "title": "Platform-Specific Issues",
        "body": "CORS blocks file:// protocol — use custom protocol (app://) or local server\nWindows needs NSIS or Squirrel for auto-update — installer format matters\nmacOS universal binary needs --universal flag — ships both Intel and ARM"
      },
      {
        "title": "Memory and Performance",
        "body": "Unclosed windows leak memory — call win.destroy() explicitly when done\nLazy load heavy modules — startup time directly affects perceived quality\nbackgroundThrottling: false if timers matter when minimized"
      },
      {
        "title": "Debugging",
        "body": "Main process: --inspect flag, connect via chrome://inspect\nRenderer: webContents.openDevTools() or keyboard shortcut\nelectron-log for persistent logs — console.log vanishes on restart"
      }
    ],
    "body": "Security Non-Negotiables\nnodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromise\ncontextIsolation: true is mandatory — separates preload context from renderer\nWhitelist IPC channels explicitly — never forward arbitrary channel names from renderer\nValidate all IPC message content — renderer is untrusted, treat like external API input\nNever use eval() or new Function() in renderer — defeats all security boundaries\nPreload Script Rules\ncontextBridge.exposeInMainWorld() is the only safe bridge — raw ipcRenderer exposure is vulnerable\nClone data before passing across bridge — prevents prototype pollution attacks\nMinimal API surface — expose specific functions, not generic send/receive\nArchitecture Traps\nwebPreferences locked after window creation — can't enable nodeIntegration later\nBlocking main process freezes ALL windows — async everything, no sync file operations\nEach BrowserWindow is separate renderer process — can't share JS variables directly\nshow: false then ready-to-show — prevents white flash, looks more native\nNative Module Pain\nPre-built native modules won't work — must rebuild for Electron's specific Node version\nelectron-rebuild after every Electron upgrade — version mismatch = runtime crash\nN-API modules more stable — survive Electron upgrades better than nan-based\nPackaging Pitfalls\nDev dependencies included by default — production builds bloat without explicit exclusion\nCode signing required for macOS auto-update — unsigned apps can't use Squirrel\nWindows notifications require app.setAppUserModelId() — silent failure without it\nASAR isn't encryption — source readable with simple tools, don't rely on it for secrets\nPlatform-Specific Issues\nCORS blocks file:// protocol — use custom protocol (app://) or local server\nWindows needs NSIS or Squirrel for auto-update — installer format matters\nmacOS universal binary needs --universal flag — ships both Intel and ARM\nMemory and Performance\nUnclosed windows leak memory — call win.destroy() explicitly when done\nLazy load heavy modules — startup time directly affects perceived quality\nbackgroundThrottling: false if timers matter when minimized\nDebugging\nMain process: --inspect flag, connect via chrome://inspect\nRenderer: webContents.openDevTools() or keyboard shortcut\nelectron-log for persistent logs — console.log vanishes on restart"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/electron",
    "publisherUrl": "https://clawhub.ai/ivangdavila/electron",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/electron",
    "downloadUrl": "https://openagent3.xyz/downloads/electron",
    "agentUrl": "https://openagent3.xyz/skills/electron/agent",
    "manifestUrl": "https://openagent3.xyz/skills/electron/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/electron/agent.md"
  }
}