AIPM
Theme

AIPM package

Performance Audit

@squirrelscan/performance-audit@1.0.0

Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor,…

Scanned · flagged · Nov 27, 2026

GitHub stars: ★ 110

LinkedInPost

Install Skill

Pins this version in aipm.package.json and aipm-lock.json.

aipm add @squirrelscan/performance-audit@1.0.0

Without project tracking

Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.

aipm add @squirrelscan/performance-audit@1.0.0 --no-init

How to use

Install the skill above, then run this in your AI tool:

/performance-audit <your description>

About

Find what makes a site slow to load and fix it by template: render-blocking resources, the largest image, oversized scripts and images, missing compression and caching, slow server response, font loading and layout shift.

Source

What gets added to your project

Preview every file this package writes on install before you run the command above.

Summary

Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking the largest image, render-blocking resources,...

Skill instructions

Performance Audit

Find what makes a site slow to load and fix it by template: render-blocking resources, the largest image, oversized scripts and images, missing compression and caching, slow server response, font loading and layout shift.

squirrelscan's performance rules read the page's markup, headers and fetched resources. They flag the causes behind Core Web Vitals; they are not real-user measurements. Google's thresholds, judged at the 75th percentile of field data, are: Largest Contentful Paint 2.5 s or less, Interaction to Next Paint 200 ms or less, Cumulative Layout Shift 0.1 or less (https://web.dev/articles/vitals). To confirm a fix moved real users, the user needs field data (the Chrome UX Report or PageSpeed Insights).

Before the first audit

Run squirrel --version. If it fails, install the CLI from squirrelscan.com/download (the squirrelscan skill has references/install.md). Then run squirrel auth status:

  • Signed out, or --offline: the audit runs on this machine, is free, and nothing is published.
  • Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost (squirrel credits) and get a yes. Offer --offline or --no-publish. For a site the user does not own, add --ephemeral: nothing is added to the dashboard, scheduled or published.

Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: https://docs.squirrelscan.com/rules/{category}/{rule_id}.

Run it

bash
squirrel audit https://example.com --level surface \
  --rule-include perf,images --format json -o perf.json
  • Audit the live site: only there do compression, caching, HTTP version and server response times reflect production. A local dev server shows development bundles.
  • surface covers one page per template, which is what performance work needs. Add --level full for sign-off.
  • Read the perf category score: squirrel report <audit-id> --group performance --format llm.

Fix order (biggest effect first)

  1. Loading the main content: perf/lcp-hints, perf/lcp-fetchpriority, perf/lazy-above-fold, perf/render-blocking, perf/critical-request-chains, perf/preconnect, perf/ttfb.
  2. Bytes: perf/total-byte-weight, perf/js-file-size, perf/css-file-size, perf/duplicate-js, perf/legacy-js, perf/unminified-js, perf/unminified-css, perf/content-in-js-bundle, perf/framework-data-payload, images/image-file-size, images/modern-format, images/responsive-size.
  3. Delivery: perf/compression, perf/asset-compression, perf/cache-headers, perf/bad-caching, perf/http2.
  4. Stability and responsiveness: perf/cls-hints, images/dimensions, perf/font-loading, perf/font-delivery, perf/inp-hints, perf/dom-size.
  5. Hygiene: perf/source-maps, perf/js-libraries, perf/js-redirects, images/lazy-loading, images/offscreen-lazy.

Do not lazy-load the main (largest) image: the audit flags that, and it is a common regression. Get each rule's exact fix from its docs page.

Where the fix usually lives

StackLook here
Next.jsnext/image (priority on the hero, sizes), next/font, next/dynamic for heavy client components, third-party <Script strategy>, bundle analyzer for duplicate packages
WordPressone caching plugin (not several), an image optimization plugin or service, removing unused plugins and page-builder widgets, theme scripts loading on every page, a CDN
Shopifytheme assets and Liquid, uninstalling apps (each can inject scripts; removing the app may leave code in theme.liquid), image sizes via the image_url filter
Webflowimage settings and formats, removing unused interactions and custom code, font loading settings
Cloudflarecaching rules and cache TTLs, compression (Brotli), HTTP/2 and HTTP/3, image resizing
Vercel / Netlifyheaders for Cache-Control on hashed assets (public, max-age=31536000, immutable), edge caching, image optimization

Prove it

Re-audit with --refresh after the deploy (cached pages would show the old numbers), then compare with the baseline: squirrel report --diff <baseline-audit-id> --format llm. Report the before and after score and the specific rules that cleared.

Stop condition

Stop when error-severity perf findings are cleared on a --level full re-audit, the remaining warnings are listed with their cost and effort, and the user has been told lab-style checks do not replace field data. To stop it regressing, see website-ci-gate (--fail-on 'score:perf<80' style gates).

Hand off

Broken assets and links: broken-link-checker. Anything else, and the fix loop: audit-website.

Loading package files…

Share this package

Add an Install with AIPM badge

Add this badge to a GitHub README so readers can open the package page and install the same version.

Install with AIPM
[![Install with AIPM](https://www.aipm-registry.com/install-with-aipm.svg)](https://www.aipm-registry.com/skills/squirrelscan/performance-audit/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)

Publisher

squirrelscan

This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.

AI assistant context

What this skill is for

@squirrelscan/performance-audit@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking the largest image, render-blocking resources,...

Install
aipm add @squirrelscan/performance-audit@1.0.0
Use after install
/performance-audit <your description>

Tool targets

Install command by target

Add --no-init to any of these when you want the skill files without aipm.package.json or aipm-lock.json.

cursor

Run this variant when you want to install the package into cursor.

aipm add @squirrelscan/performance-audit@1.0.0 --target cursor --ci

claude

Run this variant when you want to install the package into claude.

aipm add @squirrelscan/performance-audit@1.0.0 --target claude --ci

Discussion

Comments (0)

Loading comments…

Keep exploring

squirrelscan/agent-experience-audit

Evaluate your site's agent experience with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking robots.txt bot access, content pr...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.00 KBMIT

squirrelscan/website-ci-gate

Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and preview deploys. It picks thresholds from a baseline run of squirrelscan audit rule...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.26 KBMIT

squirrelscan/structured-data-audit

Validate structured data with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking JSON-LD validity, type fit, and the site-wide...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM7.93 KBMIT

Package FAQ

Install and compatibility

How to install
Run aipm add @squirrelscan/performance-audit@1.0.0 in a project that has AIPM initialized.
Supported tools
@squirrelscan/performance-audit@1.0.0 supports All tools.

Before installing

AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.