Loading...
Loading...
WXT browser extension performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring WXT browser extension code to ensure optimal performance patterns. Triggers on tasks involving WXT, browser extensions, content scripts, service workers, messaging, and extension APIs.
npx skill4agent add pproenca/dot-skills wxt-browser-extensions| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Service Worker Lifecycle | CRITICAL | |
| 2 | Content Script Injection | CRITICAL | |
| 3 | Messaging Architecture | HIGH | |
| 4 | Storage Patterns | HIGH | |
| 5 | Bundle Optimization | MEDIUM-HIGH | |
| 6 | Manifest Configuration | MEDIUM | |
| 7 | UI Performance | MEDIUM | |
| 8 | TypeScript Patterns | LOW-MEDIUM | |
svc-register-listeners-synchronouslysvc-avoid-global-statesvc-keep-alive-patternssvc-handle-install-updatesvc-offscreen-documentssvc-declarative-net-requestinject-use-main-functioninject-choose-correct-worldinject-run-at-timinginject-use-ctx-invalidatedinject-dynamic-registrationinject-all-framesmsg-return-true-for-asyncmsg-type-safe-messagingmsg-use-tabs-sendmessagemsg-use-ports-for-streamsmsg-handle-no-receivermsg-avoid-circular-messagesstore-use-define-itemstore-choose-storage-areastore-batch-operationsstore-watch-for-changesstore-handle-quota-errorsbundle-split-entrypointsbundle-analyze-sizebundle-tree-shake-iconsbundle-externalize-wasmbundle-minify-content-scriptsmanifest-minimal-permissionsmanifest-use-optional-permissionsmanifest-web-accessible-resourcesmanifest-content-security-policymanifest-cross-browser-compatibilityui-use-shadow-domui-defer-renderingui-cleanup-on-unmountui-sidepanel-persistenceui-position-fixed-iframeui-avoid-layout-thrashingts-use-browser-not-chromets-type-entrypoint-optionsts-augment-browser-typests-strict-null-checksts-import-meta-envts-avoid-anyts-path-aliases| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |