performance-engineering

performance-engineering is a skill for Claude Code from Kin9Zeus/senior-engineer-skills. It costs 146 tokens per session (2,363 once invoked), scanned A, original, MIT.

A guide to measuring and improving how quickly websites and their backends respond. It covers Core Web Vitals, Google's measures for loading, interaction speed, and visual stability.

In plain words
What is it for?
Use it to investigate page loading, JavaScript and image size, fonts, rendering, server response time, caching, database queries, profiling, load tests, and performance checks in CI.
Why use it?
It replaces guesses about slowness with measurements and focuses work on the largest bottleneck, while helping prevent later regressions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the senior-engineer-skills plugin — 15 skills, 7 commands, 4 agents shipped together

Good fit Use it to investigate page loading, JavaScript and image size, fonts, rendering, server response time, caching, database queries, profiling, load tests, and performance checks in CI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kin9zeus/senior-engineer-skills/performance-engineering
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.

Any agent
npx skills add Kin9Zeus/senior-engineer-skills --skill performance-engineering
Clone the repo
git clone --depth 1 https://github.com/Kin9Zeus/senior-engineer-skills

Made for: Claude Code.

Or install senior-engineer-skills, the plugin that ships this one along with the rest of its 15 skills, 7 commands, 4 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/performance-engineering.svg)](https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/performance-engineering)
Your own site
<a href="https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/performance-engineering"><img src="https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/performance-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,363 The whole file, excluding the scripts and references it only reads on demand.
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.00146 $0.02363
Opus 5 $0.00073 $0.01182
Sonnet 5 $0.00029 $0.00473
Haiku 4.5 $0.00015 $0.00236

Measured 8d ago against content hash 9baa831788be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

performance-engineering 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 8d 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.

skills/performance-engineering/SKILL.md · 233 lines

How it starts

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

Performance Engineering

Three rules, in order:

  1. Measure first. Optimising the wrong thing is worse than doing nothing — it costs time and adds complexity for no gain.
  2. Fix the biggest thing. Performance work follows a power law; one bottleneck usually dominates.
  3. Set a budget and enforce it in CI. Performance regresses by accretion, one small addition at a time, and is only ever recovered by deliberate effort.

Never report "this will be slow" without a measurement. Never report a measurement without saying what it was measured on.


Frontend: the numbers that matter

Core Web Vitals, measured at the 75th percentile of real users — not from your laptop on office wifi.

Metric Good Needs work Poor What it measures
LCP ≤ 2.5s ≤ 4.0s > 4.0s When the main content appears
INP ≤ 200ms ≤ 500ms > 500ms Responsiveness to interaction
CLS ≤ 0.1 ≤ 0.25 > 0.25 Visual stability

Supporting: TTFB (≤ 800ms), total JavaScript, and total page weight.

Lab vs field. Lighthouse is a lab tool: reproducible, useful for catching regressions, and not what your users experience. Field data (Chrome UX Report, or your own real-user monitoring) is the truth. Use lab to iterate, field to decide.


LCP — usually the highest-leverage fix

LCP is almost always an image or a heading blocked by something.

  1. Find the element. Chrome DevTools Performance panel marks it; PageSpeed Insights names it.
  2. Attack the chain in this order:
    • TTFB — slow server, no CDN, no caching, a slow database query in the render path.
    • Render-blocking resources — synchronous CSS and JS in <head>. Inline critical CSS, defer the rest.
    • Resource load time — the image itself: format, size, compression.
    • Element render delay — waiting on JavaScript, or on a font.
  3. Preload the LCP image (<link rel="preload" fetchpriority="high">), and never lazy-load it. Lazy-loading the hero image is one of the most common self-inflicted LCP problems.

Read the full file on GitHub · 233 lines

Files

What ships with it

2 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. 8d ago First seen · 233 lines · 146 tokens per session scan A 9baa831788be

Subscribe to this mod's changes

performance-engineering is a skill published in the GitHub repository Kin9Zeus/senior-engineer-skills (3 stars, last pushed 14d ago), licensed MIT. It adds 146 tokens to every session and 2,363 once invoked, about $0.0007 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

javascript-pro

Writes, debugs, and refactors JavaScript code using modern ES2023+ features, async/await patterns, ESM module systems, and Node.js APIs. Use when building vanilla JavaScript applications, implementing Promise-based async flows, optimising browser or Node.js performance, working with Web Workers or Fetch API, or…

Jeffallan/claude-skills · 84 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

performance

Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

addyosmani/web-quality-skills · 49 tokens

core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) for better page experience using field and lab evidence. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".

addyosmani/web-quality-skills · 67 tokens

liveview-patterns

Build LiveView: async data (assignasync), PubSub (check connected?), phx-change events, form components/modals/uploads, streams for lists, livepatch. Use when handling interactions, debugging events, or tracking Presence.

oliver-kriska/claude-elixir-phoenix · 51 tokens

tanstack-start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 +…

jezweb/claude-skills · 115 tokens