What this skill teaches your AI coding agent
Chrome DevTools Health Auditor enables autonomous agents to validate live web applications via the Chrome DevTools Protocol. Rather than relying on full-page visual screenshots that overwhelm LLM context windows, this skill directs agents to query the accessibility tree and inspect DOM bounding boxes. The agent waits for network idle, captures all uncaught window.onerror events, checks for 4xx and 5xx API responses, and ensures that layout dimensions stabilize without visual layout shifts.
Chrome DevTools Health Auditor is an open-source testing skill licensed under MIT that extracts live accessibility trees, layout rects, and console errors via Chrome DevTools Protocol.
You need strict, reproducible guardrails enforcing testing & qa discipline across agent interactions.
You are building quick disposable prototypes where architectural consistency and test verification are unnecessary.
Activation boundaries & prompt triggers
- 💬 "User prompts: "Autonomous browser inspection playbook extracting live accessibility trees,...""
- 💬 "User asks to verify frontend UI, smoke-test routes, check layout stability, or debug console errors after changes."
- 💬 "When autonomous agent needs strict protocol guardrails"
- ⛔ Zero unhandled exceptions or console.error calls permitted in browser logs.
- ⛔ Layout bounding rects must be non-zero for visible elements to prevent CLS.
- ⛔ Never stream full-page screenshots when accessibility tree queries suffice.
Inject into Claude.ai, Claude Code, or Cursor
Choose your agent runtime to install the playbook directly into local configuration.
.cursor/rules/chrome-devtools-auditor.mdc---description: Autonomous browser inspection playbook extracting live accessibility trees, DOM layout dimensions, and console logs without test flakiness.globs: *alwaysApply: false---# Chrome DevTools Runtime Audit ProtocolBefore verifying any frontend feature or UI bugfix:1. RUNTIME INSPECTION: - Launch headless browser navigation to the target URL. - Inspect browser console logs: ZERO unhandled exceptions, console.error calls, or React hydration warnings are permitted.2. NETWORK VERIFICATION: - Monitor active network waterfall: Ensure all API calls return HTTP 200/201. - Flag and fail if any 404 assets, CORS header mismatches, or failed fetch calls occur.3. VISUAL STABILITY: - Verify layout settles without sudden Cumulative Layout Shift (CLS < 0.1).Interactive file tree manifest & playbook viewer
Click any file to audit instructions, verification scripts, and architectural references before installation.
SKILL.md---
name: chrome-devtools-auditor
description: "Autonomous browser inspection playbook extracting live accessibility trees, DOM layout dimensions, and console logs without test flakiness."
version: 1.0.0
license: MIT
compatibility: [claude-3-5-sonnet, cursor, windsurf, cline]
---
# Chrome DevTools Health Auditor
Chrome DevTools Health Auditor enables autonomous agents to validate live web applications via the Chrome DevTools Protocol. Rather than relying on full-page visual screenshots that overwhelm LLM context windows, this skill directs agents to query the accessibility tree and inspect DOM bounding boxes. The agent waits for network idle, captures all uncaught window.onerror events, checks for 4xx and 5xx API responses, and ensures that layout dimensions stabilize without visual layout shifts.
## Core Guardrails
- ⛔ Zero unhandled exceptions or console.error calls permitted in browser logs.
- ⛔ Layout bounding rects must be non-zero for visible elements to prevent CLS.
- ⛔ Never stream full-page screenshots when accessibility tree queries suffice.
## Autonomous Activation Triggers
When user prompts:
- "User prompts: "Autonomous browser inspection playbook extracting live accessibility trees,...""
- "User asks to verify frontend UI, smoke-test routes, check layout stability, or debug console errors after changes."
- "When autonomous agent needs strict protocol guardrails"
Verified behavioral proof of work
Identical prompt executed with and without this skill under autonomous coding loops.
Execute Chrome DevTools Health Auditor under autonomous coding loops
2- // Baseline code3+ // Deterministic scoped patch complying with all protocol invariantsExecution safety and file access boundaries
Agent skills with executable scripts can run shell or Python utilities. Always audit scripts before execution.
- Scope: Bound to active workspace branch.
- Network Calls: Zero outbound network calls.
- AST Syntax Gate: Pre-flight verification blocks breaking mutations.
Operational triage & resolution runbook
Skill not triggering during user conversational prompt▼
Agent system prompt does not associate task keywords with the skill's trigger boundary.
Reference the skill name explicitly in your prompt (e.g., "Follow the rules in chrome-devtools-auditor to perform this refactoring").
Conflicting rules with root project instructions▼
Global instructions (.cursorrules or CLAUDE.md) contradict the skill's invariants.
Mark this skill as high-priority override in your agent settings or scope it to specific subdirectories.
Context window saturation warning▼
Multiple skills loaded simultaneously without progressive disclosure.
Keep always-on skills under 1,000 tokens total (~420 tokens consumed by this playbook).
Skill vs. MCP Server vs. Plain System Prompt
| Primitive | Best Used When | Token Cost | Execution Risk |
|---|---|---|---|
| Agent Skill (`SKILL.md`) | Multi-step domain workflows & procedural guardrails | Low (~400 tokens) | Minimal (AST verified) |
| MCP Server | External system integrations (APIs, live databases) | Zero (until called) | Scoped by tool permissions |
| Plain System Prompt | Simple style guidelines & tone preferences | High (Always in context) | High drift risk |
Composable peers & official repository
Combine with Mutation Testing & Fault Fuzzing Playbook for complementary agent steering across testing and refactoring.
Inspect SkillCombine with Playwright Resilient E2E Testing Protocol for complementary agent steering across testing and refactoring.
Inspect SkillCombine with Verification Before Completion Protocol for complementary agent steering across testing and refactoring.
Inspect Skill