extension-errors-debugging

Diagnose and triage browser extension errors across MV3 and MV2 using stack traces and environment data.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MajorLift/metamask-extension-skills --skill extension-errors-debugging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extension-errors-debugging
Source: https://github.com/MajorLift/metamask-extension-skills/tree/main/domains/platform/skills/extension-errors-debugging
Command: npx skills add https://github.com/MajorLift/metamask-extension-skills --skill extension-errors-debugging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnosing and triaging browser extension errors that differ between MV3 and MV2, including background vs UI contexts, so you can pinpoint root causes efficiently.

Core Features & Use Cases

  • Map stack traces to precise code paths under app/scripts/ and ui/pages/ to locate failing modules.
  • Distinguish MV3 service-worker lifecycle issues from MV2 background behavior and identify latency or keepalive problems.
  • Use environment signals (dist/installType) and logs to reproduce and categorize errors for faster resolution.
  • Provide concrete root-cause hypotheses and recommended remediation steps for engineering teams.

Quick Start

Provide a representative error report including manifest version, context (MV3 or MV2), and a stack trace to begin debugging.

Frequently Asked Questions about extension-errors-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug browser extension errors across MV3 and MV2?

Diagnosing extension errors involves interpreting stack traces, context, and environment data to pinpoint failures in background or UI contexts. It maps errors to specific code paths under app/scripts/ and ui/pages/ to locate failing modules quickly.

Why does my MV3 service worker throw background errors while MV2 does not?

MV3 service-worker lifecycle issues cause background errors distinct from MV2 background behavior, often involving latency or keepalive problems. Diagnosing these extension errors requires mapping the stack trace to identify whether the service worker is unexpectedly terminating or failing to wake.

How do I trace an extension stack trace to the exact failing module?

Tracing an extension stack trace involves mapping the trace lines to precise code paths under app/scripts/ and ui/pages/ directories. This locates the failing module by correlating the stack frames with your specific project structure and environment data.

Can I use Sentry logs and installType filters to reproduce extension errors?

Yes, you can use Sentry logs and dist/installType filters to reproduce extension errors. Analyzing these environment signals allows you to categorize errors and replicate the exact production-like configuration needed to isolate the root cause effectively.

What context information do I need to start diagnosing an extension error?

To start diagnosing an extension error, you need the manifest version, the execution context (MV3 or MV2), and a representative stack trace. Including dist and installType environment signals further ensures accurate reproduction and categorization of the issue.