Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize CSS file size. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.
.claude/skills/thedaviddias-css-file-size/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -9% | 0% |
Large CSS files block rendering and increase the time it takes for the browser to construct the CSSOM, leading to a slower First Contentful Paint.
Audit the size of CSS files and identify those exceeding recommended limits (e.g., > 50KB gzipped).
Minify CSS, remove unused styles, and consider splitting large stylesheets into smaller, page-specific files.
Explain how CSS file size affects the critical rendering path and browser performance.
Review the routes, assets, and loading behavior that affect Optimize CSS file size. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.
For full implementation details, code examples, and framework-specific guidance, see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/performance/css-file-size
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | pass→pass | 13,186 | 9,944 | -25% | 1 | 1 | 0% | 2,326 | 2,119 | -9% | 0 | 0 | — |
case-01 | pass→pass | 10,460 | 6,007 | -43% | 1 | 1 | 0% | 1,855 | 1,333 | -28% | 0 | 0 | — |
case-02 | pass→pass | 11,604 | 9,422 | -19% | 1 | 1 | 0% | 2,039 | 1,917 | -6% | 0 | 0 | — |
case-03 | pass→pass | 11,356 | 10,910 | -4% | 1 | 1 | 0% | 2,245 | 2,123 | -5% | 0 | 0 | — |
case-05 | pass→pass | 13,721 | 15,332 | +12% | 1 | 1 | 0% | 2,837 | 2,947 | +4% | 0 | 0 | — |
case-06 | pass→pass | 4,036 | 4,423 | +10% | 1 | 1 | 0% | 682 | 1,180 | +73% | 0 | 0 | — |
case-07 | pass→pass | 9,907 | 8,129 | -18% | 1 | 1 | 0% | 2,082 | 1,803 | -13% | 0 | 0 | — |
case-08 | fail→pass | 12,401 | 8,823 | -29% | 1 | 1 | 0% | 2,161 | 1,839 | -15% | 0 | 0 | — |
case-09 | pass→pass | 13,288 | 9,480 | -29% | 1 | 1 | 0% | 2,375 | 1,808 | -24% | 0 | 0 | — |
case-10 | fail→fail | 9,632 | 9,420 | -2% | 1 | 1 | 0% | 1,721 | 1,683 | -2% | 0 | 0 | — |
case-11 | pass→pass | 13,450 | 9,449 | -30% | 1 | 1 | 0% | 2,490 | 1,788 | -28% | 0 | 0 | — |
case-12 | fail→pass | 11,689 | 5,664 | -52% | 1 | 1 | 0% | 2,182 | 1,349 | -38% | 0 | 0 | — |
case-13 | pass→pass | 8,647 | 6,316 | -27% | 1 | 1 | 0% | 1,632 | 1,418 | -13% | 0 | 0 | — |
case-14 | fail→pass | 9,178 | 6,274 | -32% | 1 | 1 | 0% | 1,742 | 1,423 | -18% | 0 | 0 | — |
case-15 | pass→pass | 13,624 | 11,828 | -13% | 1 | 1 | 0% | 2,435 | 2,748 | +13% | 0 | 0 | — |
case-16 | pass→pass | 11,898 | 10,000 | -16% | 1 | 1 | 0% | 2,131 | 1,933 | -9% | 0 | 0 | — |
case-17 | pass→pass | 10,213 | 9,522 | -7% | 1 | 1 | 0% | 2,043 | 2,211 | +8% | 0 | 0 | — |
case-18 | fail→pass | 9,096 | 2,768 | -70% | 1 | 1 | 0% | 1,552 | 709 | -54% | 0 | 0 | — |
case-19 | pass→pass | 13,560 | 13,488 | -1% | 1 | 1 | 0% | 2,442 | 2,639 | +8% | 0 | 0 | — |
case-20 | pass→pass | 13,161 | 10,380 | -21% | 1 | 1 | 0% | 2,188 | 2,215 | +1% | 0 | 0 | — |
case-21 | pass→pass | 9,963 | 7,772 | -22% | 1 | 1 | 0% | 2,089 | 1,839 | -12% | 0 | 0 | — |
case-22 | pass→pass | 13,146 | 13,058 | -1% | 1 | 1 | 0% | 2,801 | 2,812 | +0% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +18 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.