verify
Verify UI Changes
Use the Shiplight MCP browser tools to visually verify that your code changes look and behave correctly in a real browser.
When to use
Use /shiplight:verify after making UI changes to confirm they render correctly. This is useful for:
- Checking layout, styling, or component changes visually
- Verifying interactive behavior (clicks, form inputs, navigation)
- Pre-commit sanity checks on UI work
- Debugging visual regressions
When NOT to use
Skip /shiplight:verify when changes don't affect UI rendering:
- Backend-only changes (API logic, database, config)
- Dependency version bumps with no UI impact
- Documentation, comments, or test-only changes
Steps
The following steps are a general guideline — adapt based on what makes sense for the specific changes:
-
Understand what changed — analyze the code changes and build a verification plan:
- What files/components changed
- What pages and interactions to check
- Pass/fail criteria (what "correct" looks like)
This is the most important step — it determines your test coverage. Balance thoroughness with cost.
-
Start the dev server (if not already running) — check if the app's dev server is running. If not, start it in the background using the appropriate command (e.g.
npm run dev,yarn dev). Wait a few seconds for it to be ready. -
Open a browser session — call
new_sessionwith thestarting_urlpointing to the page you want to verify. If you want to generate a report afterwards, setrecord_evidence: true. Multiple concurrent sessions are supported — you can open several to compare different pages or states. -
Inspect the page — call
inspect_pageto get the DOM tree with element indices and a screenshot. Always read the DOM file first — it provides the element indices needed foractand consumes far fewer tokens. Only view the screenshot when you specifically need visual information (layout, colors, images), as screenshots consume significantly more tokens than DOM. -
Interact and verify — use
actto simulate user actions based on the element indices frominspect_page. Useactwith verify actions to assert expected UI state (e.g. text is visible, element exists). -
Check for errors — call
get_browser_console_logsto check for any JavaScript errors that may have been introduced. -
Report findings — summarize what you verified:
- What pages/components were checked
- Whether the UI renders correctly
- Any console errors or visual issues found
- Screenshots showing the verified state
-
Close the session — call
close_sessionwhen done. It returnslocal_video_pathandlocal_trace_path. -
Generate the report — if the session was started with
record_evidence: true, callgenerate_html_reportwith the local paths:{ "session_id": "<session_id>", "local_video_path": "<local_video_path from close_session>", "local_trace_path": "<local_trace_path from close_session>", "title": "...", "summary": "...", "checks": [...] }Show the returned
file_pathto the user so they can open and review it. -
Upload the report for sharing — when the user wants a shareable link (e.g. to attach to a PR), and
upload_html_reportis available:{ "report_path": "<file_path from generate_html_report>", "local_video_path": "<local_video_path from close_session>", "local_trace_path": "<local_trace_path from close_session>" }This uploads the video, trace, and report HTML to Shiplight cloud, patches the HTML with cloud URLs, and returns a permanent shareable
report_url.
Apps that require login
If the app requires authentication, log in once and save the session so future sessions skip the login step:
- Open a browser session with
new_sessionat the app's login page. - Ask the user to switch to the browser and log in manually. Wait for them to confirm.
- Call
save_storage_stateto save cookies and localStorage to~/.shiplight/<site_url>/storage-state.json(e.g.~/.shiplight/http_localhost_3000/storage-state.json). - For all future sessions, pass the same path as
storage_state_pathtonew_sessionto restore the authenticated state instantly.
If a saved storage state file already exists, use it automatically. If authentication fails with a saved state (page redirects to login, auth errors in console), the state is likely expired — ask the user to log in again and re-save.
More from shiplightai/claude-code-plugin
cloud
Sync local test cases, templates, and functions with Shiplight cloud. Manage test runs, environments, folders, suites, and accounts.
1triage
Triage failing E2E tests: reproduce failures, diagnose root causes, fix test issues in YAML, and report application bugs — with batch healing and concurrent browser investigation.
1seo-review
SEO and discoverability review: evaluate meta tags, structured data, Open Graph, crawlability, sitemap, robots.txt, semantic HTML, and social sharing with browser-based validation.
1privacy-review
Privacy review and testing: evaluate PII handling, data flows, tracking inventory, consent mechanisms, storage practices, and data leakage risks with browser-based validation against GDPR, CCPA, and industry best practices.
1create_e2e_tests
Spec-driven E2E test creation: plan what to test through structured discovery phases, then scaffold a local Shiplight test project and write YAML tests by walking through the app in a browser.
1design-review
UI and design review: evaluate visual quality, responsive behavior, accessibility, color/contrast, typography, layout consistency, and i18n readiness using browser-based validation against industrial standards.
1