Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

electronElectron 桌面开发

Agent Skill

electron 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

908

周安装

39

GitHub Stars

15

下载量

318
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:electron(Electron 桌面开发)
来源仓库:https://github.com/hairyf/skills
仓库路径:skills/electron
安装命令:
npx skills add https://github.com/hairyf/skills --skill electron
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hairyf/skills --skill electron

简介

electron 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 核验具体用法和功能边界。

SKILL.md

Electron embeds Chromium and Node.js so you can ship one JavaScript codebase for Windows, macOS, and Linux. Use these skills when scaffolding projects, wiring main/renderer IPC, configuring security and packaging, or integrating native modules and auto-updates.

The skill is based on Electron (latest), generated at 2026-01-30.

Core References

TopicDescriptionReference
Process ModelMain, renderer, preload, utility process; when to use eachcore-process-model
IPCRenderer↔main patterns (send, invoke, main→renderer), serializationcore-ipc
Context IsolationcontextBridge, exposing safe APIs from preloadcore-context-isolation
SandboxProcess sandboxing, preload polyfill, when it is disabledcore-sandbox

Develop

TopicDescriptionReference
AccessibilitysetAccessibilitySupportEnabled, assistive tech, AXManualAccessibilitydevelop-accessibility
App LifecyclewhenReady, window-all-closed, quit, single instance lockdevelop-app-lifecycle
BaseWindowMulti-view windows; contentView, View, addChildView; parent/modaldevelop-base-window
BrowserWindowCreating windows, loadURL/loadFile, ready-to-show, webPreferencesdevelop-browser-window
ClipboardreadText/writeText, readHTML/writeHTML; use from preloaddevelop-clipboard
Cookiessession.cookies; get, set, remove, flushStore; changed eventdevelop-cookies
Command Lineapp.commandLine, appendSwitch, hasSwitch; Electron/Node/Chromium flagsdevelop-command-line
Context MenuRight-click menu; webContents context-menu, Menu.popupdevelop-context-menu
contentTracingChromium tracing; startRecording, stopRecording; chrome://tracingdevelop-content-tracing
Crash ReportercrashReporter.start, submitURL, extra; call before readydevelop-crash-reporter
DebugRenderer DevTools, main process (--inspect, Chrome/VSCode)develop-debug
Debugger (CDP)webContents.debugger; attach, detach, sendCommand; DevTools Protocoldevelop-debugger
DevTools ExtensionloadExtension, removeExtension; electron-devtools-installerdevelop-devtools-extension
DialogshowOpenDialog, showSaveDialog, showMessageBox; expose via IPCdevelop-dialog
DockmacOS Dock; bounce, badge, icon, menu, hide/showdevelop-dock
Downloadswill-download, DownloadItem, setSavePath, preventDefaultdevelop-downloads
Keyboard ShortcutsAccelerators, local (MenuItem), global (globalShortcut)develop-keyboard-shortcuts
Linux Desktop Actions.desktop file Actions; launcher shortcuts; process.argvdevelop-linux-desktop-actions
Menus and TrayApplication/context/tray/dock menus; Tray icon and context menudevelop-menus-tray
Native ImagecreateFromPath, createFromBuffer, template image; tray, icondevelop-native-image
Native ModulesUsing native Node addons; @electron/rebuild, node-gypdevelop-native-modules
Netnet.fetch, net.request; HTTP from main (Chromium stack)develop-net
netLogSession network logging; startLogging, stopLogging, captureModedevelop-net-log
Drag and DropNative file drag out; webContents.startDrag, IPCdevelop-drag-drop
ESMES modules in main and preload;.mjs, caveatsdevelop-esm
MultithreadingWeb Workers, nodeIntegrationInWorker; no Electron in workersdevelop-multithreading
Navigation HistorywebContents.navigationHistory, goBack, goForward, getAllEntriesdevelop-navigation-history
Offscreen Renderingpaint event, NativeImage; GPU vs software; setFrameRatedevelop-offscreen-rendering
parentPortUtility process child; process.parentPort message/postMessagedevelop-parent-port
Power Monitorsuspend, resume, battery/AC, thermal-state-change, shutdowndevelop-power-monitor
Power Save BlockerpowerSaveBlocker; prevent display/app sleep; start/stop by iddevelop-power-save-blocker
Progress BarsetProgressBar (taskbar/dock); 0–1, indeterminatedevelop-progress-bar
ProtocolCustom protocol (protocol.handle), registerSchemesAsPrivilegeddevelop-protocol
Recent DocumentsaddRecentDocument, clearRecentDocuments; JumpList, Dockdevelop-recent-documents
Safe StorageencryptString, decryptString; OS keychaindevelop-safe-storage
ScreengetPrimaryDisplay, getAllDisplays, workAreaSize, display eventsdevelop-screen
Sessionpartition, defaultSession, permissionRequestHandler, cookiesdevelop-session
Share MenumacOS ShareMenu; share to apps/social; popup, shareMenu roledevelop-share-menu
ShellopenExternal, openPath, showItemInFolder, trashItem; securitydevelop-shell
Processprocess.type, process.versions, process.platform, process.masdevelop-process
Environment VariablesELECTRON_*, NODE_OPTIONS; fusesdevelop-environment-variables
Represented FilesetRepresentedFilename, setDocumentEdited (macOS title bar)develop-represented-file
System PreferencesgetEffectiveAppearance, getColor, getMediaAccessStatusdevelop-system-preferences
Touch BarmacOS TouchBar; items (Button, Label, Slider, etc.), setTouchBardevelop-touch-bar
TestsWebDriver/WebdriverIO E2E, headless CIdevelop-tests
Utility ProcessutilityProcess.fork, postMessage, MessagePortMaindevelop-utility-process
Web RequestonBeforeRequest, onHeadersReceived, filter; set CSPdevelop-web-request
webContents Navigationwill-navigate, setWindowOpenHandler, load eventsdevelop-webcontents-navigation
webFrameRenderer zoom, insertCSS, executeJavaScript, spell check, frame treedevelop-web-frame
webFrameMainMain process frame control; fromId/fromFrameToken, executeJavaScript, IPCdevelop-web-frame-main
webUtilsRenderer getPathForFile(File); file input path; expose via preloaddevelop-web-utils
Window CustomizationFrameless, transparent, custom title bardevelop-window-customization
Windows TaskbarJumpList, setThumbarButtons, setOverlayIcon, flashFramedevelop-windows-taskbar

