From codebrain
Browser-based verification of UI changes. Checks that pages load, elements render correctly, no console errors. Triggers after dev server start or accumulated UI file changes. Use when visual verification is needed — blank pages, broken layouts, missing elements.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codebrain:browser-verifyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Browser-based visual verification for UI changes. Quick gut-check that pages load, render correctly, and have no console errors.
Browser-based visual verification for UI changes. Quick gut-check that pages load, render correctly, and have no console errors.
/codebrain:browser-verify [url]
npm run dev, next dev, vite)Look for a running dev server:
# Quick port check
curl -sI http://localhost:3000 --max-time 3 2>/dev/null | head -1
curl -sI http://localhost:5173 --max-time 3 2>/dev/null | head -1
<title><main> elementalt attributesIf agent-browser is installed, use it for automated verification:
# Navigate to page and take screenshot
agent-browser navigate http://localhost:3000
# Check for console errors
agent-browser console-errors
# Take screenshot for visual verification
agent-browser screenshot
If agent-browser is not available, use manual curl checks and ask the user to verify visually.
| Symptom | Likely Cause | Fix |
|---|---|---|
| Blank page | Client-side error crashing React | Check browser console for errors |
| White screen of death | Build error in production | Run npm run build to check |
| Hydration mismatch | Server/client HTML differs | Check for typeof window guards |
| Missing styles | CSS not loading | Check import paths, Tailwind config |
| Broken layout | CSS changes broke grid/flex | Compare with previous state |
| Font not loading | next/font config error | Check font variable names in layout |
| 404 on assets | Wrong public path | Check basePath in next.config |
| CORS error | API route misconfigured | Check API response headers |
## Browser Verification Report
**URL:** [checked URL]
**Date:** [ISO date]
**Status:** PASS | FAIL
### Checklist
| Check | Status | Notes |
|-------|--------|-------|
| Page loads | PASS/FAIL | [response time, status code] |
| No console errors | PASS/FAIL | [error count, key errors] |
| Key elements render | PASS/FAIL | [what's missing] |
| Interactive elements | PASS/FAIL | [what's broken] |
| Accessibility | PASS/FAIL | [issues found] |
### Issues Found
| # | Severity | Description | File:Line |
|---|----------|-------------|-----------|
| 1 | ... | ... | ... |
/codebrain:observe — server not responding at all/codebrain:debug — specific JavaScript error identified/codebrain:investigate — intermittent rendering issuesnpx claudepluginhub chrsmay/codebrain-plugin --plugin codebrainVerifies browser-rendered HTML, UI, visual docs, presentations, local apps, and browser-facing changes in a real browser. Checks layout, responsiveness, overflow, console errors, and network issues.
Verifies frontend UI changes by auto-detecting local Next.js/Hono servers via git diff analysis, navigating pages, testing interactions/APIs/errors, and performance traces with Chrome DevTools.
Tests and debugs browser apps using Chrome DevTools MCP to inspect DOM, capture console errors, analyze network requests, profile performance, and verify visuals.