Capture 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.
Install with Tessl CLI
npx tessl i github:jpoutrin/product-forge --skill browser-debug72
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Comprehensive browser log capture for AI-led debugging using Chrome DevTools MCP.
Works with any Chromium-based browser: Dia, Chrome, Edge, Brave, Opera, etc.
This skill auto-loads when:
✅ Supported Browsers (Chromium-based):
Why Chromium? These browsers all use the Chrome DevTools Protocol, which provides consistent debugging APIs across platforms.
Create timestamped session directory for organized log storage:
~/browser-logs/sessions/YYYYMMDD-HHMMSS-{page-description}/~/browser-logs/latest/ points to most recent session~/.claude/forge/config/browser-capture.yamlUse Chrome DevTools MCP to capture all console messages with filtering:
Error messages (critical):
mcp__plugin_product-design_chrome-devtools__list_console_messages(
pageIdx=0,
pageSize=100,
types=["error"],
includePreservedMessages=True # Last 3 navigations
)Warnings (important):
mcp__plugin_product-design_chrome-devtools__list_console_messages(
pageIdx=0,
pageSize=100,
types=["warn"],
includePreservedMessages=True
)All logs (context):
mcp__plugin_product-design_chrome-devtools__list_console_messages(
pageIdx=0,
pageSize=100,
types=["error", "warn", "info", "log", "debug"],
includePreservedMessages=True
)Output files:
console-error.log - Only errorsconsole-warn.log - Only warningsconsole-all.log - All console outputCapture network requests with filtering:
Failed requests (4xx, 5xx errors):
# List all requests first
mcp__plugin_product-design_chrome-devtools__list_network_requests(
pageIdx=0,
pageSize=100,
resourceTypes=["xhr", "fetch", "document"], # Exclude static assets
includePreservedRequests=False
)
# Then filter for failures (status >= 400)XHR/Fetch API calls:
mcp__plugin_product-design_chrome-devtools__list_network_requests(
pageIdx=0,
pageSize=100,
resourceTypes=["xhr", "fetch"],
includePreservedRequests=False
)Get detailed request data:
mcp__plugin_product-design_chrome-devtools__get_network_request(
reqid=67890,
responseFilePath="/path/to/session/response-67890.json",
requestFilePath="/path/to/session/request-67890.json"
)Output files:
network-errors.log - Failed requests onlynetwork-all.log - All network activitynetwork-detail.json - Full request/response dataFor performance debugging, capture trace data:
# Start performance tracing
mcp__plugin_product-design_chrome-devtools__performance_start_trace(
reload=False, # Capture current session
autoStop=False
)
# ... perform operations ...
# Stop and save trace
mcp__plugin_product-design_chrome-devtools__performance_stop_trace(
filePath="/path/to/session/performance-trace.json.gz"
)Output file:
performance-trace.json.gz - Chrome DevTools-compatible traceGenerate debugging report with findings and recommendations:
For automated capture, use the forge browser-capture command:
# Capture everything
forge browser-capture --page "Dashboard" --all
# Capture only console errors
forge browser-capture --console --errors-only
# Capture network requests (exclude static resources)
forge browser-capture --network --exclude-static
# Custom output directory
forge browser-capture --page "Login Flow" --output ./test-logs --allCommand options:
--page - Page description for session naming--console - Capture console messages only--network - Capture network requests only--performance - Capture performance trace only--all - Capture all logs (default)--output - Custom output directory--exclude-static - Exclude images, fonts, stylesheets--errors-only - Only capture errors and warningsThis skill complements other Product Forge debugging skills:
When to use: Deep analysis of console error messages
/console-debugging after capturing logsWhen to use: Detailed network request investigation
/network-inspection after capturing network logsWhen to use: Complex multi-layer debugging across frontend/backend
/debug-orchestrator to coordinate browser + backend debuggingConfig file: ~/.claude/forge/config/browser-capture.yaml
Auto-created on first run with sensible defaults:
output_dir: ~/browser-logs
console:
levels: [error, warn, info, log]
include_preserved: true # Last 3 navigations
network:
exclude_types: [image, font, stylesheet, media]
save_errors_separately: true
capture_bodies: false
performance:
enabled: false # Enable on-demand
duration_seconds: 10
filters:
exclude_urls:
- "*.map"
- "*analytics*"
- "*tracking*"
exclude_console_patterns:
- "Download the React DevTools"
output:
create_symlink: true # Create 'latest' symlink
max_sessions: 50 # Future: auto-cleanupCustomization:
~/.claude/forge/config/browser-capture.yamlforge browser-capture --console --errors-onlyconsole-error.logforge browser-capture --network --exclude-staticnetwork-errors.log for failed requestsnetwork-detail.json for request/response detailsforge browser-capture --page "Slow Page" --performanceperformance-trace.json.gz)forge browser-capture --page "Full Debug Session" --all--page "User Login Flow" not --page "page1"archive/ folder after investigationProblem: MCP tools timeout or return empty results
Solutions:
Problem: Sessions with thousands of messages are slow
Solutions:
--errors-only to capture critical messages--exclude-static for network logsProblem: Logs may contain tokens, passwords, PII
Solutions:
filters.exclude_console_patternscapture_bodies: false in config to exclude request/response bodiesProblem: pyyaml module not found
Solutions:
cd /Users/jeremiepoutrin/projects/github/jpoutrin/product-forge
uv pip install -e .After running forge browser-capture --page "Dashboard" --all:
Capturing console logs...
Capturing network logs...
Capturing performance trace...
✅ Browser logs captured successfully!
📁 Session: /Users/jeremiepoutrin/browser-logs/sessions/20260218-143022-Dashboard/
✓ console messages: 47
✓ network requests: 23
✓ performance trace saved
💡 Use browser-debug skill for automated analysisSession directory structure:
20260218-143022-Dashboard/
├── console-error.log # 3 errors
├── console-warn.log # 12 warnings
├── console-all.log # 47 total messages
├── network-errors.log # 2 failed requests
├── network-all.log # 23 requests
├── network-detail.json # Full request data
└── performance-trace.json.gz # Performance profileVersion: 1.0.0 Last Updated: 2026-02-18 Maintainer: Product Forge Team
0ebe7ae
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.