Skip to content

Covers critical CSS inlining, compression, font loading, and LCP optimization.

CCM score
65 of 100
skills.sh installs
312
GitHub stars
7.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Use when optimizing Astro site performance, improving Astro Lighthouse scores, or configuring astro-critters
  • Do NOT use for non-Astro sites (use perf-web-optimization or core-web-vitals) or running Lighthouse audits (use perf-lighthouse)

Install

$ npx -y skills add tech-leads-club/agent-skills --skill perf-astro -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Astro Performance Playbook

Astro-specific optimizations for 95+ Lighthouse scores.

Quick Setup

npm install astro-critters @playform/compress
// astro.config.mjs
import { defineConfig } from 'astro/config'
import critters from 'astro-critters'
import compress from '@playform/compress'

export default defineConfig({
  integrations: [
    critters(),
    compress({
      CSS: true,
      HTML: true,
      JavaScript: true,
      Image: false,
      SVG: false,
    }),
  ],
})

Integrations

astro-critters

Automatically extracts and inlines critical CSS. No configuration needed.

What it does:

  • Scans rendered HTML for above-the-fold elements
  • Inlines only the CSS those elements need
  • Lazy-loads the rest

Build output shows what it inlined:

Inlined 40.70 kB (80% of original 50.50 kB) of _astro/index.xxx.css.

@playform/compress

Minifies HTML, CSS, and JavaScript in the final build.

Options:

compress({
  CSS: true, // Minify CSS
  HTML: true, // Minify HTML
  JavaScript: true, // Minify JS
  Image: false, // Skip if using external image optimization
  SVG: false, // Skip if SVGs are already optimized
})

Details

Repository
github.com/tech-leads-club/agent-skills
Categories
Frontend & UI Code, Marketing, SEO & Ads
First seen
Jun 3, 2026

Questions

What does the perf-astro skill do for Astro sites?

The perf-astro skill gives Astro-specific performance optimizations aimed at 95 or higher Lighthouse scores. It covers critical CSS inlining with astro-critters, HTML, CSS and JavaScript compression with @playform/compress, font loading and LCP optimization.

How do I install the perf-astro skill?

Run npx -y skills add tech-leads-club/agent-skills --skill perf-astro -y in your project. After that, the agent can follow the skill's setup steps for astro-critters and @playform/compress in astro.config.mjs.

When should I use perf-astro instead of other performance skills?

Use perf-astro when optimizing an Astro site or configuring astro-critters. The skill says not to use it for non-Astro sites, which should use perf-web-optimization or core-web-vitals, or for running Lighthouse audits, which should use perf-lighthouse.

Where does perf-astro stand in the Frontend and UI Code category?

perf-astro is listed in the Frontend and UI Code category on Claude Marketplaces. Other skills listed alongside it there include vercel-react-best-practices, web-design-guidelines and design-taste-frontend.

More from tech-leads-club/agent-skills

All 22

Similar to Perf Astro

More Frontend & UI Code