/engineering:frontend-performancefrom engineering
Defines performance budgets, measurement plans tied to SLOs, and CI regression gates for web app frontends. Use when auditing or diagnosing LCP, INP, or CLS regressions.
Ships in engineering. 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.
Specialist frontend skill. Produces the three deliverables that give a team an operable performance posture: a budget per critical flow, a measurement plan tied to the SLO set, and a regression gate in CI. Not a generic optimisation checklist.
Prerequisites: Load system-architecture-design (for the critical-flow table) and observability-monitoring (for the SLO set and RUM dashboard conventions) before this skill. Load react-development or nextjs-app-router if the stack is React/Next.
Any Chwezi app or system UI work (effective 01 Nov 2026) MUST follow the Chwezi Product Excellence Standard in chwezi-design-engine (resolve via the engine-routing table; never hard-code the path): doctrine/product-excellence-standard.md and skill skills/00-cross-cutting-ops-qa-a11y/chwezi-product-excellence-standard. Engineering gates: product-excellence-engineering-gates.md. For Chwezi apps, "good" Core Web Vitals at p75 on a low-end mobile profile and the Android device budget (Baseline Profiles, Macrobenchmark on a physical floor device) are release gates. Where this skill and the standard differ, the standard wins.
observability-monitoring, the relevant database skill, or reliability-engineering.api-design-first.system-architecture-design.observability-monitoring.references/budgets-and-regression-gate.md plus whichever of loading-performance.md, rendering-and-inp.md, framework-recipes.md the task requires.references/performance-engineering-procedure.md when diagnosing field regressions by metric sub-part, adding Speculation Rules/bfcache/fetchpriority, governing third-party or AI chat scripts, budgeting streaming AI interfaces, or checking toolchain currentness.../../sdlc-meta/ai-assisted-development/references/ai-generated-code-review-gate.md.observability-monitoring.Skill-specific anti-patterns:
await sequential API calls inside a server component that blocks streaming — use Promise.all or move non-critical data to a <Suspense> boundary". Concrete fix, concrete diagnostic.<img src="hero.jpg" loading="lazy">. After: <img src="hero.jpg" loading="eager" fetchpriority="high" width=... height=...> plus <link rel="preload" as="image" ...> when the hero is below the HTML discoverability point.transition: width 300ms on a sidebar. After: transition: transform 300ms with the sidebar off-canvas and translated in. Avoids forced layout on every frame.size-limit delta. After: job fails the required check when any entry exceeds budget; baseline regeneration is a deliberate PR. Non-blocking gates decay within two sprints.observability-monitoring, with alert routing through the shared on-call pipeline.<link rel="preload"> tags. After: preload only the LCP image and one critical font; everything else competes for bandwidth on the critical path.Skill-specific outputs:
| Artifact | Consumed by | Template |
|---|---|---|
| Performance budget per critical flow | deployment-release-engineering, observability-monitoring, QA | references/budgets-and-regression-gate.md |
| Measurement plan (SLIs, sources, reporting, thresholds) | observability-monitoring, on-call | references/budgets-and-regression-gate.md |
| Regression gate in CI | cicd-pipelines, deployment-release-engineering | references/budgets-and-regression-gate.md |
| Framework recipe notes | react-development, nextjs-app-router, Vue/Nuxt specialists | references/framework-recipes.md |
| Category | Artifact | Format | Example |
|---|---|---|---|
| Performance | Performance budget document | Markdown doc stating page, API, and interaction budgets | docs/performance/budgets-checkout.md |
| Performance | Real-user and synthetic metrics evidence | Dashboard link plus archived snapshot | docs/performance/rum-snapshot-2026-04-16.md |
Read and search the application and measurement configuration first. Editing and execution require authorisation; when available, run the existing build, bundle analysis, lab checks, and relevant tests. Network access is optional for current browser guidance.
references/budgets-and-regression-gate.mdreferences/loading-performance.mdreferences/rendering-and-inp.mdreferences/framework-recipes.mdreferences/performance-engineering-procedure.md| Artifact | Produced by | Required? | Why |
|---|---|---|---|
| Critical-flow table | system-architecture-design | required | Budgets are defined per critical flow, not per page |
| SLO set | observability-monitoring | required | Frontend SLIs must align with owned SLOs and alert pipelines |
| RUM dashboard conventions | observability-monitoring | required | Where field measurements are reported and alerted |
| Device + network mix | product/analytics | required | Determines the reference device class and throttling profile |
| API error model | api-design-first | optional | Informs retry + fallback UI budget |
| Threat model | vibe-security-skill | optional | Gates CSP and third-party script decisions |
observability-monitoring; no stand-alone frontend dashboards.web-vitals beaconed to RUM) drive alerting. Lab metrics (Lighthouse CI) are a PR leading indicator only.Mostly static marketing / docs / blog -> SSG (or ISR with long revalidate)
Authenticated dashboard, per-user data -> SSR streaming + client islands
Highly interactive tool (editor, canvas) -> CSR with aggressive code-split
Tenant-scoped SaaS app, mixed criticality -> Server components + selective client
Wrong choice failure mode:
- SSG for per-user data -> stale personalisation, auth leaks across caches
- SSR for heavy interactivity -> slow TTFB, wasted server render on cold data
- CSR for content-first pages -> poor LCP, poor SEO
Above-fold critical path, < 14KB critical CSS -> inline in <head>
Route-specific, bulky, cachable -> external file, async preload
Third-party widget CSS (chat, analytics UI) -> defer, load after interaction
Design tokens / reset / typography base -> inline (tiny, load-blocking is fine)
Wrong choice failure mode:
- Inline everything -> bloated HTML, no CSS caching across navigations
- Defer critical styles -> FOUC and layout shift on first paint
Route-based split -> default for every SPA/Next route
Component-level dynamic import -> heavy widget (editor, chart, map) > 30KB
Vendor split (react/react-dom) -> long-cache chunk, rarely updated
No split -> only for single-page tools under 150KB total
Wrong choice failure mode:
- Over-splitting tiny chunks -> HTTP request overhead + waterfall
- Single monolithic bundle -> blocks initial interactivity, poor INP
Hero / LCP candidate -> eager, fetchpriority=high, preload
Above fold, non-LCP -> eager, default priority
Below fold -> loading=lazy, decoding=async
Vector/icon under 2KB -> inline SVG (no request)
Repeat background -> CSS background with responsive image-set()
Wrong choice failure mode:
- Lazy-loading LCP -> catastrophic LCP regression
- Eager-loading below fold -> bandwidth waste, contention with LCP
Metric exists and alert correlates with user-visible harm -> keep, publish on dashboard
Metric is a proxy with no known user impact -> do not alert, log for investigation
Metric is a per-flow variant of a global SLI -> add as dimension, not new SLI
Metric overlaps a backend SLO -> owned by observability-monitoring, not here
The three deliverables below are the contract. Everything else in references/ supports producing them.
For each row in the upstream critical-flow table, declare: target device class, target network, LCP, INP, CLS, compressed JS, compressed CSS, total compressed transfer, image-LCP cap. Example table and rules: references/budgets-and-regression-gate.md.
For every SLI: the source (field or lab), the beacon/collector, the dashboard where it is reported, and the alert threshold. Field measurements use web-vitals JS beaconed to the RUM backend defined by observability-monitoring. Lab measurements use Lighthouse CI in the merge pipeline.
A blocking CI job with at least: size-limit per entry, Lighthouse CI score and LCP deltas, and a bundle-diff check that flags new dependencies above a threshold. Post-deploy RUM regression triggers a rollback per deployment-release-engineering. Full workflow in references/budgets-and-regression-gate.md.
references/loading-performance.md.references/rendering-and-inp.md.references/framework-recipes.md.skill-composition-standards — house-style and contract rules this skill conforms to.observability-monitoring — owner of SLOs, RUM dashboard, and alert pipeline that the measurement plan plugs into.system-architecture-design — source of the critical-flow table that budgets depend on.react-development — React-specific patterns referenced by the framework recipes.nextjs-app-router — Next.js App Router strategies for server components, streaming, and next/image.references/budgets-and-regression-gate.md — the three deliverables in template form.references/loading-performance.md — image, JS, CSS, font, and resource-hint detail.references/rendering-and-inp.md — layout, paint, CLS, and INP mechanics.references/framework-recipes.md — React, Next.js App Router, Vue, vanilla, service workers.references/performance-engineering-procedure.md — diagnose-fix-gate procedure, navigation acceleration, third-party and streaming-AI budgets, toolchain currentness.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions.Other plugins' skills for the same job