cc_chrome_devtools_mcp_skill
Comprehensive Chrome DevTools automation for performance testing, Core Web Vitals measurement (INP, LCP, CLS), network monitoring, accessibility validation, responsive testing, and browser automation. Uses Chrome DevTools Protocol via MCP to provide professional-grade web application testing, debugging, and analysis capabilities including performance tracing, HAR export, device emulation, and multi-page workflows.
What this skill does
# Chrome DevTools Testing Skill
## Overview
This skill enables automated Chrome browser testing and performance analysis using the Chrome DevTools Protocol (CDP) via the chrome-devtools-mcp server. It provides access to 27 professional-grade tools for web application testing, performance measurement, accessibility validation, and browser automation.
**Key capabilities:**
- Performance analysis with Core Web Vitals (INP, LCP, CLS)
- Network monitoring and HAR export
- Accessibility tree inspection
- Responsive design testing
- Browser automation (form filling, navigation, interaction)
- Multi-tab and frame management
- Device and network condition emulation
**Browser support:** Chrome/Chromium only (stable, beta, dev, canary channels)
**Node.js requirement:** v20.19 or newer
## Quick Start
### Installation
```bash
# Add to Claude Code via CLI
claude mcp add chrome-devtools npx chrome-devtools-mcp@latest
# Verify installation
claude mcp list
```
### Basic configuration
```json
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--isolated=true",
"--viewport=1920x1080"
]
}
}
}
```
### Important notes
- Browser auto-starts on first tool use (not on MCP connection)
- Use `--isolated=true` for security (creates temporary user data directories that auto-cleanup)
- Default behavior shares user data directory across sessions and does NOT clear between runs
- All browser content is exposed to MCP clients - avoid sensitive data
## Current Core Web Vitals (as of March 12, 2024)
Three official metrics measured at **75th percentile** of page loads:
1. **Interaction to Next Paint (INP)** - Replaced FID on March 12, 2024
- Good: ≤ 200ms
- Measures: Input delay + processing time + presentation delay
- Requires: Real user interactions (field data only)
2. **Largest Contentful Paint (LCP)**
- Good: ≤ 2.5 seconds
- Measures: Main content loading performance
3. **Cumulative Layout Shift (CLS)**
- Good: ≤ 0.1
- Measures: Visual stability
**Total Blocking Time (TBT)** is NOT a Core Web Vital - it's a lab proxy metric for INP.
## Common Use Cases
### 1. Performance Testing Workflow
Measure Core Web Vitals and analyze performance bottlenecks:
```
1. Start performance trace: performance_start_trace
2. Navigate to target URL: navigate_page
3. Wait for page load: wait_for
4. Stop trace and get metrics: performance_stop_trace
5. Analyze specific insights: performance_analyze_insight
```
**Metrics captured:**
- INP (Interaction to Next Paint)
- LCP (Largest Contentful Paint) with breakdown
- CLS (Cumulative Layout Shift)
- TBT (Total Blocking Time - lab proxy)
- Document latency analysis
**Example:**
```
performance_start_trace with reload=true, autoStop=false
wait_for page to stabilize
performance_stop_trace
performance_analyze_insight with insightName="LCPBreakdown"
```
### 2. Network Monitoring and HAR Export
Capture all HTTP requests/responses with timing details:
```
1. Navigate to URL: navigate_page
2. List all network requests: list_network_requests
3. Get specific request details: get_network_request
```
**Captured data:**
- Headers, bodies, cookies
- Timing (DNS, connect, SSL, wait, receive)
- Resource types (document, stylesheet, image, script, xhr, fetch)
- Security details (protocol, cipher suite)
**Export as HAR:** Use list_network_requests to generate HTTP Archive v1.2 format
**Filter requests:**
```
list_network_requests with resourceTypes=["xhr", "fetch", "document"]
list_network_requests with pageSize=50, pageIdx=0
```
### 3. Accessibility Validation
Inspect accessibility tree for WCAG compliance:
```
1. Navigate to page: navigate_page
2. Take accessibility snapshot: take_snapshot
3. Interact with elements using UIDs
```
**Snapshot provides:**
- Unique element identifiers (UIDs)
- Accessibility roles, names, properties
- ARIA attributes and computed roles
- Screen reader compatibility analysis
- Semantic structure validation
**Example workflow:**
```
take_snapshot verbose=false (returns text-based a11y tree)
# Identify element UIDs from snapshot
click uid="element-123"
fill uid="input-456" value="test data"
```
### 4. Responsive Design Testing
Test across devices and network conditions:
```
1. Resize viewport: resize_page width=375 height=667
2. Emulate network: emulate_network throttlingOption="Slow 3G"
3. Emulate CPU: emulate_cpu throttlingRate=4
4. Take screenshot: take_screenshot fullPage=true
```
**Device emulation options:**
- Viewport dimensions and device scale factor
- Network conditions: Offline, Slow 3G, Fast 3G, Slow 4G, Fast 4G
- CPU throttling: 1-20x slowdown
- Touch emulation with max touch points
**Screenshot formats:** PNG, JPEG, WebP (with quality settings)
### 5. Browser Automation
Automated form filling, navigation, and interaction:
```
1. Take snapshot to get element UIDs: take_snapshot
2. Fill form fields: fill_form elements=[{uid, value}, ...]
3. Click buttons: click uid="submit-button"
4. Handle dialogs: handle_dialog action="accept"
5. Wait for results: wait_for text="Success"
```
**Interaction tools:**
- click (single/double-click)
- fill (input fields, textareas, selects)
- fill_form (multiple fields at once)
- hover (mouse hover)
- drag (drag-and-drop)
- upload_file (file inputs)
- handle_dialog (alerts, confirms, prompts)
**Navigation tools:**
- navigate_page (URLs, reload)
- navigate_page_history (back/forward)
- wait_for (text appearance, conditions)
### 6. Multi-Tab Management
Work with multiple pages and frames:
```
1. List open pages: list_pages
2. Create new page: new_page url="https://example.com"
3. Switch context: select_page pageIdx=1
4. Close pages: close_page pageIdx=2
```
**Frame handling:**
- Automatic attachment to child frames and workers
- Frame tree structure inspection
- Session persistence across navigation
## Advanced Workflows
### Performance Analysis with Device Emulation
```
1. resize_page width=390 height=844 (iPhone 14 Pro)
2. emulate_network throttlingOption="Fast 4G"
3. emulate_cpu throttlingRate=4
4. performance_start_trace reload=true
5. performance_stop_trace
6. performance_analyze_insight insightName="DocumentLatency"
```
### Network Analysis with Filtering
```
1. navigate_page url="https://example.com"
2. list_network_requests resourceTypes=["script", "fetch", "xhr"]
3. Filter by: pageSize=100, pageIdx=0, includePreservedRequests=true
4. get_network_request reqid=123 (detailed timing/headers/body)
```
### Accessibility Testing Pattern
```
1. navigate_page url="https://example.com"
2. take_snapshot verbose=true (full a11y tree with all properties)
3. Validate: roles, names, ARIA attributes, relationships
4. Test interactions: click, fill, keyboard navigation via UIDs
```
### Cross-Browser Viewport Testing
```
1. Define breakpoints: [320, 768, 1024, 1920]
2. For each breakpoint:
- resize_page width=X height=Y
- take_screenshot format="png" quality=90
- take_snapshot (verify accessibility)
3. Compare layouts and a11y across sizes
```
## Complete Tool Reference
**27 tools available** across 6 categories:
**Input automation (8):** click, drag, fill, fill_form, handle_dialog, hover, press_key, upload_file
**Navigation (7):** close_page, list_pages, navigate_page, navigate_page_history, new_page, select_page, wait_for
**Emulation (3):** emulate_cpu, emulate_network, resize_page
**Performance (3):** performance_analyze_insight, performance_start_trace, performance_stop_trace
**Network (2):** get_network_request, list_network_requests
**Debugging (4):** evaluate_script, get_console_message, list_console_messages, take_screenshot, take_snapshot
For detailed tool parameters and examples, see TOOLS.md
For complete workflow patterns, see WORKFLOWS.md
For Core Web Vitals thresholds and measurement guide, see METRICS.md
## Configuration Options
### Connection flags
- `--browserUrl, -u <string>` - Connect to runningRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.