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 effectively the engineer uses clean-css's URL rebasing and path normalization capabilities to solve the CSS asset path normalization problem. The focus is on proper configuration of clean-css options and understanding of its cross-platform path handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CleanCSS instantiation",
"description": "Creates a new CleanCSS instance with the `new CleanCSS()` constructor to access clean-css functionality",
"max_score": 15
},
{
"name": "URL rebasing enabled",
"description": "Enables URL rebasing by setting the `rebase` option to `true` in the CleanCSS constructor options",
"max_score": 20
},
{
"name": "Target directory configuration",
"description": "Correctly configures the `rebaseTo` option to specify the target output directory for rebased URLs",
"max_score": 20
},
{
"name": "CSS minification invocation",
"description": "Calls the `minify()` method on the CleanCSS instance to process the CSS content and trigger URL rebasing",
"max_score": 15
},
{
"name": "Source path handling",
"description": "Provides the source CSS file path information to clean-css, either by passing the file path directly to `minify()` or by using object input format with source keys, enabling proper relative path resolution",
"max_score": 20
},
{
"name": "Output extraction",
"description": "Extracts the processed CSS content from the minify result by accessing the `styles` property of the returned output object",
"max_score": 10
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10