electron
यह क्या करती है
यह स्किल AI को Electron पर बने डेस्कटॉप ऐप चलाने देती है, उसी snapshot और क्लिक वर्कफ़्लो से जो वेब पेज पर इस्तेमाल होता है। यह उन लोगों के लिए है जो अपने इस्तेमाल किए जाने वाले डेस्कटॉप ऐप को ऑटोमेट करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप चाहें कि AI Slack या Discord जैसे डेस्कटॉप ऐप के अंदर पढ़े या काम करे।
- ✓जब आप अपने बनाए जा रहे Electron ऐप की टेस्टिंग करना चाहें।
- ✓जब आपको डेस्कटॉप ऐप की मौजूदा स्क्रीन का स्क्रीनशॉट चाहिए।
Skill का लिंक
https://github.com/vercel-labs/agent-browser/blob/main/skill-data/electron/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Slack डेस्कटॉप ऐप से जुड़कर बताइए कि किन चैनल में नए मैसेज हैं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
ऐप को रिमोट डीबगिंग पोर्ट चालू करके शुरू किया जाता है। AI उस पोर्ट से जुड़ता है, इंटरफ़ेस पढ़ता है, और फिर एलिमेंट रेफ़रेंस से क्लिक या टाइप करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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
- Launch the Electron app with remote debugging enabled
- Connect agent-browser to the CDP port
- Snapshot to discover interactive elements
- Interact using element refs
- 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
# Figma
open -a "Figma" --args --remote-debugging-port=9225
# Notion
open -a "Notion" --args --remote-debugging-port=9226
# Spotify
open -a "Spotify" --args --remote-debugging-port=9227
Linux
slack --remote-debugging-port=9222
code --remote-debugging-port=9223
discord --remote-debugging-port=9224
Windows
"C:\Users\%USERNAME%\AppData\Local\slack\slack.exe" --remote-debugging-port=9222
"C:\Users\%USERNAME%\AppData\Local\Programs\Microsoft VS Code\Code.exe" --remote-debugging-port=9223
Important: If the app is already running, quit it first, then relaunch with the flag. The --remote-debugging-port flag must be present at launch time.
Connecting
# Connect to a specific port
agent-browser connect 9222
# Or use --cdp on each command
agent-browser --cdp 9222 snapshot -i
# Auto-discover a running Chromium-based app
agent-browser --auto-connect snapshot -i
After connect, all subsequent commands target the connected app without needing --cdp.
Tab Management
Electron apps often have multiple windows or webviews. Use tab commands to list and switch between them:
# List all available targets (windows, webviews, etc.)
agent-browser tab
# Switch to a specific tab by index
agent-browser tab 2
# Switch by URL pattern
agent-browser tab --url "*settings*"
Webview Support
Electron <webview> elements are automatically discovered and can be controlled like regular pages. Webviews appear as separate targets in the tab list with type: "webview":
# Connect to running Electron app
agent-browser connect 9222
# List targets -- webviews appear alongside pages
agent-browser tab
# Example output:
# 0: [page] Slack - Main Window https://app.slack.com/
# 1: [webview] Embedded Content https://example.com/widget
# Switch to a webview
agent-browser tab 1
# Interact with the webview normally
agent-browser snapshot -i
agent-browser click @e3
agent-browser screenshot webview.png
Note: Webview support works via raw CDP connection.
Common Patterns
Inspect and Navigate an App
open -a "Slack" --args --remote-debugging-port=9222
sleep 3 # Wait for app to start
agent-browser connect 9222
agent-browser snapshot -i
# Read the snapshot output to identify UI elements
agent-browser click @e10 # Navigate to a section
agent-browser snapshot -i # Re-snapshot after navigation
Take Screenshots of Desktop Apps
agent-browser connect 9222
agent-browser screenshot app-state.png
agent-browser screenshot --full full-app.png
agent-browser screenshot --annotate annotated-app.png
Extract Data from a Desktop App
agent-browser connect 9222
agent-browser snapshot -i
agent-browser get text @e5
agent-browser snapshot --json > app-state.json
Fill Forms in Desktop Apps
agent-browser connect 9222
agent-browser snapshot -i
agent-browser fill @e3 "search query"
agent-browser press Enter
agent-browser wait 1000
agent-browser snapshot -i
Run Multiple Apps Simultaneously
Use named sessions to control multiple Electron apps at the same time:
# Connect to Slack
agent-browser --session slack connect 9222
# Connect to VS Code
agent-browser --session vscode connect 9223
# Interact with each independently
अक्सर पूछे जाने वाले सवाल
ऐप को खास तरीके से क्यों चलाना पड़ता है?
Electron ऐप तभी डीबगिंग पोर्ट दिखाते हैं जब remote-debugging-port फ़्लैग के साथ शुरू हों, इसलिए स्किल बताती है कि उन्हें कैसे शुरू करें।
कौन-से ऐप कवर होते हैं?
उदाहरण में VS Code, Slack, Discord, Figma, Notion और Spotify शामिल हैं।
किन ऑपरेटिंग सिस्टम के लिए लॉन्च के उदाहरण हैं?
स्किल में macOS और Linux के लिए लॉन्च के उदाहरण शामिल हैं।
जानकारी
लेखक का मूल विवरण
Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.
लोकप्रियता
- GitHub स्टार
- 45k
- रैंकिंग में स्थान
- #6359
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
technical-writer
45kआपके एजेंट को डेवलपर डॉक्स लिखना और सुधारना सिखाती है, जैसे गाइड, API रेफ़रेंस और समस्या-निवारण पेज, साफ़ ढाँचे और सही उदाहरणों के साथ।
agentcore
45kआपके एजेंट को AWS Bedrock AgentCore क्लाउड ब्राउज़र पर ब्राउज़र ऑटोमेशन चलाने देती है, आपके मौजूदा AWS साइन-इन से, लोकल Chrome जैसे ही कमांड के साथ।
core
45kआपके एजेंट को snapshot और एलिमेंट रेफ़रेंस से वेब ब्राउज़र चलाना सिखाती है, ताकि वह पेज खोल सके, क्लिक कर सके, फ़ॉर्म भर सके और सामग्री पढ़ सके।
derive-client
45kआपके एजेंट को एक बार वेबसाइट का नेटवर्क ट्रैफ़िक रिकॉर्ड करना सिखाती है, फिर एक स्वतंत्र क्लाइंट बनाती है जो बिना ब्राउज़र के उसकी इंटरनल API कॉल करता है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।