performance-optimization

performance-optimization is a skill for Claude Code from rampstackco/claude-skills-starter. It costs 141 tokens per session (2,449 once invoked), scanned A, a copy of performance-optimization, MIT.

A method for finding and fixing problems that make websites load slowly, respond late, or shift while loading. It uses browser performance measures such as Core Web Vitals, which track loading speed, interaction response, and visual stability.

In plain words
What is it for?
Use it to audit a website or page, improve loading and interaction performance, reduce asset or bundle size, fix layout shifts and rendering delays, and check performance before launch.
Why use it?
It helps identify whether slow pages, large JavaScript files, unoptimized images, blocking resources, or layout movement are hurting the user experience.

Skill for Claude Code

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

Part of the rampstack-starter plugin — 14 skills shipped together

Good fit Use it to audit a website or page, improve loading and interaction performance, reduce asset or bundle size, fix layout shifts and rendering delays, and check performance before launch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rampstackco/claude-skills-starter/performance-optimization
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 rampstackco/claude-skills-starter --skill performance-optimization
Clone the repo
git clone --depth 1 https://github.com/rampstackco/claude-skills-starter

Made for: Claude Code.

Or install rampstack-starter, the plugin that ships this one along with the rest of its 14 skills.

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-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/rampstackco/claude-skills-starter/performance-optimization/github.svg)](https://agentmods.dev/skills/rampstackco/claude-skills-starter/performance-optimization)
Your own site
<a href="https://agentmods.dev/skills/rampstackco/claude-skills-starter/performance-optimization"><img src="https://agentmods.dev/badge/skills/rampstackco/claude-skills-starter/performance-optimization/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-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/rampstackco/claude-skills-starter/performance-optimization"><img src="https://agentmods.dev/badge/skills/rampstackco/claude-skills-starter/performance-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,449 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 89% copy Near-identical to another mod 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.00141 $0.02449
Opus 5.5 $0.00056 $0.00980
Sonnet 5.5 $0.00028 $0.00490
Haiku 4.5 $0.00014 $0.00245

Measured 12d ago against content hash 896161a06b87, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-optimization 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 12d 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.

Origin

This is a copy

89% identical to performance-optimization — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/performance-optimization/SKILL.md · 281 lines

How it starts

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

Performance Optimization

Diagnose web performance issues and produce a remediation plan. Stack-agnostic. Anchored to Core Web Vitals and standard browser performance patterns.

This skill goes deeper than the performance checks in qa-testing and seo-technical. Use this when performance itself is the goal.


When to use

  • Fixing Core Web Vitals (LCP, INP, CLS)
  • Diagnosing slow page loads
  • Reducing JavaScript bundle size
  • Optimizing images, fonts, and other assets
  • Fixing layout shift, render-blocking resources, jank
  • Pre-launch performance verification
  • Annual performance health check

When NOT to use

  • General QA after deploys (use qa-testing)
  • Technical SEO including indexing and crawling (use seo-technical)
  • Code review for general bugs (use code-review-web)

Required inputs

  • The site or page under audit
  • Specific performance complaints if any
  • Target metrics (Core Web Vitals thresholds, Lighthouse score, custom)
  • Browser dev tools access
  • Performance monitoring data if available (Real User Monitoring, lab data)

The framework: Core Web Vitals

Three metrics carry most of the weight for both user experience and SEO:

LCP (Largest Contentful Paint)

What it measures: Time until the largest visible content element finishes rendering.

Targets:

  • Good: under 2.5 seconds
  • Needs improvement: 2.5 to 4.0 seconds
  • Poor: over 4.0 seconds

Common causes of poor LCP:

  • Slow server response time (TTFB over 800ms)
  • Render-blocking JavaScript or CSS
  • Large unoptimized images for the LCP element
  • Late-loading fonts that delay text render
  • Client-side rendering of the LCP element

Common fixes:

  • Server-render the LCP element (no client-side render)
  • Optimize the LCP image (right format, right size, preloaded)
  • Reduce render-blocking resources (defer non-critical CSS and JS)
  • Use modern image formats (WebP, AVIF)
  • Specify image dimensions to skip layout pass

INP (Interaction to Next Paint)

Read the full file on GitHub · 281 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. 12d ago Changed · +6 lines 896161a06b87
  2. 1mo ago First seen · 275 lines · 141 tokens per session scan A 197dff3e07f0

Subscribe to this mod's changes

performance-optimization is a skill published in the GitHub repository rampstackco/claude-skills-starter (2 stars, last pushed 12d ago), licensed MIT. It adds 141 tokens to every session and 2,449 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to performance-optimization, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

code-review-web

Review web application code for bugs, security issues, performance problems, and stack-specific anti-patterns. Use this skill whenever the user wants to review code, debug a production issue, investigate a build failure, audit security, or check a PR before merging. Triggers on code review, review my code, debug…

rampstackco/claude-skills · 121 tokens

oracle

Oracle second-model review: bundle prompts/files, debug, refactor, design.

steipete/oracle · 18 tokens

semgrep-rule-creator

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

waybarrios/opencode-power-pack · 37 tokens

accessibility-audit

Run a comprehensive WCAG accessibility audit covering perceivable, operable, understandable, and robust principles. Use this skill whenever the user wants to audit accessibility, review WCAG compliance, fix accessibility issues, prepare for accessibility certification, address an accessibility lawsuit risk, or…

rampstackco/claude-skills · 113 tokens

variant-analysis

Find similar vulnerabilities and bugs across codebases using pattern-based analysis. Use when hunting bug variants, building CodeQL/Semgrep queries, analyzing security vulnerabilities, or performing systematic code audits after finding an initial issue.

waybarrios/opencode-power-pack · 45 tokens

design-standards

Apply production-grade design standards when building or reviewing pages, components, or UI. Use this skill whenever the user asks to build a page, design a component, lay out a section, review the UI, fix the layout, or check design quality. Triggers on build a page, create a component, design a section, hero, card…

rampstackco/claude-skills · 122 tokens