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.
npx claude-code-templates@latest --skill development/performanceWhat 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/performance2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill performance -a claude-code3Manually: put the files in place
~/.claude/skills/performance/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/performance/
Manually: put the files in place
.agents/skills/performance/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/performance/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates performance2Manually: put the files in place
.github/skills/performance/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/performanceManually: put the files in place
.devin/skills/performance/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.