Skip to main content
skill

performance · davila7 — Claude Code skill: what it does, how to install

Audits web performance in Claude Code: optimizes Core Web Vitals, enforces resource budgets, and tunes asset delivery.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/performance
Open on GitHub

What performance does

This skill guides Claude Code through web optimization workflows based on Lighthouse audits. It establishes explicit budgets: under 1.5 MB for the whole page, 300 KB for compressed JavaScript, and 100 KB for CSS. The agent pinpoints bottlenecks across the critical rendering path.

Included patterns cover code splitting via lazy imports, tree shaking heavy packages like Lodash, and eliminating layout thrashing. It also details markup recipes: <picture> tags with AVIF and WebP variants, high-priority preloads for LCP images, variable font setups, and Cache-Control header structures.

The performance thresholds assume slow 3G connections and a target TTFB below 800ms. Meeting these numbers demands restructuring your build output and CDN caching headers.

What it helps with

  • enforce resource weight budgets for slow mobile networks
  • prevent render-blocking CSS and JavaScript execution
  • set up responsive images with modern AVIF and WebP fallbacks
  • batch DOM reads and writes to eliminate layout thrashing

Example prompts for the agent

  • Audit this page for Core Web Vitals bottlenecks and suggest fixes
  • Optimize my above-the-fold hero image and font loading strategy
  • Split this bundle using dynamic imports to cut initial JavaScript size

How to install performance

1claude-code-templates

npx claude-code-templates@latest --skill development/performance

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill performance -a claude-code

3Manually: put the files in place

~/.claude/skills/performance/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/performance/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about performance

How to install performance in Claude Code?

Run npx claude-code-templates@latest --skill development/performance or install it with npx skills add davila7/claude-code-templates --skill performance -a claude-code. Alternatively, copy the file to ~/.claude/skills/performance/SKILL.md.

What does the performance skill do?

It provides guidelines for optimizing page load speed, runtime behavior, and asset delivery. The assistant applies Lighthouse principles to reduce Core Web Vitals latencies.

What resource budgets does this skill enforce?

It caps overall page weight at 1.5 MB, compressed JavaScript at 300 KB, and compressed CSS at 100 KB.

Similar skills

All skills for Frontend and UI →

performance by other authors comes first.

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor