Skip to content
Back to skills

Electron Main

ASecurity

AEGIS Electron main-process conventions for src/main changes: CommonJS, platform dispatch, IPC, watchers and batching.

  • 158 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsjavascripttypescriptjava

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add antropos17/Aegis --skill electron-main --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Electron Main?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Electron Main
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/antropos17-electron-main/badge)](https://www.skillsdirectory.com/skills/antropos17-electron-main)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: electron-main
description: 'AEGIS Electron main-process conventions for src/main changes: CommonJS, platform dispatch, IPC, watchers and batching.'
---

# Electron main process

Main modules use CommonJS and JavaScript with JSDoc. Follow AGENTS.md and inspect effective TypeScript settings before claiming body-level type coverage. Derive dependency versions from package.json.

- Route OS-specific operations through src/main/platform/index.js and the matching platform module.
- Check both the main handler and src/main/preload.js when changing IPC contracts; retain channel/input validation and the narrow contextBridge surface.
- Read scan-loop.js for staggered startup, scan intervals and shutdown cleanup. Those are separate scheduling mechanisms; preserve their lifecycle instead of copying fixed delays into new code.
- Read ipc-batcher.js and its callers for flush mode, capacity and timing. The stats-update caller uses latest-value batching: a pending flush timer is not restarted on every event. Do not replace it with trailing debounce that can postpone delivery indefinitely.
- Follow each chokidar watcher's actual ignored predicate and path semantics in file-watcher.js; the installed library accepting globs does not make a glob equivalent to that predicate.
- Reuse existing init(deps), _setDepsForTest() and _resetForTest() seams where present. Preserve stamped identity and outage invariants from CODING_STANDARDS.md when changing monitoring behavior.

Keep watched secret contents and provider credentials out of logs, IPC payloads and exports. Verify the affected behavior with focused tests and the required project checks.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.