perf-audit
Skill123 starsChanged 8 months agoMITView on GitHub
Run Lighthouse performance audit with auto-fix for common issues. Use when user wants to check or improve site performance.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- rcelebrone/DotAgentstheir own version, first seen Sep 23, 2026
- kelgirechandrakant-cpu/vibe-coding-playbooktheir own version, first seen Aug 17, 2026
- eric-cielo/moflotheir own version, first seen Aug 4, 2026
- cystema/skillstheir own version, first seen Jul 21, 2026
Used with
Projects with it also use a11y-audit and refactor.
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.
renfei-designSkilla11y-audit
Audit Figma designs for WCAG accessibility issues — color contrast, minimum font size, touch target sizing, and missing text alternatives. Use when asked to check accessibility, audit contrast ratios, find a11y issues, verify WCAG compliance, or review designs for accessibility problems. Scans nodes, analyzes offline, and annotates issues in Figma.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- eric-cielo/moflo★ 18same name
- helderberto/agent-skills★ 16same name
- rcelebrone/DotAgents★ 15same name
- zeon-kun/claude-skills★ 6same name
- gonimar/claude-web-studio★ 5same name
- kelgirechandrakant-cpu/vibe-coding-playbook★ 4same name
- muon-m2/magento2-tools★ 4same name
- CodeWithBehnam/cc-docs★ 2same name
- cystema/skills★ 1same name
- PeterStanchev/ps-claude-skills★ 1same name
1 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 repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- a11ySkill
- architectureSkill
- brainstormingSkill
- canarySkill
- clone-patternsSkill
- code-reviewSkill
- competeSkill
- costSkill
- demoSkill
- deploySkill
- dispatching-parallel-agentsSkill
- evalsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- growSkill
- guardSkill
- index-fixSkill
- investigateSkill
- launchSkill
- learnSkill
- onboardSkill
- pentestSkill
- receiving-code-reviewSkill
- releaseSkill
- requesting-code-reviewSkill
- rescueSkill
- retroSkill
- revise-claude-mdSkill
- security-auditSkill
- seo-auditSkill
- seo-strategySkill
- ship-gateSkill
- sprintSkill
- staying-currentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-ultrashipSkill
- verification-before-completionSkill
- visual-diffSkill
- writing-plansSkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 7 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Run Lighthouse against the project and fix performance issues.
- Distinctive: line 16
Check if dev server is running (try common ports: 3000, 5173, 4321, 8080)
- Very specific: line 17
Check package.json scripts for dev/start commands
- Distinctive: line 18
Ask user for URL if not auto-detected
- Distinctive: line 19
If no server running, suggest starting one first
- Distinctive: line 46
Before fixing, identify what's actually causing problems:
- Very specific: line 48
LCP too high?: Check lcp_element in results — fix THAT specific element:
- Very specific: line 49
If it's an <img>: preload it, use WebP, add fetchpriority="high"
- Distinctive: line 50
If it's text: check web font loading, add font-display: swap
- Very specific: line 51
If it's a background image: preload via <link rel="preload">
- Distinctive: line 53
CLS too high?: Check diagnostics for layout shift sources:
- Very specific: line 58
Unused resources?: Check wasted_resources:
- Very specific: line 62
Third-party scripts slow?: Check third_party_impact:
“Common” is measured: kept by at least 6 in 10 of the 9 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
Run Lighthouse against the project and fix performance issues.
Process
Step 1: Find the URL
- Check if dev server is running (try common ports: 3000, 5173, 4321, 8080)
- Check package.json scripts for dev/start commands
- Ask user for URL if not auto-detected
- If no server running, suggest starting one first
Step 2: Run Lighthouse
node ${CLAUDE_PLUGIN_ROOT}/tools/lighthouse-runner.mjs <url>Parse JSON output for scores and opportunities.
Step 3: Report Scores & Core Web Vitals
Present all four Lighthouse scores:
- Performance (target 90+)
- Accessibility (target 90+)
- Best Practices (target 90+)
- SEO (target 100)
Report Core Web Vitals with targets:
- LCP (Largest Contentful Paint): target <2.5s — report the LCP element from
lcp_element - TBT (Total Blocking Time): target <200ms — proxy for INP
- CLS (Cumulative Layout Shift): target <0.1
- FCP (First Contentful Paint): target <1.8s
- SI (Speed Index): target <3.4s
Step 4: Identify Root Causes
Before fixing, identify what's actually causing problems:
LCP too high? Check lcp_element in results — fix THAT specific element:
- If it's an
<img>: preload it, use WebP, add fetchpriority="high" - If it's text: check web font loading, add font-display: swap
- If it's a background image: preload via
<link rel="preload">
CLS too high? Check diagnostics for layout shift sources:
- Images without width/height → add dimensions (scanner already checks this)
- Dynamic content injected above fold → reserve space with CSS
- Web fonts causing FOUT → add font-display: optional or swap
Unused resources? Check wasted_resources:
unused_js_kb> 100KB → code splitting or tree shaking neededunused_css_kb> 50KB → purge unused CSS (PurgeCSS, Tailwind purge)
Third-party scripts slow? Check third_party_impact:
- Analytics blocking >100ms → defer/async load
- Ad scripts blocking >200ms → lazy load below fold
- Chat widgets → load on user interaction, not page load
Step 5: Apply Fixes
For each opportunity, apply fixes using Edit tool:
Performance fixes (high impact first):
- Render-blocking resources → add
deferorasyncto non-critical scripts - Unused JavaScript → recommend code splitting, dynamic imports, tree shaking
- Unused CSS → recommend PurgeCSS or Tailwind purge config
- LCP image not preloaded → add
<link rel="preload" as="image" href="..."> - Images not lazy-loaded → add
loading="lazy"to below-fold images - Images without dimensions → add
widthandheightattributes - No preconnect → add
<link rel="preconnect" href="...">for external origins - Font display → add
font-display: swapto @font-face declarations - Third-party scripts → defer non-essential scripts, lazy load on interaction
Accessibility fixes:
- Missing alt text (also caught by SEO scanner)
- Missing form labels → add
<label>elements - Low contrast → adjust colors
- Missing landmark regions → add
<main>,<nav>,<footer>
Step 6: Graceful Degradation
- No Chrome: report "Chrome needed for Lighthouse. Install Chrome or Chromium."
- Lighthouse timeout: return partial results with warning
- No dev server: suggest starting one, or test against production URL
Key Principle
Fix, don't just audit. Identify the specific elements causing problems. Apply every automated fix possible. For build-tool changes (code splitting, tree shaking), provide exact config recommendations.
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.

