The electron skill enables agents to automate Electron desktop applications (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) by connecting to their Chrome DevTools Protocol port and using the agent-browser snapshot-interact workflow. It solves the problem of automating native desktop apps by leveraging the fact that Electron apps are built on Chromium and expose a CDP port, allowing the same browser automation techniques to work on desktop applications. This skill is for users who need to interact with, test, or control Electron applications across macOS, Linux, and Windows platforms.

skills.sh installs
16.8K
GitHub stars
29.3K

Install

$ npx -y skills add vercel-labs/agent-browser --skill electron --agent claude-code

Installs into .claude/skills of the current project.

Files

Electron App Automation

Automate any Electron desktop app using agent-browser. Electron apps are built on Chromium and expose a Chrome DevTools Protocol (CDP) port that agent-browser can connect to, enabling the same snapshot-interact workflow used for web pages.

Core Workflow

  1. Launch the Electron app with remote debugging enabled
  2. Connect agent-browser to the CDP port
  3. Snapshot to discover interactive elements
  4. Interact using element refs
  5. Re-snapshot after navigation or state changes
# Launch an Electron app with remote debugging
open -a "Slack" --args --remote-debugging-port=9222

# Connect agent-browser to the app
agent-browser connect 9222

# Standard workflow from here
agent-browser snapshot -i
agent-browser click @e5
agent-browser screenshot slack-desktop.png

Launching Electron Apps with CDP

Every Electron app supports the --remote-debugging-port flag since it's built into Chromium.

macOS

# Slack
open -a "Slack" --args --remote-debugging-port=9222

# VS Code
open -a "Visual Studio Code" --args --remote-debugging-port=9223

# Discord
open -a "Discord" --args --remote-debugging-port=9224

Sponsors

Details

Repository
github.com/vercel-labs/agent-browser
Categories
AI & Agent Building, Automation & Workflows, Cloud & Infrastructure

More from vercel-labs/agent-browser

All 6
1github avatardotnet-best-practicesgithub/awesome-copilotEnsure .NET/C# code meets best practices for the solution/project.16.1Kskills.sh installs
2parallel-web avatarparallel-deep-researchparallel-web/parallel-agent-skillsONLY use when user explicitly says 'deep research', 'exhaustive', 'comprehensive report', or 'thorough investigation'. Slower and more expensive than parallel-w16.1Kskills.sh installs
3github avatarsql-optimizationgithub/awesome-copilotUniversal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases16Kskills.sh installs
4insforge avatarinsforge-debuginsforge/agent-skillsinsforge debug15.8Kskills.sh installs
5insforge avatarinsforge-integrationsinsforge/agent-skillsinsforge integrations15.1Kskills.sh installs
6parallel-web avatarparallel-web-searchparallel-web/parallel-agent-skillsDEFAULT for all research and web queries. Use for any lookup, research, investigation, or question needing current info. Fast and cost-effective. Only use paral14.8Kskills.sh installs