agent-browser-verify
Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass/fail before continuing.
- License 许可
- MIT
- 最近更新
- 2026-07-19
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- agent-browser-verify
- metadata
- { "docs": [ "https://openai.com/index/introducing-codex/" ], "priority": 2, "bashPatterns": [ "\\bnext\\s+dev\\b", "\\bnpm\\s+run\\s+dev\\b", "\\bpnpm\\s+dev\\b", "\\bbun\\s+run\\s+dev\\b", "\\byarn\\s+dev\\b", "\\bvite\\s*(dev)?\\b", "\\bnuxt\\s+dev\\b", "\\bvercel\\s+dev\\b" ], "pathPatterns": [], "promptSignals": { "allOf": [ [ "check", "page" ], [ "check", "browser" ], [ "check", "site" ], [ "blank", "page" ], [ "white", "screen" ], [ "console", "errors" ], [ "page", "broken" ], [ "page", "loading" ], [ "not", "rendering" ], [ "page", "stuck" ], [ "page", "hanging" ], [ "page", "frozen" ], [ "page", "timeout" ] ], "anyOf": [ "page", "browser", "screen", "rendering", "visual", "spinner", "loading" ], "phrases": [ "check the page", "check the browser", "check the site", "is the page working", "is it loading", "blank page", "white screen", "nothing showing", "page is broken", "screenshot the page", "take a screenshot", "check for errors", "console errors", "browser errors", "page is stuck", "page is hanging", "page not loading", "page frozen", "spinner not stopping", "page not responding", "page won't load", "page will not load", "nothing renders", "nothing rendered", "ui is broken", "screen is blank", "screen is white", "app won't load" ], "minScore": 6 } }
- description
- Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass/fail before continuing.
02 资源文件 1
- 参考文档agents/openai.yaml120 B
03 SKILL.md 正文
Dev Server Verification with agent-browser
You MUST verify the dev server with agent-browser after starting it. Do not assume the page works just because the dev server process started. Many issues (blank pages, hydration errors, missing env vars, broken imports) are only visible in the browser. Run this verification before continuing with any other work:
Quick Verification Flow
# 1. Open the dev server
agent-browser open http://localhost:3000
agent-browser wait --load networkidle
# 2. Screenshot for visual check
agent-browser screenshot --annotate
# 3. Check for errors
agent-browser eval 'JSON.stringify(window.__consoleErrors || [])'
# 4. Snapshot interactive elements
agent-browser snapshot -i
Verification Checklist
Run each check and report results:
- Page loads —
agent-browser opensucceeds without timeout - No blank page — snapshot shows meaningful content (not empty body)
- No error overlay — no Next.js/Vite error overlay detected
- Console errors — evaluate
document.querySelectorAll('[data-nextjs-dialog]')for error modals - Key elements render — snapshot
-ishows expected interactive elements - Navigation works — if multiple routes exist, verify at least the home route
Error Detection
# Check for framework error overlays
agent-browser eval 'document.querySelector("[data-nextjs-dialog], .vite-error-overlay, #webpack-dev-server-client-overlay") ? "ERROR_OVERLAY" : "OK"'
# Check page isn't blank
agent-browser eval 'document.body.innerText.trim().length > 0 ? "HAS_CONTENT" : "BLANK"'
On Failure
If verification fails:
- Screenshot the error state:
agent-browser screenshot error-state.png - Capture the error overlay text or console output
- Close the browser:
agent-browser close - Fix the issue in code
- Re-run verification (max 2 retry cycles to avoid infinite loops)
Diagnosing a Hanging or Stuck Page
When the page appears stuck (spinner, blank content after load, frozen UI), the browser is only half the story. Correlate what you see in the browser with server-side evidence:
1. Capture Browser Evidence
# Screenshot the stuck state
agent-browser screenshot stuck-state.png
# Check for pending network requests (XHR/fetch that never resolved)
agent-browser eval 'JSON.stringify(performance.getEntriesByType("resource").filter(r => r.duration === 0).map(r => r.name))'
# Check console for errors or warnings
agent-browser eval 'JSON.stringify(window.__consoleErrors || [])'
# Look for fetch calls to workflow/API routes that are pending
agent-browser eval 'document.querySelector("[data-nextjs-dialog]") ? "ERROR_OVERLAY" : "OK"'
2. Check Server Logs
After capturing browser state, immediately check the backend:
# Stream Vercel runtime logs for the deployment
vercel logs --follow
# If using Workflow DevKit, check run status
npx workflow inspect runs
npx workflow inspect run <run_id>
# Check workflow health
npx workflow health
3. Correlate Browser + Server
| Browser Shows | Server Shows | Likely Issue |
|---|---|---|
| Spinner / loading forever | No recent function invocations | API route not being called — check fetch URL in client code |
| Spinner / loading forever | Function started but no step logs | Workflow step is stuck — add console.log at step entry/exit |
| Blank page, no errors | Build succeeded, no runtime errors | Hydration issue or missing data — check SSR vs client rendering |
| Network request pending | 504 Gateway Timeout in logs | Function timeout — increase maxDuration or optimize step |
| Console: "Failed to fetch" | OIDC/credential error in logs | Missing vercel env pull — run vercel link && vercel env pull |
| Error overlay visible | Stack trace in runtime logs | Read the server error — it usually has more detail than the client |
4. Fix and Re-verify
After fixing the issue:
# Re-open and verify the fix
agent-browser open http://localhost:3000
agent-browser wait --load networkidle
agent-browser screenshot after-fix.png
agent-browser eval 'document.body.innerText.trim().length > 0 ? "HAS_CONTENT" : "BLANK"'
agent-browser close
On Success
agent-browser close
Report: "Dev server verified — page loads, no errors detected, key UI elements render correctly."
Suggest Verification After Implementation
When you finish building or implementing a feature (wrote code, created routes, set up a project), briefly let the user know they can ask you to verify everything works with a browser check. One sentence is enough. Don't force it if only a small fix or question was involved.
04 同仓库更多 Skills
Zotero
Use Zotero Desktop from Codex to enable/probe the local API, search a local Zotero library, list items/collections/tags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX/RIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.
zoom-apps-sdk
Use when using Apps SDK.
youtube
Obtain accurate, timestamped YouTube video transcripts (preferring manual captions over auto-generated) as the primary deliverable, then derive summaries, key claims, or notes from that transcript. Use when the user provides a YouTube URL (or video ID) and wants the transcript, a faithful summary, key claims with attribution, timestamped notes, or "what does this video actually say". The skill is transcript-first: never substitute metadata, title, description, or search snippets for the spoken content. Triggers: "youtube transcript", "get the transcript of this video", "summarize this youtube video", "what did they say in https://youtube.com/...", "key claims from this talk".
yeet
Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.
x-post-creator
Create X-ready post threads and co-located story packages from the active conversation or referenced project material. Use when the user says turn this into an X-post, /x-post, make this into an X thread, or wants plain-language social posts with supporting images saved to docs/x-posts/[story-name]/.
x-api
Search, read, and write X posts through the local X API MCP server (the same backend used by the Codex x-api skill). Use for searching X/x.com, reading threads and replies, creating lists, staging/publishing posts for @alltheputs, finding high-visibility reply targets for research outreach, ingesting public context, or any request that mentions /x-api or "search X".