electron-cli-integration

Detect and manage PATH variables to execute CLIs in Electron apps.

8|2|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/bradtaylorsf/alphaagent-team --skill electron-cli-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electron-cli-integration
Source: https://github.com/bradtaylorsf/alphaagent-team/tree/main/plugins/aai-stack-electron/skills/electron-cli-integration
Command: npx skills add https://github.com/bradtaylorsf/alphaagent-team --skill electron-cli-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of running command-line tools (like Claude, Node, npx) reliably within Electron applications, especially when launched outside of a standard terminal environment where the PATH variable is often incomplete.

Core Features & Use Cases

  • PATH Detection: Intelligently finds CLIs even when the system PATH is minimal.
  • Safe Execution: Spawns child processes with carefully managed environments and working directories.
  • Specific Tool Support: Includes dedicated logic for detecting and running Claude CLI, Node.js, and npx.
  • Use Case: A developer building an Electron-based code editor needs to allow users to run npm install or git commit directly from within the app, regardless of how the app was launched. This skill ensures those commands execute correctly.

Quick Start

Use the electron-cli-integration skill to detect the Claude CLI and Node.js versions available to the application.

Frequently Asked Questions about electron-cli-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does running CLI commands in Electron fail when the app is launched outside a terminal?

Running CLI commands in Electron fails outside a terminal because the system PATH environment variable is often incomplete, preventing the app from finding tools like Node.js. This skill intelligently detects and manages PATH to ensure tools are accessible.

How do I execute Node.js or npx commands reliably within an Electron application?

To execute Node.js or npx commands reliably in Electron, this skill spawns child processes with carefully managed environments and working directories. It includes dedicated logic for detecting and running specific tools safely without relying on minimal default PATH variables.

Can I use this skill to run the Claude CLI from my Electron app regardless of how it was launched?

Yes, you can run the Claude CLI from an Electron app regardless of launch method. The skill provides specific tool support for detecting the Claude CLI and Node.js versions available to the application by intelligently finding CLIs even with a minimal system PATH.

What is the best way to handle PATH detection for child processes in Electron?

The best way to handle PATH detection for child processes in Electron is using intelligent detection logic that resolves minimal PATH environments. This skill robustly spawns processes with safe working directory and environment variable handling to locate tools like npx.

Does this skill support managing environment variables when spawning external command-line tools?

Yes, this skill supports managing environment variables when spawning external command-line tools. It integrates robust process spawning with safe working directory and environment variable handling to ensure tools like Node.js execute correctly within Electron applications.