← ClaudeAtlas

electron-main-preload-generatorlisted

Generate secure main process and preload script boilerplate with proper context isolation, IPC patterns, and security best practices for Electron applications
a5c-ai/babysitter · ★ 1,913 · AI & Automation · score 90
Install: claude install-skill a5c-ai/babysitter
# electron-main-preload-generator Generate secure Electron main process and preload scripts with proper context isolation, secure IPC patterns, and comprehensive security best practices. This skill creates production-ready boilerplate that follows Electron security guidelines. ## Capabilities - Generate secure main process (`main.js`/`main.ts`) with proper window configuration - Create preload scripts with context-isolated IPC bridge - Implement secure IPC patterns with channel whitelisting - Configure Content Security Policy (CSP) headers - Set up secure BrowserWindow options with sandbox enabled - Generate TypeScript type definitions for IPC channels - Implement permission handlers for sensitive APIs ## Input Schema ```json { "type": "object", "properties": { "projectPath": { "type": "string", "description": "Path to the Electron project root" }, "language": { "enum": ["javascript", "typescript"], "default": "typescript" }, "features": { "type": "array", "items": { "enum": [ "contextIsolation", "sandbox", "csp", "ipcChannels", "permissionHandler", "protocolHandler", "deepLinking", "autoUpdater", "tray", "multiWindow" ] }, "default": ["contextIsolation", "sandbox", "csp", "ipcChannels"] }, "ipcChannels": { "type": "array", "items": { "type": "object",