skills/site-speed-optimization/SKILL.md
Audits stylesheet loading, inline CSS volume, image alt text, image formats, and Next.js Image component usage. Use when checking page speed related to HTML structure. For render-blocking scripts, image dimensions, lazy loading, and resource hints, see the core-web-vitals skill.
npx skillsauth add thisisahsaniqbal/nextjs-seo-audit site-speed-optimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit HTML-level factors that affect page load speed.
Note: Render-blocking scripts, image dimensions/lazy loading, preconnect hints, and font loading are handled by the core-web-vitals skill. Do not duplicate those checks here.
Count all <script src="..."> elements:
Measure total character count of all style="..." attributes + <style> element contents:
| Condition | Status | |---|---| | Total > 5000 characters | ⚠️ WARN "Move styles to external stylesheet for caching" | | Total ≤ 5000 | ✅ PASS |
<link rel="stylesheet"> elements| Condition | Status |
|---|---|
| All images have alt attribute | ✅ PASS |
| Any image missing alt | ❌ FAIL "Critical for SEO and accessibility" |
.jpg, .jpeg, .png, .gif extensions → ⚠️ WARN "Consider WebP or AVIF for smaller file sizes"/_next/image src → ⚠️ WARN "Consider using Next.js <Image> component for automatic optimization"<script> tags (no src) should be counted separately from external scripts — they contribute to page weight but not network requests<style> elements inside <noscript> blocks should be excluded from inline CSS volumesrc="data:image/...") bypass network loading but increase HTML size — flag as ⚠️ WARN if total base64 content exceeds 10KB<img src="*.svg">) do not need WebP/AVIF conversion — exclude from image format checks<Image> component detection: look for /_next/image in src or srcset attributes, or data-nimg attributetesting
Audits sitemap references, robots.txt directives, canonical tags, crawlability, URL structure, redirect chains, and indexability. Use when checking technical SEO foundations or fixing crawl/index issues.
development
Validates HTML5 semantic elements, ARIA landmarks, skip navigation, and page structure. Use when auditing semantic HTML, accessibility, or content structure for SEO. For the lang attribute, see the international-seo skill.
testing
Validates existing JSON-LD structured data and suggests relevant schemas based on auto-detected page type. Does NOT enforce all schema types — only checks what is applicable to the current page context. Use when auditing or generating structured data for search engine rich results.
development
Validates heading hierarchy, keyword density and placement, and internal/external link structure. Use when auditing on-page SEO factors for an HTML page.