/design-engine:performance-as-ux-and-core-web-vitalsfrom design-engine
Treats Core Web Vitals (LCP, INP, CLS) as design constraints, setting performance budgets and loading strategies before build. Use when page speed, asset weight, or layout shift need design-level decisions.
Ships in design-engine. 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.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
design-qa-and-pre-launch-review).accessibility-wcag-2-2-compliance.design-qa-and-pre-launch-review, which composes this skill's gate.| Input | Supplied by | Required? | Why |
|---|---|---|---|
| Page archetype and critical journey | Product/design brief | yes | Selects the correct budget |
| Candidate assets, fonts, and states | Design and content teams | yes | Exposes weight and shift risk |
| Field or lab measurements | Performance owner | recommended | Establishes current evidence |
web-performance-budgets-2026.md.doctrine/references/web-performance-budgets-2026.md and copy the matching row into a
budget sheet: the CWV "good" thresholds (LCP <= 2.5s, INP <= 200ms, CLS <= 0.1) and the
JS/CSS/image/font/total KB caps. These are the canonical numbers — operationalize them
here, do not invent new ones. Treat the sheet as a design constraint that every later
choice must respect. Template: examples/performance-budget-sheet.md.preload the critical image/font, inline its critical
CSS, never lazy-load the LCP image, and keep it inside the image KB cap. If the hero is
over budget, that is a design decision — crop tighter, change the format, or replace a
photo with a typographic hero. See references/perceived-performance-patterns.md §LCP.width/height or
aspect-ratio) at design time. Annotate dimensions on the spec. A layout that "settles"
after load is a design failure, not a tuning problem. See §CLS.empty-error-and-loading-states.srcset/sizes so each breakpoint ships only the pixels it needs, lazy-load
below the fold, and compress every asset to the budget. Always carry width/height. Art
direction (different crops per breakpoint) lives with photography-art-direction but the
weight contract lives here. See §Images.font-display: swap to avoid invisible text (FOIT); subset to the glyphs
actually used; preload only the critical face; cap custom weights (this also serves the
anti-slop "always pair, never over-proliferate" rule). Account for the swap reflow in the
CLS budget by sizing fallback metrics. See §Fonts and references/perceived-performance-patterns.md.design-qa-and-pre-launch-review gate — state that on the sheet.web-performance-budgets-2026.md, not improvised; if a page needs
to exceed a cap, the sheet states why and what was traded.| Output | Consumer | Evidence / acceptance |
|---|---|---|
| Performance budget sheet | Designer and engineer | CWV targets, asset caps, LCP element, and reservations |
| Loading-state specification | Component implementer | Skeleton, optimistic, error, and transition frames |
| Performance gate record | QA and release owner | Measured thresholds and unresolved exceptions |
examples/performance-budget-sheet.md).examples/performance-budget-sheet.md for the required evidence-backed budget format.| Condition | Decision | Wrong-choice failure |
|---|---|---|
| Font, image, route or motion choice is being made for a web surface | Apply the design-level rules for font loading, hero images, facades and compositor-only motion | Design locks in weight and layout shift that engineering cannot remove later |
| Element is the likely LCP | Prioritise and never lazy-load it | Largest content appears late |
| Late content has known dimensions | Reserve its final space | Layout shifts after interaction |
| Wait is predictable and structural | Use a content-shaped skeleton | Spinner provides no spatial continuity |
| Field p75 fails a CWV target | Block release or approve a documented exception | Lab-only success hides user harm |
Read and design inspection are required; measurement execution is strongly preferred. Editing needs implementation authority. Code-level profiling and production remediation route to engineering performance skills.
Without field data, use lab measurements as a conditional proxy and identify the required RUM follow-up. Without execution, deliver the budget and designed states but mark the gate unverified.
examples/performance-budget-sheet.md — a fully filled budget for a real page archetype
(a marketing/landing page): LCP/INP/CLS targets, JS/CSS/image/font KB budgets, the named
LCP element, the CLS reservations, and the concrete design decisions that hit each number.references/performance-aware-design-decisions.md — font loading, image weight, facades and motion cost for designers, with the hand-off to website-skills.
doctrine/design-doctrine.md — the anti-slop charter; font/weight restraint and "state the
choice" apply to performance decisions too.
doctrine/references/web-performance-budgets-2026.md — canonical CWV thresholds and
per-archetype asset budgets. This skill operationalizes that ref; it does not restate or
override its numbers.
doctrine/references/embedding-by-format.md — font embedding/subsetting mechanics the font
budget relies on.
references/perceived-performance-patterns.md — the skeleton/optimistic/transition-masking,
LCP/CLS/INP, and image/font-as-design patterns, with the budget thresholds cited from the
canonical ref.
references/perceived-performance-streaming-and-navigation.md — load when a surface streams
AI output or when next-page, back-button, or route-transition feel must be designed.
| Companion Skill | When to Load |
|---|---|
design-qa-and-pre-launch-review | Pre-ship — this skill is its performance gate |
responsive-and-adaptive-layout | srcset/breakpoint and fluid-layout decisions that affect image weight and CLS |
empty-error-and-loading-states | Designing the skeleton/loading/optimistic frames as first-class states |
photography-art-direction | Hero/imagery weight and art-directed crops per breakpoint |
Sources: web.dev Core Web Vitals; doctrine/references/web-performance-budgets-2026.md
(verified via docs/initial-analysis/06-2026-standards-benchmark.md).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job