wxt-browser-extensions
WXT browser extension performance optimization guidelines.
Skill by pproenca
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/pproenca-wxt-browser-extensions
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/wxt-browser-extensions
What's inside
- Skill name
wxt-browser-extensions- Description
- 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.
- License
- MIT
- Instructions
- 117 lines in SKILL.md · view on GitHub
Files (54)
- README.md
- SKILL.md
- _template.md · assets/templates/
- metadata.json
- _sections.md · references/
- bundle-analyze-size.md · references/
- bundle-externalize-wasm.md · references/
- bundle-minify-content-scripts.md · references/
- bundle-split-entrypoints.md · references/
- bundle-tree-shake-icons.md · references/
- inject-all-frames.md · references/
- inject-choose-correct-world.md · references/
- inject-dynamic-registration.md · references/
- inject-run-at-timing.md · references/
- inject-spa-navigation.md · references/
- inject-use-ctx-invalidated.md · references/
- inject-use-main-function.md · references/
- manifest-content-security-policy.md · references/
- manifest-cross-browser-compatibility.md · references/
- manifest-minimal-permissions.md · references/
- manifest-use-optional-permissions.md · references/
- manifest-web-accessible-resources.md · references/
- msg-avoid-circular-messages.md · references/
- msg-handle-no-receiver.md · references/
- msg-return-true-for-async.md · references/
- msg-type-safe-messaging.md · references/
- msg-use-ports-for-streams.md · references/
- msg-use-tabs-sendmessage.md · references/
- store-batch-operations.md · references/
- store-choose-storage-area.md · references/
- store-handle-quota-errors.md · references/
- store-use-define-item.md · references/
- store-versioned-migrations.md · references/
- store-watch-for-changes.md · references/
- svc-avoid-global-state.md · references/
- svc-declarative-net-request.md · references/
- svc-handle-install-update.md · references/
- svc-keep-alive-patterns.md · references/
- svc-offscreen-documents.md · references/
- svc-register-listeners-synchronously.md · references/
- ts-augment-browser-types.md · references/
- ts-avoid-any.md · references/
- ts-import-meta-env.md · references/
- ts-path-aliases.md · references/
- ts-strict-null-checks.md · references/
- ts-type-entrypoint-options.md · references/
- ts-use-browser-not-chrome.md · references/
- ts-use-imports-module.md · references/
- ui-avoid-layout-thrashing.md · references/
- ui-cleanup-on-unmount.md · references/
- ui-defer-rendering.md · references/
- ui-position-fixed-iframe.md · references/
- ui-sidepanel-persistence.md · references/
- ui-use-shadow-dom.md · references/
SKILL.md (first lines)
# 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 | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Service Worker Lifecycle | CRITICAL | `svc-` | | 2 | Content Script Injection | CRITICAL | `inject-` | | 3 | Messaging Architecture | HIGH | `msg-` | | 4 | Storage Patterns | HIGH | `store-` | | 5 | Bundle Optimization | MEDIUM-HIGH | `bundle-` | | 6 | Manifest Configuration | MEDIUM | `manifest-` | | 7 | UI Performance | MEDIUM | `ui-` | | 8 | TypeScript Patterns | LOW-MEDIUM | `ts-` | ## Quick Reference ### 1. Service Worker Lifecycle (CRITICAL) - [`svc-register-listeners-synchronously`](references/svc-register-listeners-synchronously.md) - Register listeners synchronously to prevent missed events - [`svc-avoid-global-state`](references/svc-avoid-global-state.md) - Use storage instead of in-memory state - [`svc-keep-alive-patterns`](references/svc-keep-alive-patterns.md) - Keep service worker alive for long operations - [`svc-handle-install-update`](references/svc-handle-install-update.md) - Handle install and update lifecycle events - [`svc-offscreen-documents`](references/svc-offscreen-documents.md) - Use offscreen documents for DOM operations - [`svc-declarative-net-request`](references/svc-declarative-net-request.md) - Use declarative rules for network blocking ### 2. Content Script Injection (CRITICAL) - [`inject-use-main-function`](references/inject-use-main-function.md) - Place runtime code inside main() function - [`inject-choose-correct-world`](references/inject-choose-correct-world.md) - Select ISOLATED or MAIN world appropriately - [`inject-run-at-timing`](references/inject-run-at-timing.md) - Configure appropriate runAt timing - [`inject-use-ctx-invalidated`](references/inject-use-ctx-invalidated.md) - Handle context invalidation on update - [`inject-dynamic-registration`](references/inject-dynamic-registration.md) - Use runtime registration for conditional injection - [`inject-all-frames`](references/inject-all-frames.md) - Configure allFrames for iframe handling - [`inject-spa-navigation`](references/inject-spa-navigation.md) - Handle SPA navigation with wxt:locationchange ### 3. Messaging Architecture (HIGH) - [`msg-type-safe-messaging`](references/msg-type-safe-messaging.md) - Use @webext-core/messaging for type-safe protocols - [`msg-return-true-for-async`](references/msg-return-true-for-async.md) - Return true for async message handlers (raw API) - [`msg-use-tabs-sendmessage`](references/msg-use-tabs-sendmessage.md) - Use tabs.sendMessage for content scripts - [`msg-use-ports-for-streams`](references/msg-use-ports-for-streams.md) - Use ports for streaming communication - [`msg-handle-no-receiver`](references/msg-handle-no-receiver.md) - Handle missing message receivers - [`msg-avoid-circular-messages`](references/msg-avoid-circular-messages.md) - Prevent circular message loops ### 4. Storage Patterns (HIGH) - [`store-use-define-item`](references/store-use-define-item.md) - Use storage.defineItem for type-safe access - [`store-choose-storage-area`](references/store-choose-storage-area.md) - Select appropriate storage area - [`store-batch-operations`](references/store-batch-operations.md) - Group related data into single defineItem - [`store-watch-for-changes`](references/store-watch-for-changes.md) - Use watch() for reactive updates - [`store-handle-quota-errors`](references/store-handle-quota-errors.md) - Handle storage quota errors - [`store-versioned-migrations`](references/store-versioned-migrations.md) - Use versioning for schema migrations ### 5. Bundle Optimization (MEDIUM-HIGH) - [`bundle-split-entrypoints`](references/bundle-split-entrypoints.md) - Split code by entrypoint - [`bundle-analyze-size`](references/bundle-analyze-size.md) - Analyze and monitor bundle size - [`bundle-tree-shake-icons`](references/bundle-tree-shake-icons.md) - Use direct imports for icon libraries - [`bundle-externalize-wasm`](references/bundle-externalize-wasm.md) - Load WASM dynamically - [`bundle-minify-content-scripts`](references/bundle-minify-content-scripts.md) - Minimize content script size ### 6. Manifest Configuration (MEDIUM) - [`manifest-minimal-permissions`](references/manifest-minimal-permissions.md) - Request minimal permissions - [`manifest-use-optional-permissions`](references/manifest-use-optional-permissions.md) - Use optional permissions progressively - [`manifest-web-accessible-resources`](references/manifest-web-accessible-resources.md) - Scope web accessible resources - [`manifest-content-security-policy`](references/manifest-content-security-policy.md) - Configure CSP correctly - [`manifest-cross-browser-compatibility`](references/manifest-cross-browser-compatibility.md) - Support multiple browsers ### 7. UI Performance (MEDIUM) - [`ui-use-shadow-dom`](references/ui-use-shadow-dom.md) - Use Shadow DOM for injected UI - [`ui-defer-rendering`](references/ui-defer-rendering.md) - Defer popup rendering until needed - [`ui-cleanup-on-unmount`](references/ui-cleanup-on-unmount.md) - Clean up UI on unmount - [`ui-sidepanel-persistence`](references/ui-sidepanel-persistence.md) - Preserve sidepanel state - [`ui-position-fixed-iframe`](references/ui-position-fixed-iframe.md) - Use iframe for complex UI - [`ui-avoid-layout-thrashing`](references/ui-avoid-layout-thrashing.md) - Batch DOM reads and writes ### 8. TypeScript Patterns (LOW-MEDIUM) - [`ts-use-imports-module`](references/ts-use-imports-module.md) - Use #imports virtual module and auto-imports - [`ts-use-browser-not-chrome`](references/ts-use-browser-not-chrome.md) - Use browser namespace over chrome - [`ts-type-entrypoint-options`](references/ts-type-entrypoint-options.md) - Type entrypoint options explicitly - [`ts-augment-browser-types`](references/ts-augment-browser-types.md) - Augment types for missing APIs - [`ts-strict-null-checks`](references/ts-strict-null-checks.md) - Enable strict null checks - [`ts-import-meta-env`](references/ts-import-meta-env.md) - Use import.meta for build info - [`ts-avoid-any`](references/ts-avoid-any.md) - Avoid any type in handlers - [`ts-path-aliases`](references/ts-path-aliases.md) - Use path aliases for imports ## How to Use Read individual reference files for detailed explanations and code examples: - [Section definitions](references/_sections.md) - Category structure and impact levels - [Rule template](assets/templates/_template.md) - Template for adding new rules ## Reference Files | File | Description | |------|-------------| | [references/_sections.md](references/_sections.md) | Category definitions and ordering | | [assets/templates/_template.md](assets/templates/_template.md) | Template for new rules | | [metadata.json](metadata.json) | Version and reference information |
From pproenca/dot-skills, MIT.
More from pproenca/dot-skills
- 0.694score
tanstack-query
community
TanStack Query v5 performance optimization for data fetching, caching, mutations, and query patterns.
SkillCFreshness: C★ 218Claude Code +9 - 0.596score
mlflow-3
pproenca
MLflow 3 (open-source, pinned to 3.15) for classic-ML MLOps — logging and registering models, promoting versions across dev/staging/prod, standing up a…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
ray
pproenca
Production Ray (open-source, pinned to 2.57) for classic-ML workloads from training to serving — Ray Train, Tune, Data, Serve, Core, and cluster deployment on…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
mlflow-mlops-migration
pproenca
Guided workflow for taking any ML codebase — including one with no experiment tracking at all, or one full of MLflow 2-era idioms — to a production-grade…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
ray-llm
pproenca
LLM workloads on open-source Ray (pinned to 2.57) — OpenAI-compatible serving with ray.serve.llm (vLLM-backed LLMConfig + build_openai_app) and batch…
SkillBFreshness: B★ 218Claude Code +9 - 0.550score
expo-ui
pproenca
Library reference for @expo/ui SwiftUI components on iOS — covers Host boundaries, modifier composition, iOS 26 Liquid Glass and Human Interface Guidelines…
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
debug
pproenca
Comprehensive debugging methodology for finding and fixing bugs (formerly debugging).
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
bug-review
pproenca
Use this skill when a user asks to review a pull request for bugs, wants AI code review focused on correctness issues, or runs /bug-review.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
ios-taste
pproenca
Designs iOS 18+ SwiftUI experiences with real taste — starting from user goals, not pixels.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
implementation-functional-patterns
pproenca
TypeScript's functional answers to the 22 Gang of Four classes — factory functions (Factory Method, Abstract Factory, Prototype, Memento), module-scope…
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
expo
pproenca
Expo React Native performance optimization guidelines.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
deterministic-metric-design
pproenca
Inventing deterministic metrics — turning a fuzzy property like 'maintainability', 'risk', or 'how reducible this code is' into a deterministic, computable…
SkillCFreshness: C★ 218Claude Code +9
Signals
- Stars
- 218
- Forks
- 19
- Open issues
- 3
- Last commit (this folder)
- May 27, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/pproenca/dot-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from pproenca
- 0.596score
ray-llm
pproenca
LLM workloads on open-source Ray (pinned to 2.57) — OpenAI-compatible serving with ray.serve.llm (vLLM-backed LLMConfig + build_openai_app) and batch…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
mlflow-mlops-migration
pproenca
Guided workflow for taking any ML codebase — including one with no experiment tracking at all, or one full of MLflow 2-era idioms — to a production-grade…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
mlflow-3
pproenca
MLflow 3 (open-source, pinned to 3.15) for classic-ML MLOps — logging and registering models, promoting versions across dev/staging/prod, standing up a…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
ray
pproenca
Production Ray (open-source, pinned to 2.57) for classic-ML workloads from training to serving — Ray Train, Tune, Data, Serve, Core, and cluster deployment on…
SkillBFreshness: B★ 218Claude Code +9 - 0.550score
expo
pproenca
Expo React Native performance optimization guidelines.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
debug
pproenca
Comprehensive debugging methodology for finding and fixing bugs (formerly debugging).
SkillCFreshness: C★ 218Claude Code +9
Cite this page
wxt-browser-extensions skill. Agent Mart. https://agentmart.dev/skills/pproenca-wxt-browser-extensions (last updated 2026-10-24)