Browser extensions can be fast and efficient when built with the right patterns. This guide helps you write WXT browser extension code that runs smoothly. It covers service workers, content scripts, messaging, and storage.
You will learn how to avoid common mistakes that slow down your extension. The rules are grouped by importance from critical to low. Follow them to make your extension reliable and quick for users.
Whether you are new to WXT or have experience, these tips will improve your code. They apply to new projects and existing ones you want to optimize.
Global
mkdir -p ~/.claude/skills/wxt-browser-extensionsProject
mkdir -p .claude/skills/wxt-browser-extensionsSource Repository
Frontend Designanthropics/skills
Create striking frontend interfaces with bold design and polished code every time
Vercel React Best Practicesvercel-labs/agent-skills
Optimize React and Next.js apps using proven Vercel performance guidelines
Design Taste Frontendleonxlnx/taste-skill
Enforce premium frontend design with metric-based rules and smart component architecture
Vercel Composition Patternsvercel-labs/agent-skills
Clean React components with composition instead of boolean props
Shadcnshadcn/ui
Manage shadcn UI components easily with CLI commands and clear styling rules
Impeccablepbakaus/impeccable
Polish your frontend interfaces with expert design critique and code
Minimalist Uileonxlnx/taste-skill
Build warm minimal web interfaces with editorial typography and flat bento grids
Industrial Brutalist Uileonxlnx/taste-skill
Raw mechanical UIs fusing Swiss print with military terminal aesthetics and high data density