Electron

Automatizza app desktop Electron tramite agent-browser sul Chrome DevTools Protocol

di fcakyon · fcakyon/claude-codex-settings

Richiede configurazione ★ 8.0/10

Electron — Automatizza app desktop Electron tramite agent-browser sul Chrome DevTools Protocol

Cosa fa

Guida le app desktop Electron (Slack, VS Code, Discord, Figma, Notion, Spotify) lanciandole con --remote-debugging-port e connettendo la CLI agent-browser alla porta esposta del Chrome DevTools Protocol, quindi utilizzando il workflow snapshot/click/fill/screenshot. Si attiva quando l'utente desidera automatizzare, controllare, connettersi o testare un'app desktop Electron o nativa in esecuzione. Richiede la CLI agent-browser e un'app Electron effettiva in esecuzione con una porta CDP.

Rapporto di test

Recuperato SKILL.md (singolo file, nessuno script incluso) tramite l'API GitHub/raw. Il frontmatter viene analizzato con name+description e allowed-tools puliti; nessun problema di sicurezza (nessun curl|sh, base64 o esfiltrazione). Installato agent-browser tramite npx: è un vero pacchetto npm (0.32.3) e `--help` conferma ogni sottocomando utilizzato nel corpo — connect, snapshot, tab, screenshot, fill, press, keyboard type/inserttext. Impossibile eseguire l'OUTPUT: l'esercizio della skill richiede un'app Electron in esecuzione con una porta CDP attiva, e le app Electron della macchina (Discord/Figma/Notion/Spotify) sono le vere app desktop dell'utente loggato, che non comanderò per un test; nessun artefatto baseline-vs-skill è stato prodotto.

Testato il: 2026-07-21 · Claude Code 2.x (agent harness)

Installazione

git clone --depth 1 https://github.com/fcakyon/claude-codex-settings.git /tmp/electron-src
mkdir -p ~/.claude/skills
cp -R /tmp/electron-src/plugins/agent-browser/skills/electron ~/.claude/skills/electron
# Requires the agent-browser CLI (real npm package, latest 0.32.3):
#   npm i -g agent-browser   # or invoke via: npx agent-browser <cmd>
# The skill ships bundled with the CLI too: `agent-browser skills get electron`.
# To use: quit the target Electron app, relaunch with a debug port, then connect:
#   open -a "Slack" --args --remote-debugging-port=9222   # macOS
#   agent-browser connect 9222 && agent-browser snapshot -i
# Needs a GUI + a running Electron desktop app; not usable in a headless sandbox.

Comandi e prompt di esempio

  • /electronAutomatizza app desktop Electron tramite agent-browser sul Chrome DevTools Protocol

Gli skill si attivano con richieste in linguaggio naturale, senza comandi da ricordare. Dopo l'installazione, prompt come questi lo attivano (in inglese):

  • Automate Slack to send a message via Electron
  • Control VS Code through the Electron automation
  • Test this Electron app's login flow