Skillshub wxt-browser-extensions

Community WXT Browser Extensions Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/wxt-browser-extensions" ~/.claude/skills/comeonoliver-skillshub-wxt-browser-extensions && rm -rf "$T"
manifest: skills/pproenca/dot-skills/wxt-browser-extensions/SKILL.md
source content

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

PriorityCategoryImpactPrefix
1Service Worker LifecycleCRITICAL
svc-
2Content Script InjectionCRITICAL
inject-
3Messaging ArchitectureHIGH
msg-
4Storage PatternsHIGH
store-
5Bundle OptimizationMEDIUM-HIGH
bundle-
6Manifest ConfigurationMEDIUM
manifest-
7UI PerformanceMEDIUM
ui-
8TypeScript PatternsLOW-MEDIUM
ts-

Quick Reference

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)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information