frontend-error-diagnose

Diagnose frontend errors by reproducing them with browser MCP and collecting console, network, and stack evidence.

1|Updated Sep 11, 2026
One-click install
npx skills add https://github.com/lldwb/lldwb-claude-skills --skill frontend-error-diagnose-lldwb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-error-diagnose
Source: https://github.com/lldwb/lldwb-claude-skills/tree/main/skills/frontend-error-diagnose
Command: npx skills add https://github.com/lldwb/lldwb-claude-skills --skill frontend-error-diagnose-lldwb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Frontend errors reported from APM platforms, browser consoles, or users (white screens, 4xx/5xx API failures, CORS issues, resource load failures) are often diagnosed by guessing from the error text alone. This Skill enforces an evidence-first workflow: reproduce the error in a real browser via browser MCP, collect console stacks, failed requests, and screenshots, then deliver an auditable root cause and actionable fix plan without modifying any code. ## Core Features & Use Cases - Reproduce and collect evidence: Drive Chrome DevTools MCP or Playwright MCP to open the page, trigger the error, and capture console stacks, failed network requests, DOM snapshots, and screenshots, all saved to disk for audit. - Structured conclusion output: Produce a fixed five-section report (symptom, evidence, root cause, fix plan, impact and regression points) where every claim links back to concrete evidence. - Header-rewriting forensics: When an API works via curl but fails in the browser with 403/401, run curl comparison experiments and inspect extension DNR rules on disk to find which browser extension or proxy rewrote the request headers. - Graceful degradation: When reproduction is impossible, follow a three-tier fallback (switch environment, request HAR/console exports, or give ranked possibilities) instead of silently skipping. - Use Case: A monitoring platform reports a spike of TypeError: Cannot read properties of undefined on the checkout page. Use this Skill to reproduce the error in a browser, trace the stack through sourcemaps to the source file, confirm the API response shape mismatch, and output a fix plan with exact file and line references. ## Quick Start Use the frontend-error-diagnose skill to reproduce this console error in the browser, collect the evidence, and tell me the root cause and fix plan without changing any code.

Frequently Asked Questions about frontend-error-diagnose

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

FAQPage Schema
How do I diagnose a frontend JavaScript error with browser MCP?

Reproduce the error by opening the page with Chrome DevTools MCP or Playwright MCP and following the reported action path. Collect the console error with its full stack, failed network requests, and a screenshot, then trace the stack through sourcemaps to the source file and line.

How to find the root cause of API 403 or 401 errors that only happen in the browser?

Run a curl comparison experiment: replay the failing request with its exact headers versus a same-origin Origin header. If the first fails and the second passes, a browser extension or proxy is rewriting headers; inspect extension DNR rules under the browser profile's DNR Extension Rules directory on disk.

Chrome DevTools MCP vs Playwright MCP for error reproduction?

Both provide equivalent capabilities: page navigation, console message capture, network request inspection, screenshots, and JavaScript evaluation. The Skill includes a capability mapping table so either tool works; use whichever browser MCP is installed in your environment.

What should I do when a frontend error cannot be reproduced?

Follow the three-tier degradation: first try a different environment, account, or dataset; then request the console error text, stack, and a HAR export from the user; finally state clearly that it was not reproduced and give only a ranked list of possibilities with next evidence steps.

Does this Skill fix the frontend code after diagnosing the error?

No, it only diagnoses and never modifies code. The output is an auditable conclusion with a fix plan specifying which file to change and how; when the user requests the actual fix, the workflow hands off to the bug-fix skill.

Why does sourcemap version matter when reading APM error stacks?

APM-reported stacks are minified, so they must be mapped back with the sourcemap of the exact same build version. A mismatched version shifts line numbers and points to the wrong source location.