Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor,…
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}.
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.
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.
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
Stack
Look here
Next.js
next/image (priority on the hero, sizes), next/font, next/dynamic for heavy client components, third-party <Script strategy>, bundle analyzer for duplicate packages
WordPress
one 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
Shopify
theme 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
Webflow
image settings and formats, removing unused interactions and custom code, font loading settings
Cloudflare
caching rules and cache TTLs, compression (Brotli), HTTP/2 and HTTP/3, image resizing
Vercel / Netlify
headers 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.
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/squirrelscan/performance-audit/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
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,...
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...
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...
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...
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.