About electron-forge
A reference skill for Electron Forge, a tool for packaging and distributing Electron applications. It covers the package, make, and publish lifecycle, configuration, signing, and extension points for plugins, makers, and publishers.
Key features
- 01Follow the package, make, and publish lifecycle
- 02Configure Forge with JavaScript or TypeScript
- 03Use bundler plugins, makers, and publishers
- 04Import existing projects and use templates
- 05Extend Forge with custom plugins and makers
Use cases
- 01Package an Electron application for distribution
- 02Configure signing for macOS or Windows
- 03Set up a Forge build with Webpack or Vite
- 04Add a custom maker or publisher
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hairyf/ skills --skill electron-forgeAfter installing, type/electron-forgein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
GENERATION.mdreferences/advanced-auto-update.mdadvanced-debugging.mdadvanced-extending-makers.mdadvanced-extending-plugins.mdadvanced-extending-publishers.mdadvanced-extending-templates.mdconfig-configuration.mdconfig-hooks.mdconfig-makers-overview.mdconfig-plugins-overview.mdconfig-plugins-vite.mdconfig-plugins-webpack.mdconfig-publishers-overview.mdconfig-typescript.mdcore-build-lifecycle.mdcore-cli.mdcore-why-electron-forge.mdfeatures-import-existing-project.mdfeatures-templates.mdguides-code-signing.mdDetails
From the project READMEElectron Forge is an all-in-one tool for packaging and distributing Electron applications. It combines packaging, code signing, installers, and publishing into one pipeline and supports custom plugins, makers, and publishers.
Skills are based on Electron Forge (docs as of 2026-01-30), generated from electron-forge-docs.
Core References
| Topic | Description | Reference |
|---|---|---|
| Why Electron Forge | Motivation, value proposition, Forge vs Builder | core-why-electron-forge |
| Build Lifecycle | Package → Make → Publish; hooks; cross-platform | core-build-lifecycle |
| CLI | Init, import, package, make, publish, start; flags; programmatic API | core-cli |
Configuration
| Topic | Description | Reference |
|---|---|---|
| Configuration | forge.config.js, packagerConfig, makers, publishers, plugins, hooks, buildIdentifier | config-configuration |
| Hooks | generateAssets, preStart, postPackage, preMake, postMake, readPackageJson, etc. | config-hooks |
| TypeScript config | forge.config.ts, ForgeConfig, constructor syntax | config-typescript |
| Plugins overview | Bundler (Webpack, Vite) and utility plugins | config-plugins-overview |
| Webpack plugin | main/renderer config, magic globals, HMR, native modules | config-plugins-webpack |
| Vite plugin | build/renderer entries, HMR globals, native externals | config-plugins-vite |
| Makers overview | Config, platforms; DMG, ZIP, Squirrel, deb, rpm, etc. | config-makers-overview |
| Publishers overview | GitHub, S3, Nucleus; config; auto-update | config-publishers-overview |
Features
| Topic | Description | Reference |
|---|---|---|
| Import existing project | import command and manual setup | features-import-existing-project |
| Built-in templates | webpack, vite, TypeScript variants; create-electron-app | features-templates |
Guides
| Topic | Description | Reference |
|---|---|---|
| Code signing | macOS and Windows; where to configure | guides-code-signing |
Advanced
| Topic | Description | Reference |
|---|---|---|
| Auto update | update.electronjs.org, S3, custom servers (Nucleus, etc.) | advanced-auto-update |
| Debugging | Main process: CLI, VS Code, JetBrains | advanced-debugging |
| Writing plugins | PluginBase, getHooks, startLogic | advanced-extending-plugins |
| Writing makers | MakerBase, isSupportedOnCurrentPlatform, make | advanced-extending-makers |
| Writing publishers | PublisherBase, publish; multi-call behavior | advanced-extending-publishers |
| Writing templates | ForgeTemplate, requiredForgeVersion, initializeTemplate | advanced-extending-templates |
Comments
Markdown supported