Agent skill

web-performance

Web performance optimization patterns, Core Web Vitals, lazy loading, code splitting, caching strategies, and monitoring

Cosmic Stack3,294★ · 2 repos on radarProfile →
claude-codeMIT
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill web-performance --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 1.0.0
Declared author: cosmicstack-labs
Path: categories/frontend/web-performance/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 364
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Web Performance Systematic approach to measuring, analyzing, and optimizing web application performance. ## Core Web Vitals | Metric | Target | What It Measures | |--------|--------|------------------| | **LCP** (Largest Contentful Paint) | < 2.5s | Loading performance | | **FID** (First Input Delay) | < 100ms | Interactivity | | **CLS** (Cumulative Layout Shift) | < 0.1 | Visual stability | | **INP** (Interaction to Next Paint) | < 200ms | Responsiveness | ## Optimization Strategies ### 1. JavaScript Optimization ```tsx // Dynamic imports — code splitting const Chart = dynamic(() => import('./Chart'), { loading: () => <ChartSkeleton />, ssr: false, // If chart needs browser APIs }); // Bundle analysis // next.config.js const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true', }); module.exports = withBundleAnalyzer({}); ``` ### 2. Image Optimization ```tsx // Next.js Image component import Image from 'next/image'; <Image src="/hero.jpg" alt="Hero" width={1200} height={600} priority // Above-the-fold images placeholder="blur" blurDataURL="data:image/webp;base64,..." /> // Responsive images with srcSet <picture> <source media="(min-widt

What's inside
Steps it walks through
  1. Core Web Vitals
  2. Optimization Strategies
  3. 1. JavaScript Optimization
  4. 2. Image Optimization
  5. 3. Caching Strategy
  6. Common Mistakes
More from mercury-agent-skills
All skills →
About this skill
What does the web-performance skill do?

Web performance optimization patterns, Core Web Vitals, lazy loading, code splitting, caching strategies, and monitoring

How do I install it?

Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill web-performance --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From cosmicstack-labs/mercury-agent-skills, a repository with 364 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going