css-minification
What it does
This skill checks that stylesheets are minified in production. It is for developers and site owners who want faster page loads with the same visual result.
When to use it
- ✓When production CSS files are readable and full of whitespace.
- ✓When your build tool is not set up to minify.
- ✓When you want to combine minification with compression for even smaller files.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/css-minification/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make sure my production build minifies all CSS files and tell me how much smaller they get.”
5 new skills a week. 1 minute to read.
How it works
The agent sets up minification in the build tool, using tools such as cssnano, lightningcss or the framework's built-in option, and confirms the output is smaller.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Minify all CSS files
Unminified CSS wastes bandwidth with whitespace, comments, and verbose syntax—minification delivers the same styles in significantly fewer bytes.
Quick Reference
- Enable minification in build tool (Vite, webpack, etc.)
- Use cssnano or lightningcss for PostCSS pipelines
- Typical reduction: 20-40% file size savings
- Combine with Gzip/Brotli for maximum compression
Check
Verify that all CSS files are minified in production to reduce file size, eliminate whitespace, and improve page load performance.
Fix
Set up CSS minification in your build process using tools like cssnano, CleanCSS, or built-in framework minification to compress CSS files.
Explain
Explain how CSS minification improves website performance by reducing file sizes, decreasing bandwidth usage, and speeding up page load times.
Code Review
Review stylesheets, component styles, and responsive states related to Minify all CSS files. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/css/css-minification
FAQ
How much smaller can CSS get?
The skill gives a typical range of 20 to 40 percent.
Does minification change how the site looks?
The skill describes it as delivering the same styles in fewer bytes.
Should I also use compression?
Yes. The skill suggests combining minification with Gzip or Brotli.
Details
Original description by the author
Use when reviewing stylesheets, component styles, and responsive behavior related to Minify all CSS files. Check the rendered layout across breakpoints and interaction states before proposing a fix.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2800
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.