/ogxo-debug:live-debugfrom ogxo-debug
Drives a real browser to debug web app runtime issues: broken layout, JS/hydration errors, failing API calls. Iteratively diagnoses and fixes source code, then verifies in the browser.
Ships in ogxo-debug. 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.
Drive a real browser, read what's actually happening in it, identify the root cause of a bug, fix it in the source code, and verify the fix — all in a tight token-cheap loop. This skill is for debugging running apps, not for writing test suites.
Use it when the user reports a runtime symptom in a web app:
Do NOT use this skill for:
| Skill | Purpose |
|---|---|
| live-debug (this skill) | Drive browser → diagnose → fix source code → verify |
| ogxo-debug:browser-testing | Write Playwright test scripts for E2E / accessibility / regression |
If the user wants to prevent the bug from coming back, finish this loop first, then suggest a regression test (the ogxo-debug:browser-testing skill).
Verify in order before the first browser call. When a check fails, tell the user rather than guessing: a missing dev server or missing source maps stops the loop, while a missing browser tool falls back as described under check 2.
Ask for the URL or probe common ports:
for port in 3000 5173 8080 4200 8000; do
curl -sf "http://localhost:$port" -o /dev/null && echo "$port up" || echo "$port down"
done
list_console_messages, list_network_requests). Separate install; its README has the setup command for each hostagent-browser — best token economy for interaction (snapshot -i, click @e3)agent-browser is availableIf a tool is missing, tell the user which one to install. Do not install packages globally without asking.
The steps below name actions: open a URL, snapshot interactive elements, click or fill, read console, read failed requests, screenshot. Use whichever browser tool the host provides. The agent-browser commands shown are one mapping, not a requirement. If no browser tool is available, say so, and debug from the dev-server terminal output and what the user copies from DevTools.
If errors come back without filenames + line numbers, ask the user to enable source maps before continuing. Debugging minified bundles burns context for no payoff.
Follow this loop in order. Do not skip to "fix" before "diagnose."
┌──────────────────────────┐
│ 1. OPEN + REPRODUCE │
│ navigate, walk steps │
└────────────┬─────────────┘
▼
┌──────────────────────────┐
│ 2. DIAGNOSE │
│ console + network + │
│ DOM snapshot + (vis) │
└────────────┬─────────────┘
▼
┌──────────────────────────┐
│ 3. HYPOTHESIZE │
│ locate source files │
└────────────┬─────────────┘
▼
┌──────────────────────────┐
│ 4. FIX │
│ minimal targeted edit │
└────────────┬─────────────┘
▼
┌──────────────────────────┐
│ 5. VERIFY │
│ re-run repro, confirm │
└────────────┬─────────────┘
│ not fixed?
└────► back to 2
agent-browser open http://localhost:3000/<route-with-bug>
agent-browser snapshot -i # interactive elements only — cheap
If the user described reproduction steps, walk them using @e1, @e2 refs from the snapshot:
agent-browser click @e3
agent-browser fill @e5 "[email protected]"
Read the cheapest signals first.
Console errors first — they usually point straight at the file and line.
list_console_messagesagent-browser get cdp-url and pipe console messages via the CDP endpoint, or ask the user to check the dev server terminal where HMR errors printNetwork failures next — anything non-2xx during the repro.
list_network_requests filtered to status >= 400DOM state — only when console + network were clean.
agent-browser get text @e3 for specific element contentagent-browser get styles @e3 for computed styles (layout bugs)agent-browser is visible @e3 / is enabled @e3 for state checksVisual snapshot — only when the bug is visual and text signals didn't explain it.
agent-browser screenshot ./bug.png then read the imageMap the symptom to source. Use the error's filename + line if you got one. Otherwise:
Make the smallest change that addresses the hypothesis. Resist refactoring. If the bug is in a 3-line render condition, fix those 3 lines.
One change per iteration. If you change more than one thing, you can't tell which fix worked.
Wait for HMR (1–3 seconds typically), then:
agent-browser open http://localhost:3000/<route-with-bug>
agent-browser snapshot -i
Re-run the original reproduction. Both conditions must hold:
"No console errors" alone is not enough.
If still broken: revert your edit, return to Step 2 with the new information. Do not stack a second fix on top of an unverified first fix.
| Symptom | Best tool | Why |
|---|---|---|
| JS console error | Chrome DevTools MCP list_console_messages | Structured stack traces |
| Failed API call | Chrome DevTools MCP list_network_requests | Status, headers, response body |
| Element missing/wrong | agent-browser snapshot -i | Cheap, structured |
| Layout/styling off | agent-browser screenshot + vision | Text trees miss visual issues |
| Slow page | Chrome DevTools MCP perf trace | Only tool with timing data |
| State after interaction | agent-browser get value/text | Targeted, ~50 tokens |
The point of this loop is to fit dozens of iterations in one context window. Defaults:
snapshot -i) to full snapshotsget text @e3) instead of re-snapshotting the whole pagestatus >= 400 rather than dumping all requestsagent-browser ... | grep -iE "error|warn"agent-browser closeIf iterations keep growing, you are re-snapshotting too much.
"My fix worked but the page still shows the old behavior."
HMR didn't fire or the page is cached. Force a hard reload (agent-browser open <url> again) or ask the user to restart the dev server.
"agent-browser commands hang."
The daemon may be stuck. Run agent-browser close then retry; if it still hangs, fall back to another browser tool.
"Auth wall blocks my repro." Use a persistent profile so the agent inherits the user's logged-in session. The Chrome profile path varies by OS; ask the user for it:
agent-browser --profile <chrome-profile-dir> open <url>
"Can't tell what changed between iterations." You're modifying too much per iteration. Make one change at a time and verify before stacking.
"The bug only repros sometimes."
Race condition. Add waits between actions (agent-browser wait <selector>) before re-snapshotting. Read the user's code for useEffect dependencies, missing awaits, or unmounted-component state updates.
"Console is clean, network is clean, but the UI is wrong." Likely a render-logic bug — wrong prop, wrong condition, missing key. Read the component source and trace data flow from the API response to the rendered output.
When the loop terminates successfully:
agent-browser closeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
live-debug, browser-debugging, runtime-errors, web-debugging
npx claudepluginhub ogxo-io/plugins --plugin ogxo-debug3 skills in this plugin
/browser-testingBrowser and web app testing with Playwright. Auto-detects dev servers; writes and runs E2E, accessibility, responsive-layout, form/login, and link-check scripts. Use when the user wants to test a website or web app or script a browser task; for diagnosing a live runtime bug use ogxo-debug:live-debug./css-alignment-debugUse when a CSS/HTML visual bug won't resolve from reading source — icon and text not lined up, element the wrong size, padding/margin off, sidebar overlapping main content, sticky/fixed element misplaced, a Vue/React/Svelte scoped style silently not applying, "my CSS edit isn't taking effect," or unsure an element is rendered where you think. Best after one round of reading the CSS hasn't revealed the cause.