electron-rules
/electron-rules
Podaje zasady i polecenia sprawdzające dla aplikacji desktopowych w Electron, do pisania, przeglądu i audytu kodu.
- Autor
- 1AngelMicka ↗
- Repozytorium
- quality-pack ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 1
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Podaje zasady i polecenia sprawdzające dla aplikacji desktopowych w Electron, do pisania, przeglądu i audytu kodu.
Oryginalny opis (EN)
Shipwright rules and check commands for Electron (desktop app). Use when writing, reviewing or auditing code in a project that uses this stack. FR : règles et commandes de vérification pour Electron (application de bureau).
Jak działa
- Rules
- Check commands
Podgląd SKILL.md
---
name: electron-rules
description: "Shipwright rules and check commands for Electron (desktop app). Use when writing, reviewing or auditing code in a project that uses this stack. FR : règles et commandes de vérification pour Electron (application de bureau)."
---
<!-- Generated by tools/build.py from the referential YAML. Do not edit by hand. -->
# Electron (desktop app)
These rules add to the core build skills of Shipwright.
## Rules
- Every window: contextIsolation on, nodeIntegration off, sandbox kept, webSecurity on. The page never gets Node.js.
- System access goes through a preload script exposing, with contextBridge, a short list of named functions; never the whole ipcRenderer.
- Every ipcMain handler validates the sender and its arguments like a server route.
- Windows load local files or https; navigation and new windows are filtered (will-navigate, setWindowOpenHandler); shell.openExternal only opens checked https addresses.
- Content security policy set; no remote module.
- Stay on one of the three latest Electron major versions: older ones no longer receive Chromium security fixes.
- Heavy work in a utility process or a worker, never in the main process, which would freeze every window.
- Signed updates (electron-updater or update-electron-app), installers signed and notarised in CI.
- Secrets with safeStorage or the system keychain; data in app.getPath('userData').
- To check the interface in the real window: start the app with --remote-debugging-port=9222, then sw flows --attach 9222.
## Check commands
Used by `/sw:audit`. `{pm}` is the project's package manager, `{url}` the app URL, `{host}` its host name.
| Check | Command | Passes if |
| --- | --- | --- |
| typecheck | `{pm} exec tsc --noEmit` | exit code 0 |
| lint | `{pm} run lint` | exit code 0, no errors |
| test_run | `{pm} test` | exit code 0 |
| deps_audit | `{pm} audit --audit-level=high` | no high or critical advisory; Electron itself on a supported major version |
| license_check | `npx --yes license-checker-rseidelsohn --summary --failOn 'GPL;AGPL'` | exit code 0 |
Wersje
W bazie nie ma innych skilli o nazwie electron-rules.
Migawka bazy z 13.11.2026 · wersja paczki 7a752b320ed2 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90tauri-rules
Stosuje reguły i komendy sprawdzające Shipwright dla aplikacji desktopowych w Tauri, przy pisaniu, przeglądzie i audycie kodu. - 90nextjs-rules
Podaje zasady i komendy sprawdzające dla kodu Next.js, React, TypeScript i Tailwind przy pisaniu lub przeglądzie kodu. - 100electron-desktop
Wspiera tworzenie aplikacji desktopowych w Electron dla Windows, macOS i Linux, w tym funkcje natywne systemu i pakowanie aplikacji webowych. - 100electron
Zawiera wskazówki o frameworku Electron: proces główny, proces renderera, komunikację IPC, zarządzanie oknami i budowę aplikacji desktopowych. - 100electron
Opisuje framework Electron dla wieloplatformowych aplikacji desktopowych w JavaScript, HTML i CSS: architektura, IPC, bezpieczeństwo, pakowanie, automatyczne aktualizacje i integracja z backendem. - 98electron
Automatyzuje aplikacje Electron, takie jak VS Code, Slack czy Figma, przez Chrome DevTools Protocol, do testów i sterowania.