Skip to content

ericrisco/rsc-harness / skills/electron

electron

Verified

Use when building, hardening, or shipping a cross-platform Electron desktop app — main/renderer/preload process model, typed contextBridge IPC, locking down nodeIntegration/contextIsolation/sandbox/CSP, or packaging with signing and auto-update. NOT a Rust-backed shell on the native webview (that is tauri), nor the web UI inside it (that is react).

FileKindSize
SKILL.mdskill md11.4 KB
evals/README.mdmarkdown1009 B
evals/cases.yamlconfig2.1 KB
references/packaging-and-updates.mdmarkdown4.3 KB
references/security-and-ipc.mdmarkdown5.8 KB
scripts/verify.shexecutablescript5.8 KB

evals/cases.yaml

View on GitHub
skill: electron

should_trigger:
  - prompt: "Build a desktop app for Mac and Windows from this web UI with Electron."
    why: "Cross-platform desktop shell from web UI is core Electron."
  - prompt: "Let my Electron renderer read a file safely."
    why: "Safe OS capability exposure through preload/IPC belongs here."
  - prompt: "Audit my Electron security: nodeIntegration, sandbox, CSP and preload."
    why: "Electron security baseline is a central responsibility."
  - prompt: "Package my Electron app with code signing and auto-update."
    why: "Packaging, signing and auto-update are Electron shipping concerns."
  - prompt: "Mi preload expone ipcRenderer y el renderer puede require('fs')."
    why: "Spanish Electron preload/renderer security hole triggers this skill."

should_not_trigger:
  - prompt: "Build a smaller Rust-backed desktop shell with native webview."
    route_to: "tauri"
    why: "Tauri is explicitly not Electron."
  - prompt: "Fix this React component state bug in the renderer UI."
    route_to: "react"
    why: "Renderer UI framework bugs are not Electron shell concerns."
  - prompt: "Write a Node CLI script."
    route_to: "nodejs"
    why: "Pure Node.js scripting has no Electron process model."
  - prompt: "Set up GitHub Actions matrix for releases."
    route_to: "github-actions"
    why: "CI workflow mechanics are a separate skill, though Electron may inform requirements."

capability:
  - scenario: "A user has an Electron renderer with nodeIntegration true and wants file access plus auto-update."
    must_include:
      - "Explains main/renderer/preload process boundaries and treats renderer as untrusted."
      - "Keeps nodeIntegration false, contextIsolation true and sandbox true."
      - "Exposes a narrow typed API through contextBridge in preload."
      - "Routes privileged file operations through validated IPC to the main process."
      - "Avoids exposing raw ipcRenderer or fs to the renderer."
      - "Mentions packaging/signing/auto-update requirements separately from app code."
      - "Flags supported Electron major/security patch posture."
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall