Electron Application Stinger
Purpose
Guide secure Electron application work from main process through preload and renderer, with a narrow typed IPC surface and evidence from a running packaged desktop app. It is intentionally separate from the quarantined Electron dissection material, which is reverse-engineering work.
When to use
- Building, reviewing, migrating, packaging, or debugging an Electron desktop application
- Designing main, preload, renderer, IPC, permissions, sandbox, or external navigation behavior
- Testing an Electron desktop boundary beyond a browser-only web test
When not to use
- Reverse engineering a third-party Electron app, use the Electron dissection material when it is explicitly available.
- Tauri-specific desktop work, use tauri-stinger.
- Generic TypeScript or frontend design, use the relevant language or UI Stinger.
Procedure
- Read guides/01-secure-process-boundary.md.
- Inventory each
BrowserWindow, loaded origin, preload API, IPC channel, permission request, navigation policy, and shell-open path before edits.
- Keep Node integration disabled for remote content, preserve context isolation, and expose only validated capability-shaped preload methods.
- Validate IPC payloads in the main process. Do not pass whole Electron objects, unrestricted
ipcRenderer, shell access, or filesystem primitives to the renderer.
- Verify in a native run and, when release behavior is claimed, a packaged artifact. Distinguish this from a unit or browser-only result.
References map
- references/REFERENCE.md, load for process and verification tables.
- references/research/distilled-electron-app.md, load to verify a claim.
references/research/raw/, load for primary source captures.
- guides/01-secure-process-boundary.md, load before implementation.
Related bees and stingers
Critical Directive
- You must read all files and context contained within your skill.
- In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.
- Additional related skills can be found here:
Ship Gate
Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.
1---2name: electron-app-stinger3description: Electron application engineering for process boundaries, preload APIs, IPC, sandboxing, packaging, updates, and desktop verification. Use for Electron app implementation or review.4license: MIT5---67# Electron Application Stinger89## Purpose1011Guide secure Electron application work from main process through preload and renderer, with a narrow typed IPC surface and evidence from a running packaged desktop app. It is intentionally separate from the quarantined Electron dissection material, which is reverse-engineering work.1213## When to use1415- Building, reviewing, migrating, packaging, or debugging an Electron desktop application16- Designing main, preload, renderer, IPC, permissions, sandbox, or external navigation behavior17- Testing an Electron desktop boundary beyond a browser-only web test1819## When not to use2021- Reverse engineering a third-party Electron app, use the Electron dissection material when it is explicitly available.22- Tauri-specific desktop work, use [tauri-stinger](../tauri-stinger).23- Generic TypeScript or frontend design, use the relevant language or UI Stinger.2425## Procedure26271. Read [guides/01-secure-process-boundary.md](guides/01-secure-process-boundary.md).282. Inventory each `BrowserWindow`, loaded origin, preload API, IPC channel, permission request, navigation policy, and shell-open path before edits.293. Keep Node integration disabled for remote content, preserve context isolation, and expose only validated capability-shaped preload methods.304. Validate IPC payloads in the main process. Do not pass whole Electron objects, unrestricted `ipcRenderer`, shell access, or filesystem primitives to the renderer.315. Verify in a native run and, when release behavior is claimed, a packaged artifact. Distinguish this from a unit or browser-only result.3233## References map3435- [references/REFERENCE.md](references/REFERENCE.md), load for process and verification tables.36- [references/research/distilled-electron-app.md](references/research/distilled-electron-app.md), load to verify a claim.37- `references/research/raw/`, load for primary source captures.38- [guides/01-secure-process-boundary.md](guides/01-secure-process-boundary.md), load before implementation.3940## Related bees and stingers4142- [electron-app-worker-bee](../../agents/electron-app-worker-bee.md) - paired implementation specialist.43- [tauri-stinger](../tauri-stinger) - alternative desktop application boundary.44- [security-stinger](../security-stinger) - independent security acceptance.4546## Critical Directive4748- You must read all files and context contained within your skill.49- In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.50- Additional related skills can be found here:51 - [tauri-stinger](../tauri-stinger) - Tauri-specific application work.52 - [security-stinger](../security-stinger) - audit the assembled desktop trust boundary.5354## Ship Gate5556Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.