/product-design:console-debuggingfrom product-design
Analyzes browser console messages (errors, warnings, logs) to debug JavaScript runtime issues, network failures, and security warnings using Chrome DevTools.
Ships in product-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Systematic approach to analyzing browser console messages using Chrome DevTools MCP.
| Type | Example | Typical Cause |
|---|---|---|
| JavaScript Error | Uncaught TypeError: Cannot read property 'x' of undefined | Null reference |
| Network Error | Failed to load resource: net::ERR_CONNECTION_REFUSED | API unavailable |
| CORS Error | Access-Control-Allow-Origin | Backend configuration |
| CSP Error | Content Security Policy | Security restriction |
| Syntax Error | SyntaxError: Unexpected token | Invalid JavaScript |
| Reference Error | ReferenceError: x is not defined | Undefined variable |
| Type | Example | Action |
|---|---|---|
| Deprecation | 'componentWillMount' is deprecated | Plan migration |
| Performance | Long task took 200ms | Optimize |
| Security | Insecure form submission | Fix HTTPS |
| Mixed Content | Mixed Content: loading HTTP on HTTPS | Update resource URLs |
| Type | Purpose |
|---|---|
| Debug output | Developer console.log statements |
| Library info | Framework initialization messages |
| Analytics | Tracking events |
| State changes | Application state updates |
Use Chrome DevTools MCP to list all console messages:
Tool: mcp__chrome-devtools__list_console_messages
Parameters: { "level": "error" } // or "warning", "info", "debug"
Start with errors, then warnings:
Categorize errors by their origin:
For JavaScript errors, analyze the stack trace:
Error: Cannot read property 'id' of undefined
at UserComponent.render (UserComponent.js:45)
at processChild (react-dom.js:1234)
at reconcileChildren (react-dom.js:5678)
Note when errors occur:
| Error | Cause | Fix |
|---|---|---|
Cannot read property 'x' of undefined | Accessing property on undefined | Add null check |
Cannot read property 'x' of null | Accessing property on null | Add null check |
x is not a function | Calling non-function as function | Check variable type |
Cannot set property 'x' of undefined | Setting property on undefined | Initialize object first |
| Error | Cause | Fix |
|---|---|---|
x is not defined | Using undefined variable | Declare variable or check spelling |
Cannot access 'x' before initialization | Temporal dead zone (let/const) | Move declaration above usage |
| Error | Cause | Fix |
|---|---|---|
Unexpected token | Invalid syntax | Check for missing brackets/quotes |
Unexpected identifier | Missing operator or keyword | Review line for typos |
| Error | Cause | Fix |
|---|---|---|
net::ERR_CONNECTION_REFUSED | Server not running | Start server or check URL |
net::ERR_NAME_NOT_RESOLVED | DNS failure | Check domain spelling |
net::ERR_CERT_AUTHORITY_INVALID | SSL certificate issue | Fix certificate or bypass in dev |
| Severity | Impact | Action Required |
|---|---|---|
| Critical | App crashes, data loss | Immediate fix |
| High | Feature broken | Fix before release |
| Medium | Degraded experience | Fix in next sprint |
| Low | Cosmetic issue | Track for later |
## Console Debugging Report
**URL**: [page URL]
**Date**: [timestamp]
**Browser**: [browser version]
### Summary
- Total Errors: X
- Total Warnings: Y
- Critical Issues: Z
### Critical Errors
| Error | Location | Frequency | Impact |
|-------|----------|-----------|--------|
| [error message] | [file:line] | [count] | [description] |
### Stack Trace Analysis
#### Error 1: [title]
**Message**: [full error message]
**Stack Trace**:
[stack trace]
**Root Cause**: [analysis]
**Suggested Fix**: [recommendation]
### Warnings to Address
| Warning | Source | Recommendation |
|---------|--------|----------------|
| [warning] | [source] | [action] |
### Next Steps
1. [prioritized action 1]
2. [prioritized action 2]
Console errors often correlate with network issues:
Use network-inspection skill alongside for comprehensive debugging.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jpoutrin/product-forge --plugin product-design43 skills in this plugin
/agent-toolsReference for configuring tool permissions when launching Claude Code agents. Use when setting up --allowedTools flags, restricting file access, or configuring agent permissions./brainstorm-solutionStructured brainstorming for technical solutions/browser-debugCapture browser console, network, and performance logs for debugging. Auto-loads when debugging browser issues, analyzing errors, or investigating page behavior. Provides systematic log capture workflow using Chrome DevTools MCP./create-personaCreate detailed user persona with guided questions/create-prdInteractive PRD creation wizard with comprehensive question flow/create-prd-featureCreate a feature-specific PRD (FRD) for individual featuresOther plugins' skills for the same job