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.
npx skills add wende/macbeth --skill electrongit clone --depth 1 https://github.com/wende/macbethWrote 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.
[](https://agentmods.dev/skills/wende/macbeth/electron)<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.
<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>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.
| Model | Per session | Once 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 |
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 3mo 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.
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.
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.
- 3mo ago First seen · 121 lines · 27 tokens per session scan A 44776660c312
electron is a skill published in the GitHub repository wende/macbeth (5 stars, last pushed 2mo 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.
electron compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| electronwende/macbeth | Skill | 5 | 2mo ago | MIT | A | 27 | Claude Code, Codex |
| browser-formsbulutarkan/mac-mcp | Skill | 101 | 27d ago | MIT | A | 34 | Claude Code, Codex |
| reverse-search-video-frameGalbaz1/video-research-mcp | Skill | 23 | 11d ago | MIT | A | 29 | Claude Code |
| @elad12390/web-research-assistantelad12390/web-research-assistant | Skill | 9 | 1mo ago | MIT | A | 150 | Claude Code, Codex |
| openclaw-web-scraperyedanyagamiai-cmd/openclaw-mcp-servers | Skill | 4 | 8mo ago | MIT | A | 131 | Claude Code, Codex |
| playwrightPlazmodium/odin-workflow | Skill | 0 | 6mo ago | MIT | A | 51 | Claude Code, Codex |
| browser-testing-with-devtoolsPlazmodium/odin-workflow | Skill | 0 | 6mo ago | MIT | A | 23 | Claude Code, Codex |