Perf Astro
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
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 -yInstalls 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- Perf Web Optimization307
- Best Practices305
- Coupling Analysis305
- Accessibility280
- Jira Assistant278
- Cursor Subagent Creator276
- Excalidraw Studio274
- Seo259
- Figma Implement Design252
- Tlc Spec Driven1.4K
- Subagent Creator983
- Technical Design Doc Creator682
- Security Best Practices417
- Domain Analysis400
- Nestjs Modular Monolith372
- Mermaid Studio368
- Coding Guidelines367
- Perf Lighthouse360
- Decomposition Planning Roadmap333
- Docs Writer329
- Playwright Skill327
Similar to Perf Astro
More Frontend & UI Codeperf-web-optimizationSkilltech-leads-club/agent-skills307 installsPractical web performance playbook covering bundles, images, fonts, scripts, and caching, with Lighthouse-aligned metric targets.
perf-lighthouseSkilltech-leads-club/agent-skills360 installsRun Lighthouse audits locally through the CLI or Node API, then parse results and enforce performance budgets.
pagespeed-insightsSkillenderpuentes/ai-agent-skills1.2K installsAudit web pages against PageSpeed Insights guidelines to lift Lighthouse scores and Core Web Vitals.
web-perfSkillcloudflare/skills142.9K installsAudit page load speed by measuring Core Web Vitals, render-blocking resources, network chains, and layout shifts.
Lighthouse McpMCP serverpriyankark220 starsRuns Lighthouse performance audits on public URLs and returns scores and metrics for web pages.
nextjs-performanceSkillgiuseppe-trisciuoglio/developer-kit5.2K installsComprehensive Next.js performance guidance covering Core Web Vitals, caching, streaming, and Server Components for Next.js 16 and React 19.