frontend-performance
Skill0 starsChanged 6 months agoMITView on GitHub
Profiles and improves frontend performance.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- MartinOlivero/saas-buildertheir own version, first seen Oct 13, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- bestdeejay-design/agent-skillstheir own version, first seen Aug 9, 2026
- shreyas-makes/agent-skillstheir own version, first seen Jul 15, 2026
- miptah21/skillstheir own version, first seen May 26, 2026
- yiweiwan/skillstheir own version, first seen May 12, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- nahid-sparktales/agent-dispatcher★ 59same name
- bestdeejay-design/agent-skills★ 6same name
- MartinOlivero/saas-builder★ 4same name
- thejordanleopold/claude-code-skills-distilled★ 4same name
- miptah21/skills★ 2same name
- shreyas-makes/agent-skills★ 2same name
- yiweiwan/skills★ 1same name
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 repository10 other files it gives its agents.
- .claude/skills/react-patterns/AGENTS.mdAGENTS.md
- accessibilitySkill
- clarify-requirementsSkill
- code-review-processSkill
- component-architectureSkill
- frontend-patternsSkill
- react-patternsSkill
- responsive-designSkill
- systematic-debuggingSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Measure baseline: before optimizing
“Common” is measured: kept by at least 6 in 10 of the 6 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
Frontend Performance
Contents
- Instructions
- Web Performance
- React Performance
- Quick Wins Checklist
When to Use
When profiling performance:
- Identify the bottleneck type: Network, rendering, memory, or compute
- Measure baseline before optimizing
- Profile with appropriate tools
- Apply optimizations
- Measure improvement
Web Performance
Core Web Vitals
# Lighthouse CLI
npx lighthouse https://yoursite.com --view
# With specific metrics
npx lighthouse https://yoursite.com --only-categories=performanceTarget Metrics:
| Metric | Good | Needs Work | Poor |
| LCP (Largest Contentful Paint) | < 2.5s | 2.5-4s | > 4s |
| INP (Interaction to Next Paint) | < 200ms | 200-500ms | > 500ms |
| CLS (Cumulative Layout Shift) | < 0.1 | 0.1-0.25 | > 0.25 |
Bundle Analysis
# Next.js
ANALYZE=true npm run build
# Webpack
npx webpack-bundle-analyzer stats.json
# Vite
npx vite-bundle-visualizerPowerShell equivalent for the Next.js example:
$env:ANALYZE='true'; npm run buildReact Performance
React DevTools Profiler
- Install React DevTools browser extension
- Open DevTools → Profiler tab
- Click Record, interact with app, stop recording
- Analyze flame graph for slow components
Common React Optimizations
// 1. Memoize expensive components
const MemoizedList = React.memo(function List({ items }) {
return items.map(item => <Item key={item.id} {...item} />);
});
function SearchResults({ query }: { query: string }) {
const deferredQuery = useDeferredValue(query);
const [isPending, startTransition] = useTransition();
const onSortChange = (nextSort: string) => {
startTransition(() => setSort(nextSort));
};
return (
<Suspense fallback={<Spinner />}>
<ResultsList query={deferredQuery} pending={isPending} onSortChange={onSortChange} />
</Suspense>
);
}Quick Wins Checklist
- Enable gzip/brotli compression
- Add caching headers
- Lazy load images (
loading="lazy") - Preconnect to external domains
- Use CDN for static assets
- Minimize JavaScript bundle
- Defer non-critical JS
- Optimize images (WebP, proper sizing)
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.

