Back to skills
SKILL.md
Ui Browser Verification Engineer
ASecurityExecutes headless browser Chrome DevTools Protocol (CDP) automation to verify live rendered DOM hierarchies, computed bounding box dimensions, console exception logs, and high-fidelity screenshot artifacts. Bridges Tribunal-Kit's native browser automation to confirm that components render accurately in real browser engines.
- 7 stars
- 0 votes
- 0 copies
- 2 views
- Added November 9, 2026
Works with
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill ui-browser-verification-engineer --agent claude-codeAre you the author of Ui Browser Verification Engineer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-ui-browser-verification-engineer)---
name: ui-browser-verification-engineer
description: "Executes headless browser Chrome DevTools Protocol (CDP) automation to verify live rendered DOM hierarchies, computed bounding box dimensions, console exception logs, and high-fidelity screenshot artifacts. Bridges Tribunal-Kit's native browser automation to confirm that components render accurately in real browser engines."
version: 1.0.0
last-updated: 2026-10-30
skills:
- browser-audit
- playwright-ai-e2e
- webapp-testing
tools: Read, Grep, Glob, Bash, Edit, Write
scripts-binding:
- .agent/scripts/lint_runner.js
- .agent/scripts/verify_all.js
inputs:
targetUrl: 'string'
viewport: 'object'
captureScreenshot: 'boolean'
outputs:
auditReport: 'object'
computedMetrics: 'object'
screenshotPath: 'string'
trigger:
- 'browser-verification'
- 'cdp-audit'
- 'live-render-check'
- 'browser-inspection'
---
# UI Browser Verification Engineer — Headless CDP Inspection
## Mandatory Pre-Flight Context Inspection
Before launching or attaching to browser verification sessions, inspect these 5 critical parameters:
1. **Target URL & Local Dev Server Readiness**: Verify the target endpoint is active (or started via `.agent/scripts/auto_preview.js`) before initiating CDP connections.
2. **Deterministic Viewport Configuration**: Set standardized viewport dimensions (`mobile: 375x667`, `tablet: 768x1024`, `desktop: 1280x800`) to guarantee reproducible audits.
3. **Console Exception Trapping**: Intercept and report all runtime JavaScript errors, unhandled promise rejections, and network 4xx/5xx responses during page execution.
4. **Computed Geometry Inspection**: Measure actual computed dimensions via `getBoundingClientRect()` to detect layout clipping, element collisions, and negative margins.
5. **Screenshot Artifact Preservation**: Store all audit snapshots in `benchmarks/artifacts/` or test output directories for regression tracking and human review.
## Activation Boundaries
- **Activate when:** Verifying rendered UI in real browsers, debugging CSS layout shifts, capturing visual artifacts for certification, or testing CDP-driven interactions.
- **DO NOT activate when:** Running purely static unit tests or linting offline configuration files.
## 🔁 Multi-Pass Browser Verification Protocol
| Pass | Phase | Core Action | Observable Target |
| :--------- | :--------------------------- | :----------------------------------------------------------------------------------- | :----------------------- |
| **Pass 1** | **Target Connection** | Establish connection via `verifyBrowserRendering()` or native `src/browser/` client. | CDP Session Active |
| **Pass 2** | **DOM & Layout Navigation** | Navigate to target URL, await network idle (`networkidle0`), and parse DOM tree. | Stable Page Load |
| **Pass 3** | **Console & Network Trap** | Harvest browser console logs and failed network requests. | Clean Console Log |
| **Pass 4** | **Computed Metrics Extract** | Evaluate bounding boxes, element visibility, and scroll dimensions. | Computed Layout Metrics |
| **Pass 5** | **Artifact Capture** | Capture PNG screenshot artifact and compile structured audit JSON. | Verified Browser Dossier |
---
## 🛠️ Technical Architecture & Browser Verification Recipes
### 1. Invoking Browser Verification Bridge
```javascript
const {
verifyBrowserRendering,
} = require('../../src/design_intelligence/browser_verification_bridge');
async function runBrowserAudit() {
const result = await verifyBrowserRendering({
targetUrl: 'http://localhost:3000/preview',
viewport: { width: 1280, height: 800 },
waitForSelector: '[data-testid="main-content"]',
});
if (!result.success) {
console.error('Browser audit failed:', result.error);
return;
}
console.log('DOM Nodes Evaluated:', result.metrics.nodeCount);
console.log('Console Errors:', result.metrics.consoleErrors.length);
console.log('Screenshot Artifact:', result.screenshotPath);
}
```
### 2. Native CDP Fallback Architecture
When headless Chrome is offline or running in mock simulation mode:
```javascript
// Graceful fallback to synthetic DOM emulation
const { fallbackDOMCheck } = require('../../src/design_intelligence/browser_verification_bridge');
const fallbackReport = fallbackDOMCheck(htmlMarkup);
```
---
## 🏛️ Tribunal Verification & Guardrails
### 🛑 Verification-Before-Completion (VBC) Protocol
1. Ensure the browser audit completes with zero fatal console exceptions.
2. Confirm computed dimensions confirm zero elements exceeding container bounds.
3. Validate that a structured audit summary is recorded in certification artifacts.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.