core-web-vitals-standards

core-web-vitals-standards is a cursor rule for Cursor from adobecom/da-express-milo. It costs 2,487 tokens per session, scanned A, original, Apache-2.0.

A set of web performance rules focused on Core Web Vitals, Google's measures of loading speed, visual stability, and responsiveness.

In plain words
What is it for?
Use it when diagnosing poor Lighthouse or Core Web Vitals results, improving Largest Contentful Paint (LCP), and checking how CSS is loaded in AEM sites.
Why use it?
It helps find common causes of slow page loading, especially stylesheets that delay the page from becoming visible.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when diagnosing poor Lighthouse or Core Web Vitals results, improving…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/adobecom/da-express-milo/core-web-vitals-standards
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/adobecom/da-express-milo

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for core-web-vitals-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/adobecom/da-express-milo/core-web-vitals-standards.svg)](https://agentmods.dev/rules/adobecom/da-express-milo/core-web-vitals-standards)
Your own site
<a href="https://agentmods.dev/rules/adobecom/da-express-milo/core-web-vitals-standards"><img src="https://agentmods.dev/badge/rules/adobecom/da-express-milo/core-web-vitals-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,487 This file is loaded in full into every session.
When invoked 2,487 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02487 $0.02487
Opus 5 $0.01243 $0.01243
Sonnet 5 $0.00497 $0.00497
Haiku 4.5 $0.00249 $0.00249

Measured 6d ago against content hash c3450831a164, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

core-web-vitals-standards scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/core-web-vitals-standards.mdc · 229 lines

How it starts

The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core Web Vitals Performance Standards

APPLY: EVERY QUERY - CRITICAL PERFORMANCE RULE

Performance is Non-Negotiable

Following AEM's "Keeping it 100" principle: Maintain Lighthouse Score 100 through Three-Phase Loading (E-L-D)

CRITICAL: CSS Render-Blocking Detection & Resolution

ALWAYS check CSS loading sequence FIRST when diagnosing slow LCP

CSS Render-Blocking Symptoms (URGENT INVESTIGATION REQUIRED)

  • LCP > 3 seconds with white screen until late in loading
  • Body visibility delayed despite JavaScript optimization
  • Performance scores plateau despite component optimizations
  • Render delay >70% in LCP breakdown

CSS Render-Blocking Root Cause

Large CSS files (>20KB) loaded via JavaScript after HTML parsing:

// ❌ ANTI-PATTERN: Render-blocking CSS via JavaScript
const link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', 'large-file.css'); // Blocks body visibility
document.head.appendChild(link);

REQUIRED AEM Performance Pattern

// ✅ REQUIRED: Follow AEM Three-Phase Loading for LCP optimization
// Phase E: Focus on accelerating transformation speed for LCP elements
export default async function init(el) {
  // Create LCP structure immediately (synchronous DOM)
  const basicStructure = createLCPStructure(el);
  el.append(basicStructure);
  
  // Phase L: Defer heavy operations to Promise.all
  const enhancementPromise = Promise.all([
    loadAdditionalData(),
    processAsyncFeatures()
  ]);
  
  // Progressive enhancement without blocking LCP
  const data = await enhancementPromise;
  enhanceWithData(basicStructure, data);
}

Three-Phase Loading Strategy (REQUIRED)

Based on AEM's performance best practices:

Phase E (Eager) - Critical Path to LCP

  • 100kb Payload Limit: Everything before LCP MUST stay under 100kb total
  • Single Origin Rule: NO connections to second origins before LCP (TLS/DNS overhead blocks LCP)
  • Body Hidden Pattern: body { display: none; } in head.html prevents premature image downloads
  • LCP Target: 1560ms or better on mobile (100 score in PageSpeed Insights)

Read the full file on GitHub · 229 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 229 lines · 2,487 tokens per session scan A c3450831a164

Subscribe to this mod's changes

core-web-vitals-standards is a cursor rule published in the GitHub repository adobecom/da-express-milo (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,487 tokens to every session, about $0.0124 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.