AgentStack
SKILL verified MIT Self-run

Site Speed Optimization

skill-thisisahsaniqbal-nextjs-seo-audit-site-speed-optimization · by thisisAhsanIqbal

>

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-thisisahsaniqbal-nextjs-seo-audit-site-speed-optimization

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Site Speed Optimization? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Site Speed Optimization

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](../core-web-vitals/SKILL.md) skill. Do not duplicate those checks here.

1. Total script count

Count all `` elements:

  • More than 10 external scripts → ⚠️ WARN "Consider bundling or removing unused scripts"
  • 10 or fewer → ✅ PASS

2. Inline CSS volume

Measure total character count of all style="..." attributes + `` element contents:

| Condition | Status | |---|---| | Total > 5000 characters | ⚠️ WARN "Move styles to external stylesheet for caching" | | Total ≤ 5000 | ✅ PASS |

3. Stylesheet loading

  • Count `` elements
  • If stylesheets > 3 → ⚠️ WARN "Consider combining CSS files"

4. Image alt text

| Condition | Status | |---|---| | All images have alt attribute | ✅ PASS | | Any image missing alt | ❌ FAIL "Critical for SEO and accessibility" |

5. Image formats

  • Images with .jpg, .jpeg, .png, .gif extensions → ⚠️ WARN "Consider WebP or AVIF for smaller file sizes"

6. Next.js Image component

  • Images not using /_next/image src → ⚠️ WARN "Consider using Next.js `` component for automatic optimization"
  • Skip this check if the site is not a Next.js project

Edge cases

  • Inline ` tags (no src`) should be counted separately from external scripts — they contribute to page weight but not network requests
  • ` elements inside ` blocks should be excluded from inline CSS volume
  • Base64-encoded images (src="data:image/...") bypass network loading but increase HTML size — flag as ⚠️ WARN if total base64 content exceeds 10KB
  • SVG images (``) do not need WebP/AVIF conversion — exclude from image format checks
  • Next.js ` component detection: look for /_next/image in src or srcset attributes, or data-nimg` attribute
  • Dynamically injected scripts (via JS) are not visible in static HTML — note this limitation

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.