Best Practices

TopicDescriptionReference
PerformanceMeasure first, defer loading, avoid blocking, bundlebest-practices-performance
SecurityContent loading, webPreferences, CSP, IPC validation, distributionbest-practices-security
VersioningSemVer, ~ vs ^, stabilization branches, upgrade and EOLbest-practices-versioning

Features

TopicDescriptionReference
ASARPack/unpack, Node and Web API usage, unpack option, integrityfeatures-asar
Corner Smoothing-electron-corner-smoothing CSS; smooth rounded corners; system-uifeatures-corner-smoothing
Dark ModenativeTheme, themeSource, prefers-color-schemefeatures-dark-mode
Desktop CapturedesktopCapturer, setDisplayMediaRequestHandler, getDisplayMediafeatures-desktop-capture
FusesrunAsNode, nodeCliInspect, asar integrity; @electron/fusesfeatures-fuses
In-App PurchaseMac App Store IAP; purchaseProduct, getProducts, transactions-updatedfeatures-in-app-purchase
MessagePortsRenderer-to-renderer and main-renderer messaging; MessagePortMainfeatures-message-ports
NotificationsMain (Notification), renderer (Web Notifications API)features-notifications
Online/Offlinenet.isOnline(), net.online; navigator.onLine, online/offline eventsfeatures-online-offline
Push NotificationsAPNS (macOS); registerForAPNSNotifications, received-apns-notificationfeatures-push-notifications
Service Workerssession.serviceWorkers; getAllRunning, main↔SW IPC (IpcMainServiceWorker)features-service-workers
SpellcheckerEnable, setSpellCheckerLanguages, context menu, dictionary URLfeatures-spellchecker
UpdatesautoUpdater, Squirrel, publishing release metadatafeatures-updates
Web Embedsiframe, WebContentsView, webview tag; when to use eachfeatures-web-embeds

Distribute

TopicDescriptionReference
Code SigningmacOS sign + notarize; Windows Authenticodedistribute-code-signing
Mac App StoreMAS build, Apple Distribution, sandbox, limitationsdistribute-mac-app-store
PackagingTooling (Forge), manual layout, asar, rebrandingdistribute-packaging
Windows StoreAppX/MSIX, electron-windows-store, process.windowsStoredistribute-windows-store

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.75%
按下载量换算126

Claude

29.04%
按下载量换算92

Cursor

18.54%
按下载量换算59

Gemini CLI

9.64%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills