Browser check

From xoai/sage · View interactive version

Browser check is an AI agent skill from the GitHub repository xoai/sage. Quick browser smoke test via Lightpanda MCP. Checks if the primary affected route renders, has no JS errors, and contains expected elements. Advisory only — never blocks. Invisible when Lightpanda is not available or no frontend files in diff.

How to use this skill

Skill file

<!-- sage-metadata

cost-tier: sonnet

activation: auto

tags: [verification, browser, qa, smoke-test]

inputs: [url, diff]

outputs: [pass-fail]

requires: []

-->

Browser Check (Light Mode)

Quick smoke test within quality-gates. Catches catastrophic failures:

page doesn't load, JS errors, blank screen, missing key elements.

Availability Check

FIRST: Check if Lightpanda MCP tools are in the agent's tool list.

If Lightpanda MCP is NOT available:

If the change does NOT touch frontend/user-facing code:

If no running URL is known:

When All Conditions Met

Time budget: 30 seconds max. One page load, three tool calls.

Step 1: Navigate

Use goto to load the primary affected route.

If Lightpanda doesn't respond within 10 seconds, skip with timeout note.

Step 2: Check for Catastrophic Failures

  1. evaluate: check for JS console errors (uncaught exceptions)
  2. markdown: verify page has non-empty content (not blank/error)
  3. semantic_tree: verify expected key elements exist (based on spec)

Step 3: Report

If catastrophic failure detected:

⚠ Browser check: FAIL
Route: /[path]
Issue: [what's wrong — JS error, blank page, missing elements]
Console: [relevant error output]

Recommend: Run /qa for full assessment, or /fix for this issue.

If pass:

✓ Browser check: PASS
Route: /[path] — renders, no JS errors, key elements present.

Enforcement

claim you did)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.