Skillquality 0.45

perf-audit

Audit frontend bundle size and performance. Use when user asks to "audit performance", "/perf-audit", "analyze bundle", "check bundle size", or wants to find performance bottlenecks. Don't use for backend performance, database query optimization, or projects without a frontend bu

Price
free
Protocol
skill
Verified
no

What it does

Performance Audit

Workflow

  1. Detect build tool from package.json (vite, webpack, next, rollup)

  2. Run production build if no recent build exists:

    • Vite: npm run build
    • Next.js: npm run build (reads .next/analyze/ if ANALYZE=true)
  3. Analyze bundle output:

    Vite:

    npx vite-bundle-visualizer
    

    webpack/Next.js:

    npx webpack-bundle-analyzer <stats-file>
    
  4. Check package.json for known heavy packages (see table below)

  5. Report findings with size impact

Budget Thresholds

AssetGoodWarningCritical
Initial JS (gzip)< 150 KB150-300 KB> 300 KB
Initial CSS (gzip)< 20 KB20-50 KB> 50 KB
Individual chunk< 50 KB50-100 KB> 100 KB
Total page weight< 500 KB500 KB-1 MB> 1 MB

Heavy Packages

PackageSizeAlternativeSavings
moment~230 KBdate-fns / dayjs~200 KB
lodash (full)~70 KBlodash/merge or native~60 KB
@mui/material (full)~300 KBNamed imports~150 KB
react-icons (all)variableImport only used icon packsvaries
axios~15 KBky or native fetch~10 KB

Lighthouse Scores

MetricGoodNeeds workPoor
Performance>= 9050-89< 50
FCP< 1.8s1.8-3s> 3s
LCP< 2.5s2.5-4s> 4s
TBT< 200ms200-600ms> 600ms
CLS< 0.10.1-0.25> 0.25

Output format

  • Bundle summary: total size / gzipped size vs budget
  • Large chunks: name + size + % of total
  • Heavy deps: package + size + lighter alternative
  • Quick wins: sorted by estimated savings

Rules

  • Compare against budget thresholds above
  • Report gzipped sizes (what the browser downloads)
  • Never auto-change dependencies -- report and suggest only

Error Handling

  • Build fails -- report the error and stop; fix build issues before auditing
  • No build output found -- run production build first
  • Build tool unrecognized -- fall back to scanning package.json for heavy packages only

Capabilities

skillsource-helderbertoskill-perf-audittopic-agent-skillstopic-ai-toolstopic-antigravitytopic-claude-codetopic-cursortopic-developer-toolstopic-gemini-clitopic-markdowntopic-plugintopic-sdlctopic-skillstopic-tracer-bullet

Install

Installnpx skills add helderberto/agent-skills
Transportskills-sh
Protocolskill

Quality

0.45/ 1.00

deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (2,117 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 19:09:13Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18

Agent access