Back to skills
SKILL.md
683 Performance Core Web Vitals E470e51b
ASecurity| Metric | Target | Description | |--------|--------|-------------| | LCP | < 2.5s | Largest Contentful Paint | | CLS | < 0.1 | Cumulative Layout Shift | | INP | < 200ms | Interaction to Next Paint |
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Works with
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add tools-only/X-Skills --skill 683-performance-core-web-vitals_e470e51b --agent claude-codeAre you the author of 683 Performance Core Web Vitals E470e51b?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-683-performance-core-web-vitals-e470e51b)# Performance & Core Web Vitals Testing
## Core Web Vitals (Google Ranking Factor)
| Metric | Target | Description |
|--------|--------|-------------|
| LCP | < 2.5s | Largest Contentful Paint |
| CLS | < 0.1 | Cumulative Layout Shift |
| INP | < 200ms | Interaction to Next Paint |
## Lighthouse CI Setup
```json
{
"ci": {
"collect": { "url": ["https://example.com"], "numberOfRuns": 3 },
"assert": {
"preset": "lighthouse:recommended",
"assertions": {
"categories:performance": ["error", { "minScore": 0.9 }],
"largest-contentful-paint": ["warn", { "maxNumericValue": 2500 }]
}
}
}
}
```
## GitHub Actions
```yaml
- run: npm install -g @lhci/cli@*
- run: lhci autorun
```
## Playwright Performance Test
```javascript
test('measure Core Web Vitals', async ({ page }) => {
await page.goto('https://example.com');
const metrics = await page.evaluate(() => ({
lcp: performance.getEntriesByType('largest-contentful-paint')[0]?.startTime,
}));
expect(metrics.lcp).toBeLessThan(2500);
});
```
## Quick Performance Checks
```bash
npx lighthouse https://example.com --output=json
npx bundlesize # Bundle size check
npx webpack-bundle-analyzer dist/stats.json
```
## Optimization Checklist
### LCP
- [ ] Lazy load below-fold images
- [ ] Preload critical resources
- [ ] Use CDN
### CLS
- [ ] Reserve space for images (width/height)
- [ ] Font loading strategy (font-display: swap)
### INP
- [ ] Break long JavaScript tasks
- [ ] Code splitting
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.