Individual skill
wxt-browser-extensions
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.
skills/.experimental/wxt-browser-extensions/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- writing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 3,961 bytesSKILL.mdcore · 7,680 bytesassets/templates/_template.mddoc · 861 bytesmetadata.jsonasset · 1,064 bytesreferences/_sections.mddoc · 2,004 bytesreferences/bundle-analyze-size.mddoc · 1,596 bytesreferences/bundle-externalize-wasm.mddoc · 1,876 bytesreferences/bundle-minify-content-scripts.mddoc · 2,120 bytesreferences/bundle-split-entrypoints.mddoc · 1,641 bytesreferences/bundle-tree-shake-icons.mddoc · 1,454 bytesreferences/inject-all-frames.mddoc · 1,745 bytesreferences/inject-choose-correct-world.mddoc · 1,859 bytesreferences/inject-dynamic-registration.mddoc · 1,939 bytesreferences/inject-run-at-timing.mddoc · 2,077 bytesreferences/inject-spa-navigation.mddoc · 2,543 bytesreferences/inject-use-ctx-invalidated.mddoc · 1,939 bytesreferences/inject-use-main-function.mddoc · 1,241 bytesreferences/manifest-content-security-policy.mddoc · 1,777 bytesreferences/manifest-cross-browser-compatibility.mddoc · 2,138 bytesreferences/manifest-minimal-permissions.mddoc · 1,795 bytesreferences/manifest-use-optional-permissions.mddoc · 1,723 bytesreferences/manifest-web-accessible-resources.mddoc · 1,895 bytesreferences/msg-avoid-circular-messages.mddoc · 2,160 bytesreferences/msg-handle-no-receiver.mddoc · 2,226 bytesreferences/msg-return-true-for-async.mddoc · 2,103 bytesreferences/msg-type-safe-messaging.mddoc · 2,546 bytesreferences/msg-use-ports-for-streams.mddoc · 2,244 bytesreferences/msg-use-tabs-sendmessage.mddoc · 1,860 bytesreferences/store-batch-operations.mddoc · 2,275 bytesreferences/store-choose-storage-area.mddoc · 1,865 bytesreferences/store-handle-quota-errors.mddoc · 1,997 bytesreferences/store-use-define-item.mddoc · 2,577 bytesreferences/store-versioned-migrations.mddoc · 2,445 bytesreferences/store-watch-for-changes.mddoc · 1,714 bytesreferences/svc-avoid-global-state.mddoc · 1,281 bytesreferences/svc-declarative-net-request.mddoc · 1,930 bytesreferences/svc-handle-install-update.mddoc · 1,930 bytesreferences/svc-keep-alive-patterns.mddoc · 2,740 bytesreferences/svc-offscreen-documents.mddoc · 2,331 bytesreferences/svc-register-listeners-synchronously.mddoc · 1,450 bytesreferences/ts-augment-browser-types.mddoc · 2,101 bytesreferences/ts-avoid-any.mddoc · 2,062 bytesreferences/ts-import-meta-env.mddoc · 2,045 bytesreferences/ts-path-aliases.mddoc · 1,794 bytesreferences/ts-strict-null-checks.mddoc · 1,714 bytesreferences/ts-type-entrypoint-options.mddoc · 1,506 bytesreferences/ts-use-browser-not-chrome.mddoc · 1,910 bytesreferences/ts-use-imports-module.mddoc · 2,271 bytesreferences/ui-avoid-layout-thrashing.mddoc · 2,247 bytesreferences/ui-cleanup-on-unmount.mddoc · 2,825 bytesreferences/ui-defer-rendering.mddoc · 1,906 bytesreferences/ui-position-fixed-iframe.mddoc · 2,324 bytesreferences/ui-sidepanel-persistence.mddoc · 2,206 bytesreferences/ui-use-shadow-dom.mddoc · 2,445 bytes
Read excerpt
# Community WXT Browser Extensions Best Practices
Comprehensive performance optimization guide for WXT browser extension development. Contains 49 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation. Updated for WXT v0.20+.
## When to Apply
Reference these guidelines when:
- Writing new WXT browser extension code
- Implementing service worker background scripts
- Injecting content scripts into web pages
- Setting up messaging between extension contexts
- Configuring manifest permissions and resources
## Rule Categories by Priority