| react-doctor | patch |
|---|
Add the browser, debug, and mcp commands behind the unified /react-doctor skill. browser drives a real Chrome over CDP (attaching to your running session, launching a dedicated persistent profile only as a fallback): open a page, eval a Playwright expression, snapshot the accessibility tree, and screenshot. Adding --profile to eval records the whole runtime picture in one pass while the expression runs — console, network, performance (long animation frames with per-script attribution, LCP, CLS, plus a DevTools timeline roll-up of forced style-recalc/layout/hit-test/paint cost), an axe-core accessibility audit, a React render profile (slowest commits, hottest components by self time, unnecessary re-render counts), and a Chrome DevTools CPU profile via V8's sampling profiler over CDP (the hottest JS functions ranked by self time). It also writes the raw DevTools timeline trace to a file (--out, default react-doctor-trace.json) that loads in the DevTools Performance panel. debug runs an NDJSON logging server the debug job posts runtime evidence to. mcp runs a Model Context Protocol server over stdio that exposes the doctor scan and the browser/debug jobs as MCP tools, so any MCP-capable agent can run react-doctor mcp and call doctor_scan, the browser_* tools (browser_eval takes a profile: true argument that captures every signal together), and the debug_* log server directly.