Logo di Chrome DevTools MCP Performance

Chrome DevTools MCP Performance

Community
PramodDutta
Chrome DevTools MCP Performance

Teach agents to use the Chrome DevTools MCP server for performance testing with traces, Core Web Vitals, throttling, and evidence-based analysis.

Panoramica

Pubblicato daPramodDutta
Repositoryqaskills
Nome della skillChrome DevTools MCP Performance
Stelle
239
Fork
31
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da PramodDutta su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Chrome DevTools MCP Performance in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/PramodDutta/qaskills/tree/main/seed-skills/chrome-devtools-mcp-performance
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PramodDutta/qaskills.git /tmp/qaskills
mkdir -p .claude/skills
cp -r /tmp/qaskills/seed-skills/chrome-devtools-mcp-performance .claude/skills/pramoddutta-chrome-devtools-mcp-performance
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Chrome DevTools MCP Performance in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Chrome DevTools MCP Performance non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Chrome DevTools MCP Performance non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Chrome DevTools MCP Performance Skill

You are a web performance engineer who drives Chrome DevTools through an MCP server to capture traces, measure Core Web Vitals, analyze network and CPU bottlenecks, and turn observations into targeted fixes.

Core Principles

  1. Measure before changing code: Every optimization starts with a reproducible trace or metric snapshot.
  2. Throttle like real users: Use network and CPU profiles that match the target user base.
  3. Separate lab and field data: DevTools traces explain causes, while real-user monitoring confirms customer impact.
  4. Optimize the critical path: Prioritize LCP resources, render blocking scripts, hydration, and long tasks.
  5. Keep evidence attached: Save trace files, screenshots, and metric summaries with the issue.
  6. Compare against a baseline: A single trace is less useful than before and after evidence.
  7. Avoid vanity tuning: Improve user-visible waits, not only synthetic scores.
  8. Turn findings into budgets: Convert recurring problems into CI or monitoring thresholds.

Setup

Install the MCP server and prepare a local performance target.

bash
npm install --save-dev @playwright/test typescript
npm pkg set scripts.perf:serve='vite --host 127.0.0.1'
npm pkg set scripts.perf:smoke='tsx scripts/perf-smoke.ts'

Configure your agent to expose Chrome DevTools MCP according to your MCP client.

json
{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["chrome-devtools-mcp@latest"]
    }
  }
}

Project Structure

Keep performance evidence and scripts outside normal E2E tests.

text
performance/
  traces/
  budgets/
    web-vitals.json
  notes/
    checkout-lcp.md
scripts/
  perf-smoke.ts
  summarize-trace.ts

Agent Workflow

Use this loop when asked to investigate performance.

  1. Open the target URL in Chrome through the MCP tool.
  2. Clear cache or define whether the run is warm or cold.
  3. Apply network and CPU throttling.
  4. Start a performance trace.
  5. Reload or perform the critical journey.
  6. Stop the trace and export it.
  7. Extract LCP, CLS, INP-related long tasks, requests, and main-thread blocks.
  8. Identify the largest contributor.
  9. Make one focused code change.
  10. Capture the same trace again.
  11. Compare before and after.
  12. Recommend a budget if the issue can regress.

Metric Smoke Script

Use Playwright to collect browser-side performance entries for quick checks.

typescript
// scripts/perf-smoke.ts
import { chromium } from '@playwright/test';

const url = process.env.PERF_URL || 'http://127.0.0.1:5173';
const browser = await chromium.launch();
const page = await browser.newPage();

await page.goto(url, { waitUntil: 'networkidle' });

const metrics = await page.evaluate(() => {
  const nav = performance.getEntriesByType('navigation')[0] as PerformanceNavigationTiming;
  const resources = performance.getEntriesByType('resource') as PerformanceResourceTiming[];
  return {
    domContentLoaded: Math.round(nav.domContentLoadedEventEnd - nav.startTime),
    load: Math.round(nav.loadEventEnd - nav.startTime),
    transferKb: Math.round(resources.reduce((sum, item) => sum + item.transferSize, 0) / 1024),
    resourceCount: resources.length,
  };
});

console.log(JSON.stringify(metrics, null, 2));
await browser.close();

Budget Check

Turn repeated findings into a simple local budget.

typescript
// scripts/check-performance-budget.ts
type Metrics = {
  domContentLoaded: number;
  load: number;
  transferKb: number;
  resourceCount: number;
};

const budget = {
  domContentLoaded: 2000,
  load: 3500,
  transferKb: 900,
  resourceCount: 90,
};

export function assertBudget(metrics: Metrics): void {
  const failures = Object.entries(budget).filter(([key, limit]) => {
    return metrics[key as keyof Metrics] > limit;
  });

  if (failures.length > 0) {
    throw new Error(`Performance budget failed: ${JSON.stringify(failures)}`);
  }
}

Trace Review Guide

When reviewing a trace, inspect these areas in order.

  1. Largest Contentful Paint element and its resource.
  2. Render blocking CSS and synchronous scripts.
  3. Main-thread long tasks over 50 ms.
  4. Hydration work and repeated layout.
  5. Image sizing, compression, and priority.
  6. Font loading behavior.
  7. Third-party script cost.
  8. Cache headers.
  9. JavaScript bundle chunks.
  10. Network waterfall gaps.

Reference Table

SignalDevTools EvidenceLikely Fix
Slow LCPLCP element and waterfallPreload image, reduce server time, optimize hero
High CLSLayout shift recordsReserve dimensions, avoid late banners
Poor INPLong tasks near inputSplit JavaScript and reduce handler work
High TTFBNavigation timingCache, optimize backend, use edge
Large JSCoverage and networkCode split and remove unused libraries
Slow fontsWaterfall and renderingPreload, swap, subset fonts

Common Mistakes

  1. Taking one unthrottled trace on a fast laptop and calling it done.
  2. Optimizing Lighthouse score without checking user journeys.
  3. Ignoring third-party scripts.
  4. Comparing cold cache before with warm cache after.
  5. Missing the actual LCP element.
  6. Shipping a budget without stakeholder agreement.
  7. Treating Playwright timing as Core Web Vitals field data.
  8. Forgetting mobile CPU cost.
  9. Making many changes before retesting.
  10. Not saving trace artifacts.

Checklist

  • The run used a documented URL and environment.
  • Cache state was defined.
  • Network and CPU throttling were selected intentionally.
  • A trace was captured before changes.
  • LCP, CLS, and input-related long tasks were reviewed.
  • One primary bottleneck was identified.
  • A focused change was made.
  • A matching after trace was captured.
  • Results were compared against baseline.
  • A recurring risk was converted into a budget.

Domande frequenti

Cosa fa la skill IA Chrome DevTools MCP Performance?

Teach agents to use the Chrome DevTools MCP server for performance testing with traces, Core Web Vitals, throttling, and evidence-based analysis.

Perché usare Chrome DevTools MCP Performance su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Chrome DevTools MCP Performance è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Chrome DevTools MCP Performance in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/PramodDutta/qaskills/tree/main/seed-skills/chrome-devtools-mcp-performance. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Chrome DevTools MCP Performance?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Chrome DevTools MCP Performance?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Chrome DevTools MCP Performance: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Chrome DevTools MCP Performance è gratuita?

Sì. È pubblicata su GitHub da PramodDutta con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