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 — 20 skills, 14 commands, 8 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 20 skills, 14 commands, 8 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-engineering

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00058 $0.00945
Sonnet 5.5 $0.00029 $0.00473
Haiku 4.5 $0.00015 $0.00236

Measured 1mo ago against content hash 9baa831788be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2d ago), licensed MIT. It adds 146 tokens to every session and 2,363 once invoked, about $0.0006 per session on Opus 5.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

best-practices

Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".

addyosmani/web-quality-skills · 49 tokens

tactical-ddd

Design, refactor, analyze, and review code by applying the principles and patterns of tactical domain-driven design. Triggers on: domain modeling, aggregate design, 'entity', 'value object', 'repository', 'bounded context', 'domain event', 'domain service', code touching domain/ directories, rich domain model…

NoesisVision/nasde-toolkit · 70 tokens

api-security-scan

Review a REST/HTTP API — from its OpenAPI spec or route code — for security gaps like missing auth, broken object-level authorization, no rate limiting, and verbose errors. Reports file:line. Pure Claude Code, no signup.

Quality-Max/free-qa-skills · 53 tokens

api-security

OWASP API Security Top 10 (2023) with production Next.js App Router code — access control, authentication, input validation, rate limiting, security headers, data exposure, supply chain, SSRF, and AI tools on those APIs.

LeahyCC/claude-skills · 51 tokens

gotchas

Catches silent bugs that look right in a diff, compile clean, and pass happy-path tests: 200 OK HTML stand-ins, swallowed exceptions, state written before the async point of no return, module singletons shared across requests, Web APIs that fail without throwing, fresh-clone gaps, and tests that pass for the wrong…

LeahyCC/claude-skills · 153 tokens

code-readability

Makes code readable at the point of use: no floating (magic) numbers or strings without a name or a unit-and-why note nearby, names that carry units and meaning, small functions, shallow nesting, honest comments, and no dead code. Balanced by default: 0, 1, -1, named object properties, tests, and self-evident math are…

LeahyCC/claude-skills · 146 tokens