aa-conversion-funnel-a…
Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have…
Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact.
$ npx -y skills add adobe/skills --skill cwv-optimizer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cwv-optimizerContext preview
The summary Claude sees to decide when to auto-load this skill.
Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact.
name: cwv-optimizer description: Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and INP issues with before/after projections. Use when the user asks about Core Web Vitals, page speed, or performance issues on AEM Edge Delivery Services (EDS/Franklin) sites. license: Apache-2.0 metadata: version: "1.0.0"
Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages using EDS-specific domain knowledge: the 100KB LCP budget, the Eager-Lazy-Delayed loading phases, block architecture, the `createOptimizedPicture()` function, and the `/scripts/delayed.js` pattern. Produces specific, implementable fixes with estimated impact projections, not generic performance advice.
This skill fetches external web pages for analysis. When fetching:
---
Before starting, create a checklist of all steps to track progress:
---
Fetch the page and collect baseline scores:
curl -s -o /dev/null -w "HTTP %{http_code} - %{size_download} bytes - %{time_total}s" "https://<domain>/<path>"Record baseline CWV values, total page weight, request count, and TTFB. A large FCP-to-LCP gap suggests render-blocking resources between first paint and largest paint.
---
Identify the LCP element from measured data, not from page structure. Use Chrome DevTools (Performance panel → the LCP marker, or the Lighthouse "Largest Contentful Paint element" audit) or RUM field data. In EDS the LCP element is commonly the first image or a large `<h1>` in the first section, but confirm it rather than assuming. Once confirmed, fetch the HTML and examine that element in the first section (before the first `---` divider).
Inventory every eager-phase resource and measure actual transfer sizes. Build the budget table: HTML document, `/styles/styles.css`, `/scripts/aem.js`, `/scripts/scripts.js`, first-section block CSS/JS, preloaded fonts, and LCP image. Grade the total against the 100KB budget (see `references/cwv-eds-reference.md` for grading scale).
Use RUM field data to see real-user LCP for the page, and process it with Adobe's official [`@adobe/rum-distiller`](https://github.com/adobe/rum-distiller) library (the same one the OpTel Explorer uses) rather than hand-parsing checkpoint events:
import { DataChunks, series, utils } from '@adobe/rum-distiller';
// The bundle API is path-based: https://bundles.aem.page/bundles/{domain}/{year}/{month}/{day}.
// The domain key is the ?domainkey= query parameter, not an Authorization header.
const resp = await fetch(
`https://bundles.aem.page/bundles/example.com/2026/06/28?domainkey=${RUM_DOMAIN_KEY}`,
);
const { rumBundles } = await resp.json();
// addCalculatedProps derives the cwvLCP/cwvCLS/cwvINP props that the series read.
rumBundles.forEach((b) => utils.addCalculatedProps(b));
const dc = new DataChunks();
dc.load([{ date: '2026-06-28', rumBundles }]);
dc.addSeries('lcp', series.lcp);
console.log(`p75 LCP: ${dc.totals.lcp.percentile(75)}ms`);---
Verify resources load in the correct phase:
**Eager**: Only first-section block CSS/JS. Check that below-fold blocks are not loading eagerly. Images in the first section must have `loading="eager"` with `width` and `height`; below-fold images must have `loading="lazy"`.
**Delayed**: Fetch `/scripts/delayed.js` and verify all third-party scripts load there. Common violations: Google Tag Manager in `<head>` (~70KB, blocks render), analytics loaded synchronously, chat widgets loaded eagerly, consent banners in the eager phase.
**Fonts**: Verify `font-display: swap`, maximum 2 preloaded fonts, all WOFF2 format, each under 30KB. Fonts used only below the fold should not be preloaded.
---
Check whether images have explicit `width` and `height`:
curl -s "https://<domain>/<path>" | grep -oP '<img[^>]*>' | head -10
Images without dimensions cause CLS. The `createOptimizedPicture()` function in `aem.js` does not set `width`/`height` attributes on the images it generates. Fix by adding the attributes in the block's `deco
Repo: adobe/skills
Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have…
Generates a concise, executive-ready performance summary covering key metrics, trends, and…
Produces a compact KPI digest showing how key metrics changed over a period and what's…
Compares the performance of two or more audience segments across key metrics side by side.…
Identifies which items (pages, campaigns, products, channels, regions) had the biggest…
Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user…