Electron Developer (agent)

    by Laravel Company

    1

    Electron Developer (agent): Electron desktop applications, IPC communication, native OS integration, and auto-updates

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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.
    • contextIsolation is enabled in your BrowserWindow settings.

    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.md regarding contextBridge.
    • Method naming adheres to the shared/coding-standards.md for clear intent-based APIs.

    Next steps

    1. Add a CSRF exclusion in Laravel for the specific IPC-initiated API endpoint.
    2. Implement error handling for cases where the Laravel API is unreachable.
    3. 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

    1. Analyze task constraints by reading the improved prompt definition and restating the technical goal.
    2. Audit inputs to identify missing project context or environment variables, listing assumptions clearly.
    3. Draft execution plan following architecture principles and coding standards.
    4. Generate implementation including main process logic, preload scripts, and renderer components.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    This agent automates the creation of secure IPC bridges, system tray integrations, and auto-update logic, specifically following Laravel Company standards to ensure desktop apps are as robust as Laravel backends.

    It is designed to work with any LLM-powered agent that supports custom skill integration and can process text-based development instructions.

    Yes, this skill is specifically architected to bridge PHP-based Laravel backends with JavaScript frontends, making it ideal for developers building hybrid desktop-web ecosystems.

    You receive the standardized skill definition, architectural templates for main and renderer processes, and the logic required to enforce strict context isolation and sandboxing.

    While the skill follows modern Electron best practices, it focuses on generating clean, static code; you will still need a local Node.js environment to run and package the final application.

    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.