Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pledgeandgrow/pledge-skills --skill electrongit clone --depth 1 https://github.com/pledgeandgrow/pledge-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/electron)<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/electron"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/electron/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/electron"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/electron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.02801 |
| Opus 5 | $0.00015 | $0.01401 |
| Sonnet 5 | $0.00006 | $0.00560 |
| Haiku 4.5 | $0.00003 | $0.00280 |
Grade A, and why
electron-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Electron Skill
Electron is a framework for building desktop applications using JavaScript, HTML, and CSS. By embedding Chromium and Node.js into its binary, Electron allows you to maintain one JavaScript codebase and create cross-platform apps that work on Windows, macOS, and Linux. This skill covers the Electron latest documentation.
When to Use
- Building cross-platform desktop applications with web technologies
- Creating apps that need native OS integration (menus, notifications, dock, taskbar)
- Wrapping web applications as desktop apps with Node.js backend capabilities
- Apps requiring inter-process communication between main and renderer processes
- Distributing auto-updating desktop applications
Skill Files
introduction.md— What is Electron, why choose web technologies, why choose Electron (enterprise-grade, mature, stability/security/performance, developer experience), when to choose something else, Electron Fiddle, docs structuretutorial.md— Prerequisites (Node.js, npm, code editor, git), building first app (project setup, BrowserWindow, window lifecycle, platform differences), publishing and updating (GitHub releases, update.electronjs.org, autoUpdater, update-electron-app)process-model.md— Multi-process architecture (main process, renderer process, utility process), preload scripts, contextBridge, process-specific module aliases (TypeScript: electron/main, electron/renderer, electron/common)ipc.md— Inter-process communication: Pattern 1 (renderer→main one-way with ipcMain.on/ipcRenderer.send), Pattern 2 (renderer→main two-way with ipcMain.handle/ipcRenderer.invoke), Pattern 3 (main→renderer with webContents.send), Pattern 4 (renderer→renderer via MessagePort), object serializationcontext-isolation.md— Context isolation feature, migration from window.X pattern, contextBridge.exposeInMainWorld, security considerations (safe vs unsafe API exposure), TypeScript usagesecurity.md— 20-item security checklist (secure content, Node.js integration, context isolation, sandboxing, permission requests, webSecurity, CSP, navigation limits, IPC validation, fuses), process sandboxing (renderer behavior, preload scripts, configuring sandbox)performance.md— 8-item performance checklist (module inclusion, code loading, blocking main process, blocking renderer, polyfills, network requests, bundling, Menu.setApplicationMenu), worker threads, requestIdleCallback, Web Workersdistribution.md— Electron Forge (packaging and publishing), code signing (macOS notarization, Windows certificates, Azure Artifact Signing), auto-updating (update.electronjs.org, GitHub releases, custom update servers, autoUpdater module)testing.md— Automated testing with WebDriver (WebdriverIO, Selenium), Playwright (CDP support, Electron experimental), custom test driver (IPC-over-STDIO, TestDriver class, RPC pattern), application debugging (renderer DevTools, main process --inspect, VS Code integration, V8 crashes)native-modules.md— Native Node.js modules, ABI differences, electron-rebuild, npm rebuild, manual building, troubleshooting, prebuild/node-pre-gyp, win_delay_load_hookfeatures.md— Dark mode (native interfaces, CSS prefers-color-scheme), notifications (main/renderer process, platform considerations), web embeds (iframe, webview, WebContentsView), keyboard shortcuts (accelerators, local/global shortcuts), spellchecker, progress bars, macOS Dock, Windows taskbar (JumpList, thumbnail toolbars, icon overlays, flash frame), window customization (custom title bar, traffic lights, custom draggable regions, click-through windows, frameless windows, transparent windows), accessibility, multithreading (Web Workers, worker threads), message ports, recent documents (JumpList/Dock), online/offline event detection (navigator.onLine, net.isOnline), deep links (custom protocol handler, setAsDefaultProtocolClient), tray menu (Tray icon, context menu, minimizing to tray), Windows on ARM (cross-compilation, native modules), in-app purchases (macOS Mac App Store, inAppPurchase module), menus (application menu, building menus, item types, roles, accelerators, advanced configuration), context menu (context-menu event, params, renderer process, macOS additional items)fuses.md— Electron Fuses (package-time feature toggles): runAsNode, cookieEncryption, nodeOptions, nodeCliInspect, embeddedAsarIntegrityValidation, onlyLoadAppFromAsar, loadBrowserProcessSpecificV8Snapshot, grantFileProtocolExtraPrivileges, wasmTrapHandlers; flipping fuses (easy way with @electron/fuses, hard way)breaking-changes.md— Breaking changes by version (44.0 down to 2.0), types of breaking changes, deprecated/removed/changed APIs, platform support removals, default value changesapi-reference.md— Key API modules: app (events, methods, properties), BrowserWindow (options, events, methods), BaseWindow (parent/child windows, modal windows, resource management, platform notices), WebContentsView (View extension, webContents property), View (base class, addChildView, setBounds), ipcMain (on, handle, off), ipcRenderer (send, invoke, on, sendSync), contextBridge (exposeInMainWorld, exposeInIsolatedWorld), Menu, MenuItem (label, type, role, accelerator, icon), dialog (open/save/message/certificate dialogs), shell (openPath, openExternal, trashItem, showItemInFolder), session (fromPartition, defaultSession, cookies, webRequest, serviceWorkers), webContents (loadURL, executeJavaScript, events, methods), Tray (icon, context menu, platform considerations), nativeImage (createFromPath, createFromBuffer, template images), crashReporter (start, getUploadedReports), autoUpdater (setFeedURL, checkForUpdates, events), powerMonitor (suspend, resume, on-battery, idle), systemPreferences (getColor, getUserDefault, TouchID, media access), screen (getCursorScreenPoint, getPrimaryDisplay, getAllDisplays), clipboard (readText, writeText, readImage, writeHTML), globalShortcut (register, unregister), utilityProcess (fork, stdio, serviceName, events), net (request, fetch, isOnline, resolveHost, online property), inAppPurchase (canMakePayments, getProducts, purchaseProduct), contentTracing (startRecording, stopRecording), desktopCapturer (getSources, platform caveats), powerSaveBlocker (start, stop, isStarted), process (sandboxed, contextIsolated, versions, getHeapStatistics), protocol (handle, registerSchemesAsPrivileged, deprecated methods), pushNotifications (APNS, macOS), ShareMenu (macOS sharing), TouchBar + sub-classes (Button, ColorPicker, Group, Label, Popover, Scrubber, SegmentedControl, Slider, Spacer, OtherItemsProxy), WebRequest (onBeforeRequest, onHeadersReceived, onCompleted), CommandLine (appendSwitch, appendArgument, hasSwitch), ClientRequest (headers, write, end, response event), Cookies (get, set, remove, changed event), DownloadItem (setSavePath, pause, resume, progress), Notification (show, click, isSupported), safeStorage (encryptString, decryptString, isEncryptionAvailable), webFrame (setZoomFactor, insertCSS, executeJavaScript, spell check), webFrameMain (fromId, fromFrameToken, frame hierarchy), ServiceWorkers (console-message, getAllRunning), FAQ (installation, Chromium/Node upgrades, jQuery, tray, class inheritance), Glossary (ASAR, context isolation, IPC, main/renderer process, sandbox, Squirrel, V8, webview)contributing.md— Developing Electron itself: issues (bug reports, triaging), pull requests (fork, build, branch, code, commit, rebase, test, push, PR workflow), coding style (general, C++/Python, JavaScript, documentation), source code directory structure, build instructions (build-tools, manual setup for macOS/Windows/Linux, Reclient remote execution), testing (linting, unit tests, Node.js smoke tests), debugging (generic, stacktraces, breakpoints, symbol server), patches (justification, patch system, git-import/export-patches), Chromium development resources, V8 development resources, creating new API modules, clang-tidy, governance
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- api-reference.md 30 KB
- breaking-changes.md 7.9 KB
- context-isolation.md 4.1 KB
- contributing.md 7.8 KB
- distribution.md 5.1 KB
- features.md 17 KB
- fuses.md 4.0 KB
- introduction.md 3.7 KB
- ipc.md 5.8 KB
- native-modules.md 3.3 KB
- performance.md 3.9 KB
- process-model.md 4.1 KB
- security.md 4.4 KB
- testing.md 5.9 KB
- tutorial.md 4.9 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 196 lines · 29 tokens per session scan A a19af6cc46e3
electron-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 2,801 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
electron-expert
Expert in Electron framework, desktop app development, IPC, and cross-platform packaging. Use when the user mentions desktop, Node.js, cross platform, Windows, macOS, or Linux, or when the task involves Electron Architecture, Process Types, IPC Communication, or App Lifecycle.
cross-platform-desktop
Cross-platform desktop development for macOS and Windows -- platform abstractions, UI convention differences, and multi-platform CI/CD. Activate on: cross-platform app, macOS and Windows, platform differences, DMG installer, MSI installer, NSIS installer, Cmd vs Ctrl, platform abstractions, menu bar differences…
electron
Use when building, hardening, or shipping a cross-platform Electron desktop app — main/renderer/preload process model, typed contextBridge IPC, locking down nodeIntegration/contextIsolation/sandbox/CSP, or packaging with signing and auto-update. NOT a Rust-backed shell on the native webview (that is tauri), nor the…
教程类H5-小红书小工具
A method for building offline, single-page course experiences for Xiaohongshu’s Mini Tools, which are interactive pages published inside the platform. It combines written lessons, generated illustrations, and JavaScript page switching in a constrained container.
tauri-expert
Expert in Tauri framework, Rust backend, web frontend integration, and lightweight desktop applications. Use when the user mentions desktop, Rust, web, cross platform, or performance, or when the task involves Tauri Architecture, Tauri vs Electron, Core Components, or Security Features.
desktop-applications
Build cross-platform desktop applications with Rust using Tauri framework and native GUI alternatives.