CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-clean-css

A well-tested CSS minifier providing fast and efficient CSS optimization and minification.

93

1.17x

Quality

Pending

Does it follow best practices?

Impact

93%

1.17x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "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
    }
  ]
}

tile.json