electron

electron is a skill for Claude Code, Codex from wende/macbeth. It costs 27 tokens per session (1,370 once invoked), scanned A, original, MIT.

A skill for controlling desktop applications built with Electron, a technology that displays web pages inside a desktop app. It uses the macOS Accessibility API to inspect and interact with apps such as Slack, VS Code, and Discord.

In plain words
What is it for?
Use it to connect to Electron apps, inspect their accessible interface, and automate controls exposed through that interface.
Why use it?
It provides Electron-specific guidance for connecting to apps and waiting for their web-based controls to appear. This helps when the accessibility tree is initially empty or incomplete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to connect to Electron apps, inspect their accessible interface, and automate controls exposed through that interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wende/macbeth/electron
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wende/macbeth --skill electron
Clone the repo
git clone --depth 1 https://github.com/wende/macbeth

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for electron

README.md
[![agentmods](https://agentmods.dev/badge/skills/wende/macbeth/electron/github.svg)](https://agentmods.dev/skills/wende/macbeth/electron)
Your own site
<a href="https://agentmods.dev/skills/wende/macbeth/electron"><img src="https://agentmods.dev/badge/skills/wende/macbeth/electron/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for electron

Your own site · 80×15
<a href="https://agentmods.dev/skills/wende/macbeth/electron"><img src="https://agentmods.dev/badge/skills/wende/macbeth/electron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01370
Opus 5.5 $0.00011 $0.00548
Sonnet 5.5 $0.00005 $0.00274
Haiku 4.5 $0.00003 $0.00137

Measured 1mo ago against content hash 44776660c312, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

electron scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/electron/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Electron App Automation

Electron apps (Slack, VS Code, Discord, Notion, Figma desktop, …) render their UI as Chromium web content. macbeth automates them the same way it does native apps, with a few Electron-specific things to know.

Connect

Connect by name or PID as usual:

connect_app({ "name": "Slack" })

On connect, macbeth enables Chromium's accessibility tree (AXManualAccessibility) and waits for the web content to expose descendants. Branded Electron distributions are recognised via ElectronAsarIntegrity, ChromiumBaseVersion, or a renamed *Framework.framework + Helper (Renderer) layout. list_apps reports these apps with runtime: electron and includes declared aliases and bundle IDs.

Reconnecting the same app refreshes readiness without waiting again unless you pass readyTimeoutMs explicitly — useful after a first connect reported empty_web_area.

Expect a readiness delay

After connecting, Chromium needs a short, non-deterministic moment (usually <1s) to construct the tree. connect_app already polls for this, but if the very first query_tree looks empty (just a window shell), wait briefly and query again — the web content is still materializing. For slow apps, connect with a longer wait:

connect_app({ "name": "Slack", "readyTimeoutMs": 5000 })

Discover the tree first

Always run query_tree after connecting, before building locators — Electron trees vary a lot between apps and change as the app renders. Web content lives under a web_area node:

[window "Slack"] h:h_0
  [web_area] h:h_5
    [button "Send"] h:h_31
    [text_field] h:h_28
    [heading "Threads"] h:h_12
    ...

Scope queries to the web_area and target elements directly — recursive descent means you don't need to name every intermediate container:

{ "query": [{ "role": "window" }, { "role": "web_area" }, { "role": "button", "title": "Send" }] }

Common web-content roles: web_area, heading, link, button, text_field, text_area, checkbox, radio, list, table, text. Note Chromium sometimes exposes a contenteditable message box as text_area rather than text_field — check the tree.

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 121 lines · 27 tokens per session scan A 44776660c312

Subscribe to this mod's changes

electron is a skill published in the GitHub repository wende/macbeth (4 stars, last pushed 27d ago), licensed MIT. It adds 27 tokens to every session and 1,370 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

browser-forms

Fill a whole web form, post a comment or reply, or read a long thread in Safari or Chrome with the fewest Mac MCP browser calls.

bulutarkan/mac-mcp · 34 tokens

reverse-search-video-frame

Reverse-search a captured video point and verify candidate identity against source appearance, readable text and page context before reporting a match.

Galbaz1/video-research-mcp · 29 tokens

@elad12390/web-research-assistant

Comprehensive MCP server for web research with 14 tools: SearXNG + Exa AI search, URL crawling, stealth scraping (Cloudflare bypass), package registry lookup (npm/PyPI/crates), GitHub stats, changelog fetching, tech comparison, error translation, API docs discovery, stock image search, and service health. Trigger…

elad12390/web-research-assistant · 144 tokens

openclaw-web-scraper

Stealth web scraping MCP server with 5 tools for structured data extraction. Use when: (1) 'scrape this URL' or 'extract data from this site', (2) 'get all prices from this page' or 'extract structured data', (3) 'take a screenshot of this page', (4) 'click this button and get the result' or 'interact with a page'…

yedanyagamiai-cmd/openclaw-mcp-servers · 131 tokens

playwright

Playwright end-to-end testing expertise for modern web applications. Covers browser automation, cross-browser testing, API testing, visual regression, and CI integration. Use for E2E testing of web apps across Chromium, Firefox, and WebKit.

Plazmodium/odin-workflow · 51 tokens

browser-testing-with-devtools

Verify browser behavior with runtime evidence from DOM, console, network, and performance signals.

Plazmodium/odin-workflow · 23 tokens