用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill electron命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Electron |
| description | Build Electron desktop apps with secure architecture and common pitfall avoidance. |
| metadata | {"clawdbot":{"emoji":"⚡","requires":{"bins":["npm"]},"os":["linux","darwin","win32"]}} |
nodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromisecontextIsolation: true is mandatory — separates preload context from renderereval() or new Function() in renderer — defeats all security boundariescontextBridge.exposeInMainWorld() is the only safe bridge — raw ipcRenderer exposure is vulnerablewebPreferences locked after window creation — can't enable nodeIntegration latershow: false then ready-to-show — prevents white flash, looks more nativeelectron-rebuild after every Electron upgrade — version mismatch = runtime crashapp.setAppUserModelId() — silent failure without itfile:// protocol — use custom protocol (app://) or local server--universal flag — ships both Intel and ARMwin.destroy() explicitly when donebackgroundThrottling: false if timers matter when minimized--inspect flag, connect via chrome://inspectwebContents.openDevTools() or keyboard shortcutelectron-log for persistent logs — console.log vanishes on restart