perf-audit
Skill1 starsChanged 9 months agoMITView on GitHub
Profile and optimize React application performance
Files
Performance Audit
Profile the application and identify optimization opportunities.
Process
1. Measure Baseline
Build analysis:
npm run build
# Check output size
ls -la .next/static/chunks/*.js | head -20Bundle analysis (if available):
ANALYZE=true npm run build2. Identify Issues
Common performance problems:
| Issue | Symptom | Detection |
| Large bundles | Slow initial load | Build output size |
| Unnecessary re-renders | Laggy UI | React DevTools Profiler |
| Memory leaks | Growing memory | Chrome DevTools Memory |
| Slow API calls | Loading spinners | Network tab |
| Layout thrashing | Janky scrolling | Performance tab |
3. Analyze Components
Look for:
- Components re-rendering when they shouldn't
- Missing memoization
- Inline function/object creation in render
- Large lists without virtualization
4. Apply Optimizations
Memoization:
// Memoize expensive components
const MemoizedComponent = React.memo(Component);
// Memoize expensive calculations
const expensiveValue = useMemo(() => compute(data), [data]);
// Memoize callbacks
const handleClick = useCallback(() => { ... }, [deps]);Code splitting:
// Dynamic imports
const HeavyComponent = dynamic(() => import('./HeavyComponent'), {
loading: () => <Spinner />,
});Image optimization:
import Image from 'next/image';
<Image src={src} alt={alt} width={w} height={h} />List virtualization:
import { FixedSizeList } from 'react-window';5. Measure Improvement
Re-run baseline measurements and compare.
6. Report
Document:
- Issues found
- Optimizations applied
- Before/after metrics
- Remaining opportunities
Quick Wins
- Add
loading="lazy"to images below fold - Use
next/dynamicfor heavy components - Add
React.memoto list item components - Move static data outside components
- Use
useMemofor filtered/sorted lists
Tools
- React DevTools Profiler
- Chrome DevTools Performance tab
- Lighthouse (in Chrome DevTools)
@next/bundle-analyzerwhy-did-you-renderlibrary
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- eric-cielo/moflo★ 18same name
- helderberto/agent-skills★ 17same 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.
Used alongsideProjects with it also use a11y-audit, security-audit and 2 more.
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
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
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 4 projects that use this
In this repository28 other files it gives its agents.
- angular-spring-ui/CLAUDE.mdCLAUDE.md
- angular-ui/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- fastapi/CLAUDE.mdCLAUDE.md
- go-api/CLAUDE.mdCLAUDE.md
- hono-api/CLAUDE.mdCLAUDE.md
- lambda-api/CLAUDE.mdCLAUDE.md
- nest-api/CLAUDE.mdCLAUDE.md
- nest-history-api/CLAUDE.mdCLAUDE.md
- nuxt-api/CLAUDE.mdCLAUDE.md
- rails-api/CLAUDE.mdCLAUDE.md
- spring-api/CLAUDE.mdCLAUDE.md
- svelte-ui/CLAUDE.mdCLAUDE.md
- tanstack-ui/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- vue-ui/CLAUDE.mdCLAUDE.md
- .github/agents/copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- add-react-componentSkill
- add-react-hookSkill
- add-react-testSkill
- debugSkill
- document-featureSkill
- e2e-testSkill
- fix-buildSkill
- refactorSkill
- run-e2eSkill
- update-depsSkill
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.

