perf-audit
Skill19 starsChanged 32 days agoMITView on GitHub
Audit frontend bundle size and Core Web Vitals risks. Use when asked to "audit performance", "analyze bundle", "check bundle size", "check Core Web Vitals", or find frontend bottlenecks. Don't use for backend performance, database queries, or diagnosing a specific slowdown (/debug).
14 other projects use a version of this.
Adopted by
Most recently taken up by
- arcasilesgroup/ai-engineeringtheir own version, first seen Nov 8, 2026
- Asno-dev/apextheir own version, first seen Oct 15, 2026
- rcelebrone/DotAgentstheir own version, first seen Oct 14, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 13, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- kelgirechandrakant-cpu/vibe-coding-playbooktheir own version, first seen Aug 17, 2026
Used with
Projects with it also use security-audit.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 4 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- arcasilesgroup/ai-engineering★ 65same name
- eric-cielo/moflo★ 19same name
- rcelebrone/DotAgents★ 15same name
- muon-m2/magento2-tools★ 6same name
- gonimar/claude-web-studio★ 4same name
- kelgirechandrakant-cpu/vibe-coding-playbook★ 4same name
- CodeWithBehnam/cc-docs★ 2same name
- Asno-dev/apex★ 1same name
- cystema/skills★ 1same name
- PeterStanchev/ps-claude-skills★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-auditSkill
- architecture-auditSkill
- buildSkill
- checkSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- create-skillSkill
- debateSkill
- debugSkill
- deps-auditSkill
- domain-modelingSkill
- feedbackSkill
- frontend-ui-engineeringSkill
- grillSkill
- guideSkill
- handoffSkill
- hardenSkill
- i18nSkill
- prototypeSkill
- refactorSkill
- researchSkill
- retroSkill
- reviewSkill
- reviseSkill
- safe-repoSkill
- setupSkill
- source-drivenSkill
- tddSkill
- teachSkill
- to-adrSkill
- to-docSkill
- to-prSkill
- to-releaseSkill
- to-specSkill
- to-stackSkill
- to-ticketsSkill
- triageSkill
- visual-reviewSkill
- wait-whatSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run the production build via the project's task runner (auto-detect from package.json).
- Very specific: line 20
Check package.json for known heavy packages
- Distinctive: line 21
Check the source for the Core Web Vitals risks below.
- Very specific: line 28
Read the source for these.
- Very specific: line 32
INP: no long synchronous work in event handlers.
- Distinctive: line 48
Never auto-change dependencies -- report and suggest only
- Distinctive: line 49
Never state an LCP, INP, or CLS value without a measurement the user provided (Lighthouse or PageSpeed JSON, CrUX data, a DevTools trace).
- Distinctive: line 55
No build output found -- run production build first
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Performance Audit
Workflow
- Detect build tool from
package.json(vite, webpack, next, rollup) - Run the production build via the project's task runner (auto-detect from package.json).
- Analyze the build output — non-interactive only. Never launch a browser or a long-running server in an audit; those hang an automated run. Prefer, in order:
- Measure the emitted files directly: for each file in the output dir (e.g.
dist/assets/*.js), report raw + gzipped size —gzip -c <file> | wc -c. This always works and needs no extra tooling. - Per-module breakdown, as a static artifact (not a server), written under
$TMPDIR(else/tmp) and never the working tree, where the nextcommitwould sweep it in. Print the path:- Vite/Rollup:
npx source-map-explorer 'dist/assets/*.js', or addrollup-plugin-visualizerconfigured to emit JSON/HTML to a file - webpack/Next.js:
npx webpack-bundle-analyzer -m static -r "${TMPDIR:-/tmp}/report.html" <stats-file>(writes a file; do not use the default server mode)
- Vite/Rollup:
npx vite-bundle-visualizeropens a browser and blocks — only suggest it to the user for manual exploration; do not run it here.
- Measure the emitted files directly: for each file in the output dir (e.g.
- Check
package.jsonfor known heavy packages - Check the source for the Core Web Vitals risks below. Detect the framework first; recommend only its idioms.
- Report findings: size impact for the bundle, potential impact for source risks
Compare against standard industry thresholds; report gzipped sizes.
Core Web Vitals risks
Read the source for these; each is a potential impact until measured.
- LCP: hero image or heading not lazy-loaded; LCP image in the initial HTML with
fetchpriority="high"; no<head>scripts withoutdefer/async; critical fonts preloaded - CLS: images, iframes, and embeds reserve space (
width/heightoraspect-ratio); nothing injected above existing content; fonts withfont-displayand matched fallbacks - INP: no long synchronous work in event handlers; long loops yield (
scheduler.yield(),setTimeoutfallback); heavy work in a worker - Rendering: long lists virtualized; animations on
transform/opacity; no read-then-write layout loops; memoization only where it pays - Network: independent requests in parallel, not sequential
awaits; no over-fetching; lists paginated; hashed static assets cached long; heavy third-party widgets behind a facade
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
- Core Web Vitals: LCP, INP, CLS — value + source, or
not measured - Source risks:
file:line, the metric at risk, the fix
Rules
- Report gzipped sizes (what the browser downloads)
- Never auto-change dependencies -- report and suggest only
- Never state an LCP, INP, or CLS value without a measurement the user provided (Lighthouse or PageSpeed JSON, CrUX data, a DevTools trace); label it lab or field
- Skip micro-optimizations with no plausible effect on a Core Web Vital or the bundle
Error Handling
- Build fails -- report the error, skip the bundle steps, still run the source checks
- No build output found -- run production build first
- Build tool unrecognized -- scan
package.jsonfor heavy packages, then run the source checks
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

