[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG1M4SA4ZJS1RR8F5TJ1BE":3,"skill-same:01M6AG1M4SA4ZJS1RR8F5TJ1BE":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6AG1M4SA4ZJS1RR8F5TJ1BE","web-performance-optimization","网站与 Web 应用性能优化","Optimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance","优化网站和 Web 应用性能，包括加载速度、Core Web Vitals、包体积（bundle size）、缓存策略以及运行时性能。","davila7\u002Fclaude-code-templates","davila7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6216945?v=4","01M6ADEWWFPS191NFM0Y1EX1JH","Daniel Avila","01M6ADJHGM78PHQRD3XZTFDVKK",33602,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Fweb-performance-optimization\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C796JZ1YCTM2B2X7TKEWZZ","性能剖析与优化","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"web","performance","web performance","Optimization","web performance optimization","performance optimization","vitals","size","loading","web vitals","runtime","caching strategies","speed","strategies","caching","optimize","bundle size","core web vitals","website","core","2026-11-10 10:12:30",false,"---\nname: web-performance-optimization\ndescription: \"Optimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance\"\n---\n\n# Web Performance Optimization\n\n## Overview\n\nHelp developers optimize website and web application performance to improve user experience, SEO rankings, and conversion rates. This skill provides systematic approaches to measure, analyze, and improve loading speed, runtime performance, and Core Web Vitals metrics.\n\n## When to Use This Skill\n\n- Use when website or app is loading slowly\n- Use when optimizing for Core Web Vitals (LCP, FID, CLS)\n- Use when reducing JavaScript bundle size\n- Use when improving Time to Interactive (TTI)\n- Use when optimizing images and assets\n- Use when implementing caching strategies\n- Use when debugging performance bottlenecks\n- Use when preparing for performance audits\n\n## How It Works\n\n### Step 1: Measure Current Performance\n\nI'll help you establish baseline metrics:\n- Run Lighthouse audits\n- Measure Core Web Vitals (LCP, FID, CLS)\n- Check bundle sizes\n- Analyze network waterfall\n- Identify performance bottlenecks\n\n### Step 2: Identify Issues\n\nAnalyze performance problems:\n- Large JavaScript bundles\n- Unoptimized images\n- Render-blocking resources\n- Slow server response times\n- Missing caching headers\n- Layout shifts\n- Long tasks blocking main thread\n\n### Step 3: Prioritize Optimizations\n\nFocus on high-impact improvements:\n- Critical rendering path optimization\n- Code splitting and lazy loading\n- Image optimization\n- Caching strategies\n- Third-party script optimization\n\n### Step 4: Implement Optimizations\n\nApply performance improvements:\n- Optimize assets (images, fonts, CSS, JS)\n- Implement code splitting\n- Add caching headers\n- Lazy load non-critical resources\n- Optimize critical rendering path\n\n### Step 5: Verify Improvements\n\nMeasure impact of changes:\n- Re-run Lighthouse audits\n- Compare before\u002Fafter metrics\n- Monitor real user metrics (RUM)\n- Test on different devices and networks\n\n## Examples\n\n### Example 1: Optimizing Core Web Vitals\n\n```markdown\n## Performance Audit Results\n\n### Current Metrics (Before Optimization)\n- **LCP (Largest Contentful Paint):** 4.2s ❌ (should be \u003C 2.5s)\n- **FID (First Input Delay):** 180ms ❌ (should be \u003C 100ms)\n- **CLS (Cumulative Layout Shift):** 0.25 ❌ (should be \u003C 0.1)\n- **Lighthouse Score:** 62\u002F100\n\n### Issues Identified\n\n1. **LCP Issue:** Hero image (2.5MB) loads slowly\n2. **FID Issue:** Large JavaScript bundle (850KB) blocks main thread\n3. **CLS Issue:** Images without dimensions cause layout shifts\n\n### Optimization Plan\n\n#### Fix LCP (Largest Contentful Paint)\n\n**Problem:** Hero image is 2.5MB and loads slowly\n\n**Solutions:**\n\\`\\`\\`html\n\u003C!-- Before: Unoptimized image -->\n\u003Cimg src=\"\u002Fhero.jpg\" alt=\"Hero\">\n\n\u003C!-- After: Optimized with modern formats -->\n\u003Cpicture>\n  \u003Csource srcset=\"\u002Fhero.avif\" type=\"image\u002Favif\">\n  \u003Csource srcset=\"\u002Fhero.webp\" type=\"image\u002Fwebp\">\n  \u003Cimg \n    src=\"\u002Fhero.jpg\" \n    alt=\"Hero\"\n    width=\"1200\" \n    height=\"600\"\n    loading=\"eager\"\n    fetchpriority=\"high\"\n  >\n\u003C\u002Fpicture>\n\\`\\`\\`\n\n**Additional optimizations:**\n- Compress image to \u003C 200KB\n- Use CDN for faster delivery\n- Preload hero image: `\u003Clink rel=\"preload\" as=\"image\" href=\"\u002Fhero.avif\">`\n\n#### Fix FID (First Input Delay)\n\n**Problem:** 850KB JavaScript bundle blocks main thread\n\n**Solutions:**\n\n1. **Code Splitting:**\n\\`\\`\\`javascript\n\u002F\u002F Before: Everything in one bundle\nimport { HeavyComponent } from '.\u002FHeavyComponent';\nimport { Analytics } from '.\u002Fanalytics';\nimport { ChatWidget } from '.\u002Fchat';\n\n\u002F\u002F After: Lazy load non-critical code\nconst HeavyComponent = lazy(() => import('.\u002FHeavyComponent'));\nconst ChatWidget = lazy(() => import('.\u002Fchat'));\n\n\u002F\u002F Load analytics after page interactive\nif (typeof window !== 'undefined') {\n  window.addEventListener('load', () => {\n    import('.\u002Fanalytics').then(({ Analytics }) => {\n      Analytics.init();\n    });\n  });\n}\n\\`\\`\\`\n\n2. **Remove Unused Dependencies:**\n\\`\\`\\`bash\n# Analyze bundle\nnpx webpack-bundle-analyzer\n\n# Remove unused packages\nnpm uninstall moment  # Use date-fns instead (smaller)\nnpm install date-fns\n\\`\\`\\`\n\n3. **Defer Non-Critical Scripts:**\n\\`\\`\\`html\n\u003C!-- Before: Blocks rendering -->\n\u003Cscript src=\"\u002Fanalytics.js\">\u003C\u002Fscript>\n\n\u003C!-- After: Deferred -->\n\u003Cscript src=\"\u002Fanalytics.js\" defer>\u003C\u002Fscript>\n\\`\\`\\`\n\n#### Fix CLS (Cumulative Layout Shift)\n\n**Problem:** Images without dimensions cause layout shifts\n\n**Solutions:**\n\\`\\`\\`html\n\u003C!-- Before: No dimensions -->\n\u003Cimg src=\"\u002Fproduct.jpg\" alt=\"Product\">\n\n\u003C!-- After: With dimensions -->\n\u003Cimg \n  src=\"\u002Fproduct.jpg\" \n  alt=\"Product\"\n  width=\"400\" \n  height=\"300\"\n  style=\"aspect-ratio: 4\u002F3;\"\n>\n\\`\\`\\`\n\n**For dynamic content:**\n\\`\\`\\`css\n\u002F* Reserve space for content that loads later *\u002F\n.skeleton-loader {\n  min-height: 200px;\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200% 100%;\n  animation: loading 1.5s infinite;\n}\n\n@keyframes loading {\n  0% { background-position: 200% 0; }\n  100% { background-position: -200% 0; }\n}\n\\`\\`\\`\n\n### Results After Optimization\n\n- **LCP:** 1.8s ✅ (improved by 57%)\n- **FID:** 45ms ✅ (improved by 75%)\n- **CLS:** 0.05 ✅ (improved by 80%)\n- **Lighthouse Score:** 94\u002F100 ✅\n```\n\n### Example 2: Reducing JavaScript Bundle Size\n\n```markdown\n## Bundle Size Optimization\n\n### Current State\n- **Total Bundle:** 850KB (gzipped: 280KB)\n- **Main Bundle:** 650KB\n- **Vendor Bundle:** 200KB\n- **Load Time (3G):** 8.2s\n\n### Analysis\n\n\\`\\`\\`bash\n# Analyze bundle composition\nnpx webpack-bundle-analyzer dist\u002Fstats.json\n\\`\\`\\`\n\n**Findings:**\n1. Moment.js: 67KB (can replace with date-fns: 12KB)\n2. Lodash: 72KB (using entire library, only need 5 functions)\n3. Unused code: ~150KB of dead code\n4. No code splitting: Everything in one bundle\n\n### Optimization Steps\n\n#### 1. Replace Heavy Dependencies\n\n\\`\\`\\`bash\n# Remove moment.js (67KB) → Use date-fns (12KB)\nnpm uninstall moment\nnpm install date-fns\n\n# Before\nimport moment from 'moment';\nconst formatted = moment(date).format('YYYY-MM-DD');\n\n# After\nimport { format } from 'date-fns';\nconst formatted = format(date, 'yyyy-MM-dd');\n\\`\\`\\`\n\n**Savings:** 55KB\n\n#### 2. Use Lodash Selectively\n\n\\`\\`\\`javascript\n\u002F\u002F Before: Import entire library (72KB)\nimport _ from 'lodash';\nconst unique = _.uniq(array);\n\n\u002F\u002F After: Import only what you need (5KB)\nimport uniq from 'lodash\u002Funiq';\nconst unique = uniq(array);\n\n\u002F\u002F Or use native methods\nconst unique = [...new Set(array)];\n\\`\\`\\`\n\n**Savings:** 67KB\n\n#### 3. Implement Code Splitting\n\n\\`\\`\\`javascript\n\u002F\u002F Next.js example\nimport dynamic from 'next\u002Fdynamic';\n\n\u002F\u002F Lazy load heavy components\nconst Chart = dynamic(() => import('.\u002FChart'), {\n  loading: () => \u003Cdiv>Loading chart...\u003C\u002Fdiv>,\n  ssr: false\n});\n\nconst AdminPanel = dynamic(() => import('.\u002FAdminPanel'), {\n  loading: () => \u003Cdiv>Loading...\u003C\u002Fdiv>\n});\n\n\u002F\u002F Route-based code splitting (automatic in Next.js)\n\u002F\u002F pages\u002Fadmin.js - Only loaded when visiting \u002Fadmin\n\u002F\u002F pages\u002Fdashboard.js - Only loaded when visiting \u002Fdashboard\n\\`\\`\\`\n\n#### 4. Remove Dead Code\n\n\\`\\`\\`javascript\n\u002F\u002F Enable tree shaking in webpack.config.js\nmodule.exports = {\n  mode: 'production',\n  optimization: {\n    usedExports: true,\n    sideEffects: false\n  }\n};\n\n\u002F\u002F In package.json\n{\n  \"sideEffects\": false\n}\n\\`\\`\\`\n\n#### 5. Optimize Third-Party Scripts\n\n\\`\\`\\`html\n\u003C!-- Before: Loads immediately -->\n\u003Cscript src=\"https:\u002F\u002Fanalytics.com\u002Fscript.js\">\u003C\u002Fscript>\n\n\u003C!-- After: Load after page interactive -->\n\u003Cscript>\n  window.addEventListener('load', () => {\n    const script = document.createElement('script');\n    script.src = 'https:\u002F\u002Fanalytics.com\u002Fscript.js';\n    script.async = true;\n    document.body.appendChild(script);\n  });\n\u003C\u002Fscript>\n\\`\\`\\`\n\n### Results\n\n- **Total Bundle:** 380KB ✅ (reduced by 55%)\n- **Main Bundle:** 180KB ✅\n- **Vendor Bundle:** 80KB ✅\n- **Load Time (3G):** 3.1s ✅ (improved by 62%)\n```\n\n### Example 3: Image Optimization Strategy\n\n```markdown\n## Image Optimization\n\n### Current Issues\n- 15 images totaling 12MB\n- No modern formats (WebP, AVIF)\n- No responsive images\n- No lazy loading\n\n### Optimization Strategy\n\n#### 1. Convert to Modern Formats\n\n\\`\\`\\`bash\n# Install image optimization tools\nnpm install sharp\n\n# Conversion script (optimize-images.js)\nconst sharp = require('sharp');\nconst fs = require('fs');\nconst path = require('path');\n\nasync function optimizeImage(inputPath, outputDir) {\n  const filename = path.basename(inputPath, path.extname(inputPath));\n  \n  \u002F\u002F Generate WebP\n  await sharp(inputPath)\n    .webp({ quality: 80 })\n    .toFile(path.join(outputDir, \\`\\${filename}.webp\\`));\n  \n  \u002F\u002F Generate AVIF (best compression)\n  await sharp(inputPath)\n    .avif({ quality: 70 })\n    .toFile(path.join(outputDir, \\`\\${filename}.avif\\`));\n  \n  \u002F\u002F Generate optimized JPEG fallback\n  await sharp(inputPath)\n    .jpeg({ quality: 80, progressive: true })\n    .toFile(path.join(outputDir, \\`\\${filename}.jpg\\`));\n}\n\n\u002F\u002F Process all images\nconst images = fs.readdirSync('.\u002Fimages');\nimages.forEach(img => {\n  optimizeImage(\\`.\u002Fimages\u002F\\${img}\\`, '.\u002Fimages\u002Foptimized');\n});\n\\`\\`\\`\n\n#### 2. Implement Responsive Images\n\n\\`\\`\\`html\n\u003C!-- Responsive images with modern formats -->\n\u003Cpicture>\n  \u003C!-- AVIF for browsers that support it (best compression) -->\n  \u003Csource \n    srcset=\"\n      \u002Fimages\u002Fhero-400.avif 400w,\n      \u002Fimages\u002Fhero-800.avif 800w,\n      \u002Fimages\u002Fhero-1200.avif 1200w\n    \"\n    type=\"image\u002Favif\"\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n  >\n  \n  \u003C!-- WebP for browsers that support it -->\n  \u003Csource \n    srcset=\"\n      \u002Fimages\u002Fhero-400.webp 400w,\n      \u002Fimages\u002Fhero-800.webp 800w,\n      \u002Fimages\u002Fhero-1200.webp 1200w\n    \"\n    type=\"image\u002Fwebp\"\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n  >\n  \n  \u003C!-- JPEG fallback -->\n  \u003Cimg \n    src=\"\u002Fimages\u002Fhero-800.jpg\"\n    srcset=\"\n      \u002Fimages\u002Fhero-400.jpg 400w,\n      \u002Fimages\u002Fhero-800.jpg 800w,\n      \u002Fimages\u002Fhero-1200.jpg 1200w\n    \"\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n    alt=\"Hero image\"\n    width=\"1200\"\n    height=\"600\"\n    loading=\"lazy\"\n  >\n\u003C\u002Fpicture>\n\\`\\`\\`\n\n#### 3. Lazy Loading\n\n\\`\\`\\`html\n\u003C!-- Native lazy loading -->\n\u003Cimg \n  src=\"\u002Fimage.jpg\" \n  alt=\"Description\"\n  loading=\"lazy\"\n  width=\"800\"\n  height=\"600\"\n>\n\n\u003C!-- Eager loading for above-the-fold images -->\n\u003Cimg \n  src=\"\u002Fhero.jpg\" \n  alt=\"Hero\"\n  loading=\"eager\"\n  fetchpriority=\"high\"\n>\n\\`\\`\\`\n\n#### 4. Next.js Image Component\n\n\\`\\`\\`javascript\nimport Image from 'next\u002Fimage';\n\n\u002F\u002F Automatic optimization\n\u003CImage\n  src=\"\u002Fhero.jpg\"\n  alt=\"Hero\"\n  width={1200}\n  height={600}\n  priority  \u002F\u002F For above-the-fold images\n  quality={80}\n\u002F>\n\n\u002F\u002F Lazy loaded\n\u003CImage\n  src=\"\u002Fproduct.jpg\"\n  alt=\"Product\"\n  width={400}\n  height={300}\n  loading=\"lazy\"\n\u002F>\n\\`\\`\\`\n\n### Results\n\n| Metric | Before | After | Improvement |\n|--------|--------|-------|-------------|\n| Total Image Size | 12MB | 1.8MB | 85% reduction |\n| LCP | 4.5s | 1.6s | 64% faster |\n| Page Load (3G) | 18s | 4.2s | 77% faster |\n```\n\n## Best Practices\n\n### ✅ Do This\n\n- **Measure First** - Always establish baseline metrics before optimizing\n- **Use Lighthouse** - Run audits regularly to track progress\n- **Optimize Images** - Use modern formats (WebP, AVIF) and responsive images\n- **Code Split** - Break large bundles into smaller chunks\n- **Lazy Load** - Defer non-critical resources\n- **Cache Aggressively** - Set proper cache headers for static assets\n- **Minimize Main Thread Work** - Keep JavaScript execution under 50ms chunks\n- **Preload Critical Resources** - Use `\u003Clink rel=\"preload\">` for critical assets\n- **Use CDN** - Serve static assets from CDN for faster delivery\n- **Monitor Real Users** - Track Core Web Vitals from real users\n\n### ❌ Don't Do This\n\n- **Don't Optimize Blindly** - Measure first, then optimize\n- **Don't Ignore Mobile** - Test on real mobile devices and slow networks\n- **Don't Block Rendering** - Avoid render-blocking CSS and JavaScript\n- **Don't Load Everything Upfront** - Lazy load non-critical resources\n- **Don't Forget Dimensions** - Always specify image width\u002Fheight\n- **Don't Use Synchronous Scripts** - Use async or defer attributes\n- **Don't Ignore Third-Party Scripts** - They often cause performance issues\n- **Don't Skip Compression** - Always compress and minify assets\n\n## Common Pitfalls\n\n### Problem: Optimized for Desktop but Slow on Mobile\n**Symptoms:** Good Lighthouse score on desktop, poor on mobile\n**Solution:**\n- Test on real mobile devices\n- Use Chrome DevTools mobile throttling\n- Optimize for 3G\u002F4G networks\n- Reduce JavaScript execution time\n```bash\n# Test with throttling\nlighthouse https:\u002F\u002Fyoursite.com --throttling.cpuSlowdownMultiplier=4\n```\n\n### Problem: Large JavaScript Bundle\n**Symptoms:** Long Time to Interactive (TTI), high FID\n**Solution:**\n- Analyze bundle with webpack-bundle-analyzer\n- Remove unused dependencies\n- Implement code splitting\n- Lazy load non-critical code\n```bash\n# Analyze bundle\nnpx webpack-bundle-analyzer dist\u002Fstats.json\n```\n\n### Problem: Images Causing Layout Shifts\n**Symptoms:** High CLS score, content jumping\n**Solution:**\n- Always specify width and height\n- Use aspect-ratio CSS property\n- Reserve space with skeleton loaders\n```css\nimg {\n  aspect-ratio: 16 \u002F 9;\n  width: 100%;\n  height: auto;\n}\n```\n\n### Problem: Slow Server Response Time\n**Symptoms:** High TTFB (Time to First Byte)\n**Solution:**\n- Implement server-side caching\n- Use CDN for static assets\n- Optimize database queries\n- Consider static site generation (SSG)\n```javascript\n\u002F\u002F Next.js: Static generation\nexport async function getStaticProps() {\n  const data = await fetchData();\n  return {\n    props: { data },\n    revalidate: 60 \u002F\u002F Regenerate every 60 seconds\n  };\n}\n```\n\n## Performance Checklist\n\n### Images\n- [ ] Convert to modern formats (WebP, AVIF)\n- [ ] Implement responsive images\n- [ ] Add lazy loading\n- [ ] Specify dimensions (width\u002Fheight)\n- [ ] Compress images (\u003C 200KB each)\n- [ ] Use CDN for delivery\n\n### JavaScript\n- [ ] Bundle size \u003C 200KB (gzipped)\n- [ ] Implement code splitting\n- [ ] Lazy load non-critical code\n- [ ] Remove unused dependencies\n- [ ] Minify and compress\n- [ ] Use async\u002Fdefer for scripts\n\n### CSS\n- [ ] Inline critical CSS\n- [ ] Defer non-critical CSS\n- [ ] Remove unused CSS\n- [ ] Minify CSS files\n- [ ] Use CSS containment\n\n### Caching\n- [ ] Set cache headers for static assets\n- [ ] Implement service worker\n- [ ] Use CDN caching\n- [ ] Cache API responses\n- [ ] Version static assets\n\n### Core Web Vitals\n- [ ] LCP \u003C 2.5s\n- [ ] FID \u003C 100ms\n- [ ] CLS \u003C 0.1\n- [ ] TTFB \u003C 600ms\n- [ ] TTI \u003C 3.8s\n\n## Performance Tools\n\n### Measurement Tools\n- **Lighthouse** - Comprehensive performance audit\n- **WebPageTest** - Detailed waterfall analysis\n- **Chrome DevTools** - Performance profiling\n- **PageSpeed Insights** - Real user metrics\n- **Web Vitals Extension** - Monitor Core Web Vitals\n\n### Analysis Tools\n- **webpack-bundle-analyzer** - Visualize bundle composition\n- **source-map-explorer** - Analyze bundle size\n- **Bundlephobia** - Check package sizes before installing\n- **ImageOptim** - Image compression tool\n\n### Monitoring Tools\n- **Google Analytics** - Track Core Web Vitals\n- **Sentry** - Performance monitoring\n- **New Relic** - Application performance monitoring\n- **Datadog** - Real user monitoring\n\n## Related Skills\n\n- `@react-best-practices` - React performance patterns\n- `@frontend-dev-guidelines` - Frontend development standards\n- `@systematic-debugging` - Debug performance issues\n- `@senior-architect` - Architecture for performance\n\n## Additional Resources\n\n- [Web.dev Performance](https:\u002F\u002Fweb.dev\u002Fperformance\u002F)\n- [Core Web Vitals](https:\u002F\u002Fweb.dev\u002Fvitals\u002F)\n- [Lighthouse Documentation](https:\u002F\u002Fdevelopers.google.com\u002Fweb\u002Ftools\u002Flighthouse)\n- [MDN Performance Guide](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FPerformance)\n- [Next.js Performance](https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fadvanced-features\u002Fmeasuring-performance)\n- [Image Optimization Guide](https:\u002F\u002Fweb.dev\u002Ffast\u002F#optimize-your-images)\n\n---\n\n**Pro Tip:** Focus on Core Web Vitals (LCP, FID, CLS) first - they have the biggest impact on user experience and SEO rankings!\n","# Web Performance Optimization\n\n## Overview\n\nHelp developers optimize website and web application performance to improve user experience, SEO rankings, and conversion rates. This skill provides systematic approaches to measure, analyze, and improve loading speed, runtime performance, and Core Web Vitals metrics.\n\n## When to Use This Skill\n\n- Use when website or app is loading slowly\n- Use when optimizing for Core Web Vitals (LCP, FID, CLS)\n- Use when reducing JavaScript bundle size\n- Use when improving Time to Interactive (TTI)\n- Use when optimizing images and assets\n- Use when implementing caching strategies\n- Use when debugging performance bottlenecks\n- Use when preparing for performance audits\n\n## How It Works\n\n### Step 1: Measure Current Performance\n\nI'll help you establish baseline metrics:\n- Run Lighthouse audits\n- Measure Core Web Vitals (LCP, FID, CLS)\n- Check bundle sizes\n- Analyze network waterfall\n- Identify performance bottlenecks\n\n### Step 2: Identify Issues\n\nAnalyze performance problems:\n- Large JavaScript bundles\n- Unoptimized images\n- Render-blocking resources\n- Slow server response times\n- Missing caching headers\n- Layout shifts\n- Long tasks blocking main thread\n\n### Step 3: Prioritize Optimizations\n\nFocus on high-impact improvements:\n- Critical rendering path optimization\n- Code splitting and lazy loading\n- Image optimization\n- Caching strategies\n- Third-party script optimization\n\n### Step 4: Implement Optimizations\n\nApply performance improvements:\n- Optimize assets (images, fonts, CSS, JS)\n- Implement code splitting\n- Add caching headers\n- Lazy load non-critical resources\n- Optimize critical rendering path\n\n### Step 5: Verify Improvements\n\nMeasure impact of changes:\n- Re-run Lighthouse audits\n- Compare before\u002Fafter metrics\n- Monitor real user metrics (RUM)\n- Test on different devices and networks\n\n## Examples\n\n### Example 1: Optimizing Core Web Vitals\n\n```markdown\n## Performance Audit Results\n\n### Current Metrics (Before Optimization)\n- **LCP (Largest Contentful Paint):** 4.2s ❌ (should be \u003C 2.5s)\n- **FID (First Input Delay):** 180ms ❌ (should be \u003C 100ms)\n- **CLS (Cumulative Layout Shift):** 0.25 ❌ (should be \u003C 0.1)\n- **Lighthouse Score:** 62\u002F100\n\n### Issues Identified\n\n1. **LCP Issue:** Hero image (2.5MB) loads slowly\n2. **FID Issue:** Large JavaScript bundle (850KB) blocks main thread\n3. **CLS Issue:** Images without dimensions cause layout shifts\n\n### Optimization Plan\n\n#### Fix LCP (Largest Contentful Paint)\n\n**Problem:** Hero image is 2.5MB and loads slowly\n\n**Solutions:**\n\\`\\`\\`html\n\u003C!-- Before: Unoptimized image -->\n\u003Cimg src=\"\u002Fhero.jpg\" alt=\"Hero\">\n\n\u003C!-- After: Optimized with modern formats -->\n\u003Cpicture>\n  \u003Csource srcset=\"\u002Fhero.avif\" type=\"image\u002Favif\">\n  \u003Csource srcset=\"\u002Fhero.webp\" type=\"image\u002Fwebp\">\n  \u003Cimg \n    src=\"\u002Fhero.jpg\" \n    alt=\"Hero\"\n    width=\"1200\" \n    height=\"600\"\n    loading=\"eager\"\n    fetchpriority=\"high\"\n  >\n\u003C\u002Fpicture>\n\\`\\`\\`\n\n**Additional optimizations:**\n- Compress image to \u003C 200KB\n- Use CDN for faster delivery\n- Preload hero image: `\u003Clink rel=\"preload\" as=\"image\" href=\"\u002Fhero.avif\">`\n\n#### Fix FID (First Input Delay)\n\n**Problem:** 850KB JavaScript bundle blocks main thread\n\n**Solutions:**\n\n1. **Code Splitting:**\n\\`\\`\\`javascript\n\u002F\u002F Before: Everything in one bundle\nimport { HeavyComponent } from '.\u002FHeavyComponent';\nimport { Analytics } from '.\u002Fanalytics';\nimport { ChatWidget } from '.\u002Fchat';\n\n\u002F\u002F After: Lazy load non-critical code\nconst HeavyComponent = lazy(() => import('.\u002FHeavyComponent'));\nconst ChatWidget = lazy(() => import('.\u002Fchat'));\n\n\u002F\u002F Load analytics after page interactive\nif (typeof window !== 'undefined') {\n  window.addEventListener('load', () => {\n    import('.\u002Fanalytics').then(({ Analytics }) => {\n      Analytics.init();\n    });\n  });\n}\n\\`\\`\\`\n\n2. **Remove Unused Dependencies:**\n\\`\\`\\`bash\n# Analyze bundle\nnpx webpack-bundle-analyzer\n\n# Remove unused packages\nnpm uninstall moment  # Use date-fns instead (smaller)\nnpm install date-fns\n\\`\\`\\`\n\n3. **Defer Non-Critical Scripts:**\n\\`\\`\\`html\n\u003C!-- Before: Blocks rendering -->\n\u003Cscript src=\"\u002Fanalytics.js\">\u003C\u002Fscript>\n\n\u003C!-- After: Deferred -->\n\u003Cscript src=\"\u002Fanalytics.js\" defer>\u003C\u002Fscript>\n\\`\\`\\`\n\n#### Fix CLS (Cumulative Layout Shift)\n\n**Problem:** Images without dimensions cause layout shifts\n\n**Solutions:**\n\\`\\`\\`html\n\u003C!-- Before: No dimensions -->\n\u003Cimg src=\"\u002Fproduct.jpg\" alt=\"Product\">\n\n\u003C!-- After: With dimensions -->\n\u003Cimg \n  src=\"\u002Fproduct.jpg\" \n  alt=\"Product\"\n  width=\"400\" \n  height=\"300\"\n  style=\"aspect-ratio: 4\u002F3;\"\n>\n\\`\\`\\`\n\n**For dynamic content:**\n\\`\\`\\`css\n\u002F* Reserve space for content that loads later *\u002F\n.skeleton-loader {\n  min-height: 200px;\n  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n  background-size: 200% 100%;\n  animation: loading 1.5s infinite;\n}\n\n@keyframes loading {\n  0% { background-position: 200% 0; }\n  100% { background-position: -200% 0; }\n}\n\\`\\`\\`\n\n### Results After Optimization\n\n- **LCP:** 1.8s ✅ (improved by 57%)\n- **FID:** 45ms ✅ (improved by 75%)\n- **CLS:** 0.05 ✅ (improved by 80%)\n- **Lighthouse Score:** 94\u002F100 ✅\n```\n\n### Example 2: Reducing JavaScript Bundle Size\n\n```markdown\n## Bundle Size Optimization\n\n### Current State\n- **Total Bundle:** 850KB (gzipped: 280KB)\n- **Main Bundle:** 650KB\n- **Vendor Bundle:** 200KB\n- **Load Time (3G):** 8.2s\n\n### Analysis\n\n\\`\\`\\`bash\n# Analyze bundle composition\nnpx webpack-bundle-analyzer dist\u002Fstats.json\n\\`\\`\\`\n\n**Findings:**\n1. Moment.js: 67KB (can replace with date-fns: 12KB)\n2. Lodash: 72KB (using entire library, only need 5 functions)\n3. Unused code: ~150KB of dead code\n4. No code splitting: Everything in one bundle\n\n### Optimization Steps\n\n#### 1. Replace Heavy Dependencies\n\n\\`\\`\\`bash\n# Remove moment.js (67KB) → Use date-fns (12KB)\nnpm uninstall moment\nnpm install date-fns\n\n# Before\nimport moment from 'moment';\nconst formatted = moment(date).format('YYYY-MM-DD');\n\n# After\nimport { format } from 'date-fns';\nconst formatted = format(date, 'yyyy-MM-dd');\n\\`\\`\\`\n\n**Savings:** 55KB\n\n#### 2. Use Lodash Selectively\n\n\\`\\`\\`javascript\n\u002F\u002F Before: Import entire library (72KB)\nimport _ from 'lodash';\nconst unique = _.uniq(array);\n\n\u002F\u002F After: Import only what you need (5KB)\nimport uniq from 'lodash\u002Funiq';\nconst unique = uniq(array);\n\n\u002F\u002F Or use native methods\nconst unique = [...new Set(array)];\n\\`\\`\\`\n\n**Savings:** 67KB\n\n#### 3. Implement Code Splitting\n\n\\`\\`\\`javascript\n\u002F\u002F Next.js example\nimport dynamic from 'next\u002Fdynamic';\n\n\u002F\u002F Lazy load heavy components\nconst Chart = dynamic(() => import('.\u002FChart'), {\n  loading: () => \u003Cdiv>Loading chart...\u003C\u002Fdiv>,\n  ssr: false\n});\n\nconst AdminPanel = dynamic(() => import('.\u002FAdminPanel'), {\n  loading: () => \u003Cdiv>Loading...\u003C\u002Fdiv>\n});\n\n\u002F\u002F Route-based code splitting (automatic in Next.js)\n\u002F\u002F pages\u002Fadmin.js - Only loaded when visiting \u002Fadmin\n\u002F\u002F pages\u002Fdashboard.js - Only loaded when visiting \u002Fdashboard\n\\`\\`\\`\n\n#### 4. Remove Dead Code\n\n\\`\\`\\`javascript\n\u002F\u002F Enable tree shaking in webpack.config.js\nmodule.exports = {\n  mode: 'production',\n  optimization: {\n    usedExports: true,\n    sideEffects: false\n  }\n};\n\n\u002F\u002F In package.json\n{\n  \"sideEffects\": false\n}\n\\`\\`\\`\n\n#### 5. Optimize Third-Party Scripts\n\n\\`\\`\\`html\n\u003C!-- Before: Loads immediately -->\n\u003Cscript src=\"https:\u002F\u002Fanalytics.com\u002Fscript.js\">\u003C\u002Fscript>\n\n\u003C!-- After: Load after page interactive -->\n\u003Cscript>\n  window.addEventListener('load', () => {\n    const script = document.createElement('script');\n    script.src = 'https:\u002F\u002Fanalytics.com\u002Fscript.js';\n    script.async = true;\n    document.body.appendChild(script);\n  });\n\u003C\u002Fscript>\n\\`\\`\\`\n\n### Results\n\n- **Total Bundle:** 380KB ✅ (reduced by 55%)\n- **Main Bundle:** 180KB ✅\n- **Vendor Bundle:** 80KB ✅\n- **Load Time (3G):** 3.1s ✅ (improved by 62%)\n```\n\n### Example 3: Image Optimization Strategy\n\n```markdown\n## Image Optimization\n\n### Current Issues\n- 15 images totaling 12MB\n- No modern formats (WebP, AVIF)\n- No responsive images\n- No lazy loading\n\n### Optimization Strategy\n\n#### 1. Convert to Modern Formats\n\n\\`\\`\\`bash\n# Install image optimization tools\nnpm install sharp\n\n# Conversion script (optimize-images.js)\nconst sharp = require('sharp');\nconst fs = require('fs');\nconst path = require('path');\n\nasync function optimizeImage(inputPath, outputDir) {\n  const filename = path.basename(inputPath, path.extname(inputPath));\n  \n  \u002F\u002F Generate WebP\n  await sharp(inputPath)\n    .webp({ quality: 80 })\n    .toFile(path.join(outputDir, \\`\\${filename}.webp\\`));\n  \n  \u002F\u002F Generate AVIF (best compression)\n  await sharp(inputPath)\n    .avif({ quality: 70 })\n    .toFile(path.join(outputDir, \\`\\${filename}.avif\\`));\n  \n  \u002F\u002F Generate optimized JPEG fallback\n  await sharp(inputPath)\n    .jpeg({ quality: 80, progressive: true })\n    .toFile(path.join(outputDir, \\`\\${filename}.jpg\\`));\n}\n\n\u002F\u002F Process all images\nconst images = fs.readdirSync('.\u002Fimages');\nimages.forEach(img => {\n  optimizeImage(\\`.\u002Fimages\u002F\\${img}\\`, '.\u002Fimages\u002Foptimized');\n});\n\\`\\`\\`\n\n#### 2. Implement Responsive Images\n\n\\`\\`\\`html\n\u003C!-- Responsive images with modern formats -->\n\u003Cpicture>\n  \u003C!-- AVIF for browsers that support it (best compression) -->\n  \u003Csource \n    srcset=\"\n      \u002Fimages\u002Fhero-400.avif 400w,\n      \u002Fimages\u002Fhero-800.avif 800w,\n      \u002Fimages\u002Fhero-1200.avif 1200w\n    \"\n    type=\"image\u002Favif\"\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n  >\n  \n  \u003C!-- WebP for browsers that support it -->\n  \u003Csource \n    srcset=\"\n      \u002Fimages\u002Fhero-400.webp 400w,\n      \u002Fimages\u002Fhero-800.webp 800w,\n      \u002Fimages\u002Fhero-1200.webp 1200w\n    \"\n    type=\"image\u002Fwebp\"\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n  >\n  \n  \u003C!-- JPEG fallback -->\n  \u003Cimg \n    src=\"\u002Fimages\u002Fhero-800.jpg\"\n    srcset=\"\n      \u002Fimages\u002Fhero-400.jpg 400w,\n      \u002Fimages\u002Fhero-800.jpg 800w,\n      \u002Fimages\u002Fhero-1200.jpg 1200w\n    \"\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n    alt=\"Hero image\"\n    width=\"1200\"\n    height=\"600\"\n    loading=\"lazy\"\n  >\n\u003C\u002Fpicture>\n\\`\\`\\`\n\n#### 3. Lazy Loading\n\n\\`\\`\\`html\n\u003C!-- Native lazy loading -->\n\u003Cimg \n  src=\"\u002Fimage.jpg\" \n  alt=\"Description\"\n  loading=\"lazy\"\n  width=\"800\"\n  height=\"600\"\n>\n\n\u003C!-- Eager loading for above-the-fold images -->\n\u003Cimg \n  src=\"\u002Fhero.jpg\" \n  alt=\"Hero\"\n  loading=\"eager\"\n  fetchpriority=\"high\"\n>\n\\`\\`\\`\n\n#### 4. Next.js Image Component\n\n\\`\\`\\`javascript\nimport Image from 'next\u002Fimage';\n\n\u002F\u002F Automatic optimization\n\u003CImage\n  src=\"\u002Fhero.jpg\"\n  alt=\"Hero\"\n  width={1200}\n  height={600}\n  priority  \u002F\u002F For above-the-fold images\n  quality={80}\n\u002F>\n\n\u002F\u002F Lazy loaded\n\u003CImage\n  src=\"\u002Fproduct.jpg\"\n  alt=\"Product\"\n  width={400}\n  height={300}\n  loading=\"lazy\"\n\u002F>\n\\`\\`\\`\n\n### Results\n\n| Metric | Before | After | Improvement |\n|--------|--------|-------|-------------|\n| Total Image Size | 12MB | 1.8MB | 85% reduction |\n| LCP | 4.5s | 1.6s | 64% faster |\n| Page Load (3G) | 18s | 4.2s | 77% faster |\n```\n\n## Best Practices\n\n### ✅ Do This\n\n- **Measure First** - Always establish baseline metrics before optimizing\n- **Use Lighthouse** - Run audits regularly to track progress\n- **Optimize Images** - Use modern formats (WebP, AVIF) and responsive images\n- **Code Split** - Break large bundles into smaller chunks\n- **Lazy Load** - Defer non-critical resources\n- **Cache Aggressively** - Set proper cache headers for static assets\n- **Minimize Main Thread Work** - Keep JavaScript execution under 50ms chunks\n- **Preload Critical Resources** - Use `\u003Clink rel=\"preload\">` for critical assets\n- **Use CDN** - Serve static assets from CDN for faster delivery\n- **Monitor Real Users** - Track Core Web Vitals from real users\n\n### ❌ Don't Do This\n\n- **Don't Optimize Blindly** - Measure first, then optimize\n- **Don't Ignore Mobile** - Test on real mobile devices and slow networks\n- **Don't Block Rendering** - Avoid render-blocking CSS and JavaScript\n- **Don't Load Everything Upfront** - Lazy load non-critical resources\n- **Don't Forget Dimensions** - Always specify image width\u002Fheight\n- **Don't Use Synchronous Scripts** - Use async or defer attributes\n- **Don't Ignore Third-Party Scripts** - They often cause performance issues\n- **Don't Skip Compression** - Always compress and minify assets\n\n## Common Pitfalls\n\n### Problem: Optimized for Desktop but Slow on Mobile\n**Symptoms:** Good Lighthouse score on desktop, poor on mobile\n**Solution:**\n- Test on real mobile devices\n- Use Chrome DevTools mobile throttling\n- Optimize for 3G\u002F4G networks\n- Reduce JavaScript execution time\n```bash\n# Test with throttling\nlighthouse https:\u002F\u002Fyoursite.com --throttling.cpuSlowdownMultiplier=4\n```\n\n### Problem: Large JavaScript Bundle\n**Symptoms:** Long Time to Interactive (TTI), high FID\n**Solution:**\n- Analyze bundle with webpack-bundle-analyzer\n- Remove unused dependencies\n- Implement code splitting\n- Lazy load non-critical code\n```bash\n# Analyze bundle\nnpx webpack-bundle-analyzer dist\u002Fstats.json\n```\n\n### Problem: Images Causing Layout Shifts\n**Symptoms:** High CLS score, content jumping\n**Solution:**\n- Always specify width and height\n- Use aspect-ratio CSS property\n- Reserve space with skeleton loaders\n```css\nimg {\n  aspect-ratio: 16 \u002F 9;\n  width: 100%;\n  height: auto;\n}\n```\n\n### Problem: Slow Server Response Time\n**Symptoms:** High TTFB (Time to First Byte)\n**Solution:**\n- Implement server-side caching\n- Use CDN for static assets\n- Optimize database queries\n- Consider static site generation (SSG)\n```javascript\n\u002F\u002F Next.js: Static generation\nexport async function getStaticProps() {\n  const data = await fetchData();\n  return {\n    props: { data },\n    revalidate: 60 \u002F\u002F Regenerate every 60 seconds\n  };\n}\n```\n\n## Performance Checklist\n\n### Images\n- [ ] Convert to modern formats (WebP, AVIF)\n- [ ] Implement responsive images\n- [ ] Add lazy loading\n- [ ] Specify dimensions (width\u002Fheight)\n- [ ] Compress images (\u003C 200KB each)\n- [ ] Use CDN for delivery\n\n### JavaScript\n- [ ] Bundle size \u003C 200KB (gzipped)\n- [ ] Implement code splitting\n- [ ] Lazy load non-critical code\n- [ ] Remove unused dependencies\n- [ ] Minify and compress\n- [ ] Use async\u002Fdefer for scripts\n\n### CSS\n- [ ] Inline critical CSS\n- [ ] Defer non-critical CSS\n- [ ] Remove unused CSS\n- [ ] Minify CSS files\n- [ ] Use CSS containment\n\n### Caching\n- [ ] Set cache headers for static assets\n- [ ] Implement service worker\n- [ ] Use CDN caching\n- [ ] Cache API responses\n- [ ] Version static assets\n\n### Core Web Vitals\n- [ ] LCP \u003C 2.5s\n- [ ] FID \u003C 100ms\n- [ ] CLS \u003C 0.1\n- [ ] TTFB \u003C 600ms\n- [ ] TTI \u003C 3.8s\n\n## Performance Tools\n\n### Measurement Tools\n- **Lighthouse** - Comprehensive performance audit\n- **WebPageTest** - Detailed waterfall analysis\n- **Chrome DevTools** - Performance profiling\n- **PageSpeed Insights** - Real user metrics\n- **Web Vitals Extension** - Monitor Core Web Vitals\n\n### Analysis Tools\n- **webpack-bundle-analyzer** - Visualize bundle composition\n- **source-map-explorer** - Analyze bundle size\n- **Bundlephobia** - Check package sizes before installing\n- **ImageOptim** - Image compression tool\n\n### Monitoring Tools\n- **Google Analytics** - Track Core Web Vitals\n- **Sentry** - Performance monitoring\n- **New Relic** - Application performance monitoring\n- **Datadog** - Real user monitoring\n\n## Related Skills\n\n- `@react-best-practices` - React performance patterns\n- `@frontend-dev-guidelines` - Frontend development standards\n- `@systematic-debugging` - Debug performance issues\n- `@senior-architect` - Architecture for performance\n\n## Additional Resources\n\n- [Web.dev Performance](https:\u002F\u002Fweb.dev\u002Fperformance\u002F)\n- [Core Web Vitals](https:\u002F\u002Fweb.dev\u002Fvitals\u002F)\n- [Lighthouse Documentation](https:\u002F\u002Fdevelopers.google.com\u002Fweb\u002Ftools\u002Flighthouse)\n- [MDN Performance Guide](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FPerformance)\n- [Next.js Performance](https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fadvanced-features\u002Fmeasuring-performance)\n- [Image Optimization Guide](https:\u002F\u002Fweb.dev\u002Ffast\u002F#optimize-your-images)\n\n---\n\n**Pro Tip:** Focus on Core Web Vitals (LCP, FID, CLS) first - they have the biggest impact on user experience and SEO rankings!\n",{"name":5,"description":7},"main","2b749c82b5d11fac39d9a6e021ce3f5b8a541bd1","cli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Fweb-performance-optimization",3963,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates","https:\u002F\u002Faitmpl.com","https:\u002F\u002Fgithub.com\u002Fdavila7","https:\u002F\u002Fdanielavila.me","Building AI dev tools with LLMs","2026-11-15 01:32:48",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add davila7\u002Fclaude-code-templates --skill web-performance-optimization",{"tool":72,"command":73},"bunx","bunx skills add davila7\u002Fclaude-code-templates --skill web-performance-optimization",{"tool":75,"command":76},"pnpm","pnpm dlx skills add davila7\u002Fclaude-code-templates --skill web-performance-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-development\u002Fweb-performance-optimization\u002FSKILL.md",true,[80,86],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"mockups\u002Fplace.tsx","OTHER","其他",3355,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Fshape-with-canvas\u002Fmockups\u002Fplace.tsx",{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fbreadboard.md","REFERENCE","参考文档",2811,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Fshape-with-canvas\u002Freferences\u002Fbreadboard.md",[93,120,146,170,207,235],{"skillNo":94,"name":95,"nameZh":17,"description":96,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":51},"01M70NHBTQ8BV0A2SCAZXEPHCX","wealthville-pool-scoring","Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter\u002FHold\u002FExit\u002FReduce\u002FAvoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-data\u002Fwealthville-pool-scoring\u002FSKILL.md",[],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"scoring","pool","wealthville pool scoring","liquidity","which","for","exit","now","use","when","reduce","with","record","track","verdict","evm","solana","how","public","look",{"skillNo":121,"name":122,"nameZh":17,"description":123,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":51},"01M70MB6VR8ERJ4EM8D5KHBMEV","technical-debt-auditor","Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO\u002FFIXME\u002FHACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like \"where should I focus refactoring\", \"find code smells\", \"audit my codebase\", \"what technical debt do we have\", \"prioritize cleanup work\", or asks about code quality metrics. Also trigger when the user mentions \"code rot\", \"legacy cleanup\", \"refactoring priorities\", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say \"technical debt\" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Ftechnical-debt-auditor\u002FSKILL.md",[],[127,128,129,130,131,132,133,134,135,136,137,109,138,139,140,141,142,143,144,145],"technical debt","debt","technical","technical debt auditor","auditor","coverage","complexity","markers","project","cleanup","unused","code","todo","work","plan","focus","signals","audit","dependency",{"skillNo":147,"name":148,"nameZh":17,"description":149,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":51},"01M70KPYH9QNHCNME5GJQGE22K","readonly-sql-guard","Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production\u002FERP\u002Fanalytics database (a \"query\" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write\u002FDDL\u002Fside-effect\u002Ftransaction-escape risks. Checks what a statement CALLS, not just its shape.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdatabase\u002Freadonly-sql-guard\u002FSKILL.md",[],[153,154,155,156,157,158,159,105,160,161,162,163,164,165,166,108,167,168,109,169],"readonly","guard","sql guard","sql","readonly sql guard","erp","effect","read-only","db","just","tool","calls","only","MCP","access","database","query",{"skillNo":171,"name":172,"nameZh":173,"description":174,"descriptionZh":175,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":176,"licenseFileUrl":177,"sourceHtmlUrl":178,"categories":179,"keywords":184,"publishedAt":51},"01M6AFY6F7CC2BBZP1QD6VTNVC","web-artifacts-builder","Claude 网页 Artifact 构建","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","用于创建精细的、多组件的 claude.ai HTML artifact 的工具套件，采用现代前端 Web 技术（React、Tailwind CSS、shadcn\u002Fui）。适用于需要状态管理、路由或 shadcn\u002Fui 组件的复杂 artifact —— 不适用于简单的单文件 HTML\u002FJSX artifact。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[180,181],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":182,"categoryName":183,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[185,31,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,105,206],"artifacts builder","web artifacts builder","artifacts","builder","state","routing","state management","component","css","frontend","ui","Tools","file","components","shadcn","react","Tailwind","suite","jsx","html","single-file","ui components",{"skillNo":208,"name":209,"nameZh":210,"description":211,"descriptionZh":212,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":176,"licenseFileUrl":213,"sourceHtmlUrl":214,"categories":215,"keywords":222,"publishedAt":51},"01M6AFWF33SFV9Z3SF4PEEE4BF","webapp-testing","Playwright Web 应用测试","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","使用 Playwright 与本地 Web 应用进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[216,219],{"categoryNo":217,"categoryName":218,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":220,"categoryName":221,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[223,224,225,226,227,31,228,194,195,229,230,231,232,105,233,111,234],"webapp testing","testing","webapp","browser","playwright","applications","debugging","toolkit","logs","screenshots","local","behavior",{"skillNo":236,"name":237,"nameZh":238,"description":239,"descriptionZh":240,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":176,"licenseFileUrl":241,"sourceHtmlUrl":242,"categories":243,"keywords":250,"publishedAt":51},"01M6AF67Q67JJJ5V51JR2P52KA","discernment-nudge","回复事实核查追问","After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.","在你给出用户可能据以行动的实质性答案或草稿之后——建议或推荐、起草的工件（如目标、计划、推介、提案或电子邮件）、估计或预测、数据分析或解读、他们可能依赖的事实声明，或多步骤论证——在最终确定回复之前调用本技能，然后，如适用，附加 2-3 个简短的后续问题，每个问题都与你刚刚产出的具体内容相关，帮助用户核查关键事实、探究推理或假设，并注意到缺失的上下文。每次对话最多执行一次。当用户询问琐碎的操作方法或简单查找、想要纯教育性解释、仅要求根据提供的内容格式化\u002F转换\u002F组装文件、正在编写将要运行的代码、正在进行创意写作或休闲聊天，或已经要求你复核、引用或审查时跳过——技能文件解释了这些边界和确切的输出格式。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FSKILL.md",[244,247],{"categoryNo":245,"categoryName":246,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TMSBZZX4V1THHNVC815","回答复核",{"categoryNo":248,"categoryName":249,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[251,252,253,254,255,256,257,258,187,259,197,138,260,261,262,263,264,165,265,109,266,267,268,269,270,117,271],"discernment nudge","nudge","interpretation","help","run","reasoning","data","writing","lookup","content","review","conversation","short","up","invoke","you","analysis","claims","argument","assemble","recommendations"]