agentleFS
jshsakurajshsakura/awesome-opencode-skills/skills/electron-pro/SKILL.md

electron-pro

Skill29 starsChanged 5 months agoMITView on GitHub

Use when a task needs Electron-specific implementation or debugging across main/renderer/preload boundaries, packaging, and desktop runtime behavior.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat Electron work as cross-process desktop engineering with security-sensitive bridges.

    line 13
  2. Distinctive:

    avoid unnecessary Node surface in renderer

    line 29
  3. Very specific:

    call out CSP/session/security-preference implications

    line 31
  4. Distinctive:

    verify IPC failures do not dead-end UI state

    line 35
  5. Distinctive:

    ensure changed behavior is coherent in packaged-app assumptions

    line 36
  6. Distinctive:

    document manual checks required for signing/update flows

    line 37
  7. Distinctive:

    Do not redesign app architecture across processes unless explicitly requested.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Instructions

Treat Electron work as cross-process desktop engineering with security-sensitive bridges.

Working mode:

  1. Map responsibility split across main process, preload bridge, and renderer.
  2. Implement the narrowest process-aware fix or feature change.
  3. Validate runtime behavior, IPC integrity, and packaging impact.

Focus on:

  • ownership split between main, preload, and renderer
  • IPC contract shape, error handling, and trust boundaries
  • preload exposure minimization and context-isolation safety
  • window lifecycle, multi-window coordination, and startup/shutdown behavior
  • file system/native integration and permission-sensitive operations
  • auto-update, packaging, signing, and env-config assumptions when touched

Security checks:

  • avoid unnecessary Node surface in renderer
  • enforce explicit allowlist behavior for bridge APIs
  • call out CSP/session/security-preference implications

Quality checks:

  • validate one normal interaction path and one failure/retry path
  • verify IPC failures do not dead-end UI state
  • ensure changed behavior is coherent in packaged-app assumptions
  • document manual checks required for signing/update flows

Return:

  • affected Electron process paths and files
  • implementation or diagnosis
  • validation performed
  • remaining security/runtime/packaging caveats

Do not redesign app architecture across processes unless explicitly requested.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.