mcpField
W
wxt-browser-extensions

wxt-browser-extensions

github.com/pproenca開発2181.1k 回インストール11 週間前に更新
リポジトリ

wxt-browser-extensions について

WXT 開発者向けのブラウザー拡張最適化ガイドです。WXT v0.20+ の開発に役立つ実践ルールを、影響度順にまとめています。

主な機能

  1. 018 分野の開発項目
  2. 02影響度順のルール
  3. 03サービスワーカーとコンテンツスクリプトの指針
  4. 04メッセージング、ストレージ、マニフェストの解説
  5. 05TypeScript の実践項目

活用シーン

  1. 01WXT ブラウザー拡張の開発
  2. 02サービスワーカーとコンテンツスクリプトの設定
  3. 03拡張コンテキスト間のメッセージ設計
  4. 04権限、ストレージ、バンドルサイズの見直し

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/pproenca/dot-skills --skill wxt-browser-extensions

インストール後、Claude Code で/wxt-browser-extensionsを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

metadata.json
README.md
assets/templates/
_template.md
references/
_sections.md
bundle-analyze-size.md
bundle-externalize-wasm.md
bundle-minify-content-scripts.md
bundle-split-entrypoints.md
bundle-tree-shake-icons.md
inject-all-frames.md
inject-choose-correct-world.md
inject-dynamic-registration.md
inject-run-at-timing.md
inject-spa-navigation.md
inject-use-ctx-invalidated.md
inject-use-main-function.md
manifest-content-security-policy.md
manifest-cross-browser-compatibility.md
manifest-minimal-permissions.md
manifest-use-optional-permissions.md
manifest-web-accessible-resources.md
msg-avoid-circular-messages.md
msg-handle-no-receiver.md
msg-return-true-for-async.md
msg-type-safe-messaging.md
msg-use-ports-for-streams.md
msg-use-tabs-sendmessage.md
store-batch-operations.md
store-choose-storage-area.md
store-handle-quota-errors.md

README(原文)English

プロジェクトの README より

この README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。

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 LifecycleCRITICALsvc-
2Content Script InjectionCRITICALinject-
3Messaging ArchitectureHIGHmsg-
4Storage PatternsHIGHstore-
5Bundle OptimizationMEDIUM-HIGHbundle-
6Manifest ConfigurationMEDIUMmanifest-
7UI PerformanceMEDIUMui-
8TypeScript PatternsLOW-MEDIUMts-

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

コメント