- Home
- Skills
- Agents & Orchestration
- Electron Developer (agent)
Electron Developer (agent)
Electron Developer (agent): Electron desktop applications, IPC communication, native OS integration, and auto-updates
$5
Electron Developer (agent)
Example session with this skill installed
Build an IPC bridge for a Laravel-based Electron app. I need a way to trigger a native file save dialog from the renderer and pass the resulting path back to my Laravel API controller.
- Read your context and instructions
- Compiled the electron developer agent
I will implement a secure IPC bridge using contextIsolation to handle native file dialogs and API routing.
Implementation Details
// main.js - Main Process
const { ipcMain, dialog } = require('electron');
ipcMain.handle('dialog:save-file', async (event, options) => {
const { filePath, canceled } = await dialog.showSaveDialog(options);
if (canceled) return null;
return filePath;
});
// preload.js - Secure Bridge
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
saveFileDialog: (options) => ipcRenderer.invoke('dialog:save-file', options)
});
// renderer.js - Frontend Logic
async function handleSave() {
const path = await window.electronAPI.saveFileDialog({
title: 'Select Export Location',
defaultPath: 'export.json'
});
if (path) {
const response = await fetch('http://localhost:8000/api/save-path', {
method: 'POST',
body: JSON.stringify({ path })
});
}
}
Summary
Implemented a secure handle/invoke pattern for the file system dialog. This avoids exposing the remote module or nodeIntegration, maintaining process isolation.
Assumptions
- The Laravel API is running locally or at a known endpoint accessible via
fetch. contextIsolationis enabled in yourBrowserWindowsettings.
Risks and open questions
- CORS: Ensure your Laravel backend allows requests from the
file://or custom protocol used by Electron. - Path formatting: The returned path string may need normalization depending on the target OS (Windows vs POSIX).
Verification
- Logic follows
shared/security-guidelines.mdregardingcontextBridge. - Method naming adheres to the
shared/coding-standards.mdfor clear intent-based APIs.
Next steps
- Add a CSRF exclusion in Laravel for the specific IPC-initiated API endpoint.
- Implement error handling for cases where the Laravel API is unreachable.
- Test the dialog behavior on both Windows and macOS to ensure native UI consistency.
Connects securely to your tools. The creator never sees your data.
About this skill
Building cross-platform desktop apps with Electron requires managing complex IPC bridges, native OS APIs, and secure main-to-renderer communication. This skill automates the development of Electron applications following Laravel Company standards, ensuring your desktop layer is as structured and secure as your backend.
What it does
- Architects IPC bridges by implementing context-aware communication between main and renderer processes.
- Integrates native OS features such as system trays, global shortcuts, and file system access.
- Enforces security protocols specifically focusing on contextIsolation, nodeIntegration, and sandbox configurations.
- Handles Laravel-Electron workflows to bridge PHP-based backends with JavaScript desktop frontends.
- Automates auto-update logic providing structured implementations for update-server integration.
How it works
- Analyze task constraints by reading the improved prompt definition and restating the technical goal.
- Audit inputs to identify missing project context or environment variables, listing assumptions clearly.
- Draft execution plan following architecture principles and coding standards.
- Generate implementation including main process logic, preload scripts, and renderer components.
- Verify output against security guidelines and the Laravel Company output contract.
Frameworks & tools
Electron, Laravel, PHP, Node.js, and JavaScript.
Why this beats prompting it yourself
Manually prompting for Electron often leads to insecure "nodeIntegration: true" defaults or messy IPC listeners. This skill forces a strict separation of concerns and applies the Laravel Company professional standards and security guidelines to every file generated.
Use cases
- Scaffold a secure IPC bridge between a Laravel API and an Electron frontend.
- Implement native system tray menus with OS-level event listeners.
- Configure auto-update logic for cross-platform distribution.
- Refactor legacy Electron code to meet modern security isolation standards.
Known limitations
Does not perform live builds or code execution; all verification is based on static analysis and logic checks. Logic is limited to the constraints provided in the project's shared reference files.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
Requires
Windows only
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.