From electrobun-dev
This skill should be used when the user asks to "run electrobun dev", "electrobun development mode", "electrobun --watch", "hot reload electrobun", "CEF devtools", or is debugging the electrobun renderer or understanding the dev build cycle.
How this skill is triggered — by the user, by Claude, or both
Slash command
/electrobun-dev:electrobun-devThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```bash
electrobun dev # build (dev env) once, then launch app
electrobun dev --watch # build, launch, then watch for changes and rebuild+relaunch
Shorthand via package.json (standard templates):
bun start # → electrobun dev
bun run dev # → electrobun dev --watch
electrobun develectrobun.config.tsbuild.bun.entrypoint via Bun.build() in dev mode (no minify, sourcemaps inline)build.views.* entrypointbuild.copy files to build outputbuild/dev-<os>-<arch>/--watch)After initial build+launch, watch mode monitors:
build.bun.entrypointbuild.views.* entrypointbuild.watch (extra paths)build.copyDebounce: 300ms — rapid saves are coalesced into one rebuild.
Ignored automatically: build/, artifacts/, node_modules/, and patterns in build.watchIgnore.
On change: kills running app → rebuilds → relaunches.
// electrobun.config.ts
build: {
watch: ["src/shared/", "assets/"],
watchIgnore: ["src/**/*.test.ts", "src/**/*.spec.ts"],
}
When using renderer: "cef" or defaultRenderer: "cef", the CEF renderer exposes Chrome DevTools at:
http://localhost:9222
Open in any Chrome/Chromium browser while the app is running. Lists all active renderer pages — click to inspect.
Note: DevTools are only available in dev builds. They are not exposed in canary or stable.
For renderer: "native" (WKWebView), enable the developer extras:
// In src/bun/index.ts — call openDevTools() on the BrowserView instance
const view = new BrowserView({ ... });
view.openDevTools(); // Opens Safari Web Inspector (uses private WKWebView _inspector API)
Or in Safari: Develop → [Your App] → [webview name]
console.log from bun-side code appears in the terminal. Renderer-side console.log only appears in devtools (not terminal).console.log to request/message handlers to trace cross-process calls..ts source lines.build.watch rather than broad patterns.pkill -f "<AppName>"build/dev-macos-arm64/
└── <AppName>-dev.app/
└── Contents/
├── MacOS/
│ ├── launcher # native launcher
│ └── main.js # bundled bun entrypoint
├── Resources/
│ ├── <viewname>/ # bundled renderer
│ └── bun # bun runtime binary
└── Info.plist
npx claudepluginhub dexploarer/plugin-electrobun-dev --plugin electrobun-devProvides Electron app development patterns for thin wrapper apps around dev servers, including spawning dev servers, secure BrowserWindow setup, menu roles, and electron-builder packaging.
Provides expertise in building secure, production-grade Electron apps: IPC patterns, preload scripts, packaging, code signing, auto-update, and native OS integration.
Guides Bun runtime usage including CLI flags (--watch, --hot), watch/hot modes, env vars and .env files, bunfig.toml config, package.json scripts, and module resolution.