electron

electron is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 16 tokens per session (262 once invoked), scanned A, original, MIT.

A toolkit for building desktop applications with web technologies by packaging Chromium and Node.js together. It separates the application logic, user interface, and secure communication between them.

In plain words
What is it for?
Use it to build or adapt cross-platform desktop apps with HTML, CSS, and JavaScript.
Why use it?
It lets an existing web interface run as a desktop app on Windows, macOS, and Linux while still accessing computer features such as files and serial ports.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/g1joshi/agent-skills/electron
Any agent
npx skills add G1Joshi/Agent-Skills --skill electron
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

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/g1joshi/agent-skills/electron.svg)](https://agentmods.dev/skills/g1joshi/agent-skills/electron)
Your own site
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/electron"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/electron.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 262 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00016 $0.00262
Opus 5 $0.00008 $0.00131
Sonnet 5 $0.00003 $0.00052
Haiku 4.5 $0.00002 $0.00026

Measured 2d ago against content hash 98902d948e95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 2d 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/frameworks/electron/SKILL.md · 45 lines

What it actually says

Electron

Electron bundles Chromium and Node.js into a desktop app. It is the industry standard (VS Code, Slack, Discord) despite the file size.

When to Use

  • Rich Capabilities: If you need full Node.js access (Filesystem, Serial Port).
  • Consistent UI: Loops exactly the same on Windows/Mac/Linux (Pixel Perfect).
  • Legacy: Migrating an existing web app to desktop with zero changes.

Core Concepts

Main Process

The Node.js backend. Controls lifecycle and windows.

Renderer Process

The Chromium frontend. Displays UI.

Preload Scripts

The secure bridge between Main and Renderer (Context Isolation).

Best Practices (2025)

Do:

  • Enable Context Isolation: Critical security feature (contextIsolation: true).
  • Use IPC: ipcMain and ipcRenderer for communication.
  • Update Chromium: Security patches come via Electron updates.

Don't:

  • Don't use remote module: It is deprecated and insecure.

References

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. 2d ago First seen · 45 lines · 16 tokens per session scan A 98902d948e95

Subscribe to this mod's changes

electron is a skill published in the GitHub repository G1Joshi/Agent-Skills (12 stars, last pushed 6mo ago), licensed MIT. It adds 16 tokens to every session and 262 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

frontend-ui-engineering

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

addyosmani/agent-skills · 58 tokens

ui-designer

Elite UI/UX Design Lead & Frontend Architect. Generates distinctive, non-templated interfaces with opinionated aesthetics, deliberate typography, and exact UX copy. Triggers on UI design, frontend styling, or layout creation.

GulajavaMinistudio/awesome-copilot-id · 49 tokens

html-css-responsive

Custom Instructions: HTML5 & CSS3 Responsive Design Expert.

GulajavaMinistudio/awesome-copilot-id · 15 tokens

frontend-blueprint

AI frontend specialist and design consultant that guides users through a structured discovery process before generating any code. Collects visual references, design tokens, typography, icons, layout preferences, and brand guidelines to ensure the final output matches the user's vision with high fidelity. Use when the…

tech-leads-club/agent-skills · 170 tokens

core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) for better page experience and search ranking. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts". Focuses specifically on the three Core Web Vitals metrics. Do NOT use for general web…

tech-leads-club/agent-skills · 109 tokens

perf-astro

Astro-specific performance optimizations for 95+ Lighthouse scores. Covers critical CSS inlining, compression, font loading, and LCP optimization. Use when optimizing Astro site performance, improving Astro Lighthouse scores, or configuring astro-critters. Do NOT use for non-Astro sites (use perf-web-optimization or…

tech-leads-club/agent-skills · 82 tokens