A well-tested CSS minifier providing fast and efficient CSS optimization and minification.
93
Quality
Pending
Does it follow best practices?
Impact
93%
1.17xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses clean-css to minify CSS files and extract statistics. The focus is on proper usage of the CleanCSS class, minify() method, and accessing the stats property from minification results.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CleanCSS instantiation",
"description": "Creates a new instance of CleanCSS using the correct syntax (e.g., new CleanCSS() or new CleanCSS(options))",
"max_score": 15
},
{
"name": "minify() method usage",
"description": "Calls the minify() method on the CleanCSS instance with appropriate input (file path array or CSS string)",
"max_score": 20
},
{
"name": "Stats access",
"description": "Accesses the stats property from the minify() result to retrieve statistics data",
"max_score": 20
},
{
"name": "originalSize extraction",
"description": "Correctly extracts originalSize from stats.originalSize",
"max_score": 10
},
{
"name": "minifiedSize extraction",
"description": "Correctly extracts minifiedSize from stats.minifiedSize",
"max_score": 10
},
{
"name": "timeTaken extraction",
"description": "Correctly extracts timeTaken from stats.timeSpent",
"max_score": 10
},
{
"name": "Efficiency calculation",
"description": "Calculates efficiency percentage using the formula: ((originalSize - minifiedSize) / originalSize) * 100",
"max_score": 10
},
{
"name": "Result structure",
"description": "Returns statistics in the expected format as objects or values matching the API specification",
"max_score": 5
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10