/eds-content-ops:performance-budgetfrom eds-content-ops
Deep analysis of the AEM Edge Delivery Services 100KB LCP budget. Inventories all critical-path resources before the Largest Contentful Paint element, calculates total byte cost, checks E-L-D phase compliance, and provides specific optimization recommendations per resource. Use when pages feel slow, Lighthouse LCP scores are poor, or you need to verify performance before launch.
Ships in eds-content-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze AEM Edge Delivery Services pages against the EDS 100KB LCP budget, inventory every resource in the critical rendering path, verify E-L-D (Eager-Lazy-Delayed) loading phase compliance, and produce specific byte-level optimization recommendations.
This skill fetches external web pages and their associated resources for analysis. When fetching:
EDS is built around a strict performance budget: the Largest Contentful Paint (LCP) element should render within a 100KB total transfer budget. This budget covers all resources the browser must download before the LCP element can paint.
EDS uses a three-phase loading model that is central to its performance architecture:
aem.css, aem.js, above-fold block CSS/JS, and fonts needed for the first section. Everything in the eager phase counts against the 100KB LCP budget.aem.js as the user scrolls or after a short delay.scripts/delayed.js.On a 3G connection (the baseline EDS targets), 100KB takes approximately 1.5 seconds to transfer. Combined with DNS, TLS, and server response time, this keeps LCP under the 2.5-second "good" threshold in Core Web Vitals.
Before starting, create a checklist of all steps to track progress:
Fetch the raw HTML of the target page using curl to measure response size:
curl -s -o /dev/null -w "%{size_download}" "https://<branch>--<repo>--<owner>.aem.live<path>"
Also fetch the full HTML to analyze its contents:
curl -s "https://<branch>--<repo>--<owner>.aem.live<path>"
Record the HTML document size in bytes. In EDS, the HTML is intentionally minimal — typically 10-20KB for a standard page. If the HTML exceeds 30KB, investigate why (inline styles, excessive DOM nodes, server-side includes).
The LCP element is the largest visible content element in the viewport when the page first loads. In EDS pages, the LCP element is typically one of:
<h1> or <h2> in the first section, if no image is present.Examine the HTML to identify the first section (content before the first <hr> / section divider). The largest visual element in that section is the likely LCP candidate.
If the LCP element is an image, record:
width and height attributes (needed to prevent CLS).loading="eager" (required for above-fold images in EDS).Content-Length).List every resource that must load before the LCP element can render. Check each of these:
aem.css — The core EDS stylesheet. Fetch and measure: https://<domain>/styles/aem.csshttps://<domain>/blocks/<block-name>/<block-name>.css<style> tags in the HTML head.aem.js — The core EDS script. Fetch and measure: https://<domain>/scripts/aem.jsscripts.js — The site's custom script bundle: https://<domain>/scripts/scripts.jshttps://<domain>/blocks/<block-name>/<block-name>.js@font-face declarations with font-display values.<link rel="preload" as="font"> in the HTML head.aem.live media pipeline — check the optimized size, not the original.Sum all resources identified in Step 3 into a budget table:
| Resource | URL | Size (KB) | Phase | Notes |
|---|---|---|---|---|
| HTML document | /page-path | 14.2 | Eager | |
| aem.css | /styles/aem.css | 3.8 | Eager | |
| hero block CSS | /blocks/hero/hero.css | 1.2 | Eager | |
| aem.js | /scripts/aem.js | 8.4 | Eager | |
| scripts.js | /scripts/scripts.js | 5.1 | Eager | |
| hero block JS | /blocks/hero/hero.js | 2.3 | Eager | |
| Font (heading) | /fonts/heading.woff2 | 22.0 | Eager | Preloaded |
| LCP image | /media/hero.jpg | 45.0 | Eager | |
| Total | 102.0 | Over budget by 2KB |
Compare the total against the 100KB budget:
Verify that resources are loading in the correct phase:
loading="eager". Images below the fold should have loading="lazy" (EDS sets this automatically but custom blocks may override it).aem.js decorates below-fold blocks with lazy-loading behavior.scripts/delayed.js, not in the HTML head or in eager scripts.scripts/delayed.js and verify third-party scripts are loaded there.<head>, analytics scripts loaded synchronously, chat widgets loaded eagerly.font-display: swap to avoid blocking rendering.size-adjust fallback font declarations to minimize CLS.For each budget violation or E-L-D compliance issue, provide a specific fix:
woff2 format exclusively (best compression).size-adjust to eliminate font-swap CLS.Produce a final report with:
The table from Step 4, sorted by size descending.
The highest-impact changes, with estimated byte savings for each.
| Problem | Cause | Solution |
|---|---|---|
| Cannot determine LCP element from HTML alone | LCP depends on viewport size and CSS rendering | Ask the user to run Lighthouse and share the LCP element details, or analyze the first section heuristically |
| Image sizes cannot be measured | Media pipeline serves optimized images on-the-fly | Use curl with -I flag to get Content-Length headers from the served image URL |
| Third-party scripts load before delayed.js | Scripts added to head or inline in the document | Move all third-party script tags to scripts/delayed.js |
| HTML is unexpectedly large | Excessive DOM nodes or inline content | Check for content that should be in blocks rather than inline, or documents that are too long for a single page |
| Font files are very large | Full Unicode range included | Subset the font to the site's language character set using a tool like glyphhanger |
| Page loads fast locally but slow on mobile | Local testing does not simulate 3G conditions | Test using Chrome DevTools throttling set to "Slow 3G" or use WebPageTest with a mobile profile |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (focus-gts/eds-content-ops-skills) — no native marketplace selected
npx claudepluginhub p/focus-gts-eds-content-ops42 skills in this plugin
/accessibility-fixScan an AEM Edge Delivery Services page for WCAG 2.1 AA accessibility violations and generate specific fixes. Identifies missing alt text, heading hierarchy issues, link text problems, color contrast concerns, and EDS-specific accessibility patterns. Use when fixing accessibility issues, preparing for compliance audits, or remediating WCAG violations./aem-to-eds-migrationAssess and plan a migration from traditional AEM Sites to AEM Edge Delivery Services. Analyzes the source AEM site to inventory components, templates, content types, and integrations, then maps them to EDS equivalents and produces a migration feasibility report with effort estimates, risk areas, and a phased plan./