frontend-performance

frontend-performance is a skill for Claude Code, Codex from ssheleg/sheleg-dev. It costs 202 tokens per session (2,559 once invoked), scanned A, original, MIT.

A guide for making websites load and respond faster. It covers measurements such as Lighthouse scores and Core Web Vitals, which are Google's main real-user indicators for loading, interaction, and layout stability.

In plain words
What is it for?
Use it to audit pages, diagnose render-blocking files and large bundles, improve loading and interaction, fix layout shifts, and verify performance after changes.
Why use it?
It connects slow-page measurements to likely code causes and suggests a process for prioritizing fixes. This helps avoid optimizing blindly or confusing lab-only metrics with real-user metrics.

Skill for Claude CodeCodex

Part of the sheleg-dev plugin — 7 skills, 1 hook shipped together

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.

agentmods
npx agentmods add skills/ssheleg/sheleg-dev/frontend-performance
Any agent
npx skills add ssheleg/sheleg-dev --skill frontend-performance
Clone the repo
git clone --depth 1 https://github.com/ssheleg/sheleg-dev

Made for: Claude Code, Codex.

Or install sheleg-dev, the plugin that ships this one along with the rest of its 7 skills, 1 hook.

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 frontend-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/ssheleg/sheleg-dev/frontend-performance.svg)](https://agentmods.dev/skills/ssheleg/sheleg-dev/frontend-performance)
Your own site
<a href="https://agentmods.dev/skills/ssheleg/sheleg-dev/frontend-performance"><img src="https://agentmods.dev/badge/skills/ssheleg/sheleg-dev/frontend-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 202 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00202 $0.02559
Opus 5 $0.00101 $0.01280
Sonnet 5 $0.00040 $0.00512
Haiku 4.5 $0.00020 $0.00256

Measured 3d ago against content hash f963aed70c37, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-performance 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 3d 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.

plugins/sheleg-dev/skills/frontend-performance/SKILL.md · 166 lines

How it starts

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

Frontend Performance

Optimize frontend applications for maximum Lighthouse scores and real-user performance. This skill covers the technical performance layer -- for how it looks, see sheleg-design; for what the interface must do, see super-ux.

Audit Workflow

  1. Measure -- Run PageSpeed Insights or Lighthouse. Record scores and failing audits.
  2. Diagnose -- Map each failing audit to a specific code-level cause (see checklist below).
  3. Prioritize -- Fix by impact: P0 blocks rendering, P1 hurts metrics, P2 is informational.
  4. Implement -- Apply fixes per the reference guides.
  5. Validate -- next build (or framework equivalent) + re-run Lighthouse. Verify no regressions.

Core Web Vitals, and the diagnostics beside them

Three metrics are Core Web Vitals. The other three are not, and the difference is not pedantry: only the first three are what Google reports and ranks on, and only they are field-measurable. TBT is a lab metric — web.dev says it "is not part of the Core Web Vitals set because they are not field-measurable" — and it stands in for INP when you have no field data. Telling a client their Speed Index is a failing Core Web Vital is telling them about a thing Google does not measure.

Core Web Vital Good Needs Work Poor
LCP (Largest Contentful Paint) < 2.5s 2.5-4.0s > 4.0s
INP (Interaction to Next Paint) < 200ms 200-500ms > 500ms
CLS (Cumulative Layout Shift) < 0.1 0.1-0.25 > 0.25
Lab diagnostic Good Needs Work Poor Stands in for
FCP (First Contentful Paint) < 1.8s 1.8-3.0s > 3.0s early LCP signal
TBT (Total Blocking Time) < 200ms 200-600ms > 600ms INP, in the lab
SI (Speed Index) < 3.4s 3.4-5.8s > 5.8s perceived load

Thresholds and the classification verified against web.dev/articles/vitals, 2026-08-16.

Performance Checklist

Fonts (LCP, FCP)

Read the full file on GitHub · 166 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 166 lines · 202 tokens per session scan A f963aed70c37

Subscribe to this mod's changes

frontend-performance is a skill published in the GitHub repository ssheleg/sheleg-dev (2 stars, last pushed 4d ago), licensed MIT. It adds 202 tokens to every session and 2,559 once invoked, about $0.0010 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.

Related

Other skills, from other repositories

clone-website

Reverse-engineer and clone a website in one shot — extracts assets, CSS, and content section-by-section and proactively dispatches parallel builder agents in worktrees as it goes. Use this whenever the user wants to clone, replicate, rebuild, reverse-engineer, or copy any website. Also triggers on phrases like "make a…

yournextstore/yournextstore · 93 tokens

prettify

Iteratively improves the visual design of an existing page — making it more sophisticated, richer, and prettier — without redesigning from scratch. Works on any page or UI surface: landing pages, marketing pages, pricing, docs, dashboards, admin views, settings, modals, empty states, etc. Use when the user says…

yournextstore/yournextstore · 0 tokens

rebase-themes

Rebase all theme- branches onto main, resolving conflicts while preserving each theme's visual identity. Force-pushes directly to theme branches with backup tags. Run as a scheduled task or one-off.

yournextstore/yournextstore · 45 tokens

propagate-template

Propagate the template's current main into forked AI-store repos (yns-store- in the tenants org), updating every file the store never customized and reporting the rest. Content-level reconcile — store repos share NO git history with the template. Use for "template rebase", "propagate template", "sync store repos"…

yournextstore/yournextstore · 96 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications. Generates creative, polished code that avoids generic AI aesthetics.

yournextstore/yournextstore · 47 tokens

audit

Perform comprehensive audit of interface quality across accessibility, performance, theming, and responsive design. Generates detailed report of issues with severity ratings and recommendations.

yournextstore/yournextstore · 31 tokens