Skip to content
Back to skills

Wxt Extension Debug

ASecurity

Debug WXT extensions in Chrome, Edge, Firefox, or macOS Safari. Use for browser-specific generated manifests, WXT watchers and hot reload, and stale content-script or background contexts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 29, 2026
developmentnodedebuggingbackend

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add oovz/plugins --skill wxt-extension-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wxt Extension Debug?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wxt Extension Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oovz-wxt-extension-debug/badge)](https://www.skillsdirectory.com/skills/oovz-wxt-extension-debug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wxt-extension-debug
description: Debug WXT extensions in Chrome, Edge, Firefox, or macOS Safari. Use for browser-specific generated manifests, WXT watchers and hot reload, and stale content-script or background contexts.
---

# WXT Extension Debugging

1. Identify the requested browser or browsers, the project's package manager, WXT version, scripts, and `wxt.config.*`. Use Chrome for an unspecified browser unless the project targets a different one. Run the project equivalent of `wxt -b <browser>` for live iteration or `wxt build -b <browser>` for a production reproduction. For macOS Safari, build the Safari output and load it manually. Read [WXT output and browser startup](references/wxt-notes.md) for browser configuration and HMR recovery.
2. Confirm the build directory reported by WXT. Use these helpers from this skill's directory if the output is ambiguous. Pass `--output <directory>` to select a known path, check `compatible: true`, and verify that the path belongs to the current command.

   ```sh
   node scripts/find-extension-build.mjs /absolute/path/to/project --browser firefox
   node scripts/inspect-extension.mjs /absolute/path/to/wxt-build
   ```

3. Inspect the generated manifest's action, side panel or sidebar, background entrypoint, and content-script match patterns relevant to the issue. Trace incorrect generated values to their WXT entrypoint, config, module, or build hook.
4. Use [the WXT browser notes](references/wxt-notes.md#load-the-generated-extension) to debug in the WXT browser or load into a dedicated session. When available, use `browser-extension-debug` to choose the backend and inspect browser-specific surfaces. For multiple browsers, record the WXT command, output, and browser separately.
5. Reproduce on a matching webpage and through the real toolbar or panel interaction when relevant. After editing, confirm WXT wrote the updated bundles. Reload the extension when HMR did not apply the change, refresh affected webpages to recreate content-script contexts, and reopen the surface. Replay the interaction and inspect the context that owns the behavior. For background lifecycle issues, trigger the normal browser event and observe recovery without a full extension reload.

Before reporting success, failure, or a blocker, stop any WXT watcher or other server started for the task and confirm its browser exited. Close other task-owned browser sessions using their backend's shutdown procedure. In a borrowed browser remove only test resources you added. Keep the watcher or browser running when the user explicitly asks. Report the build, surface exercised, result, and any incomplete cleanup for each browser.

Files in this skill

  • LICENSE1.1 KB
  • SKILL.md2.6 KB
  • references/wxt-notes.md2.6 KB
  • scripts/find-extension-build.mjs8.2 KB
  • scripts/inspect-extension.mjs3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.