CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-ulid

A universally-unique, lexicographically-sortable, identifier generator

78

1.34x
Quality

Pending

Does it follow best practices?

Impact

78%

1.34x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses the ulid package's isValid function to implement ULID validation, filtering, and counting functionality. The focus is on proper usage of the ulid package API for validation tasks.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import isValid function",
      "description": "The implementation imports the isValid function from the 'ulid' package (e.g., import { isValid } from 'ulid')",
      "max_score": 20
    },
    {
      "name": "Use isValid in validateULID",
      "description": "The validateULID function directly uses the isValid function from the ulid package to validate ULID strings",
      "max_score": 25
    },
    {
      "name": "Use isValid in filterValidULIDs",
      "description": "The filterValidULIDs function uses the isValid function to filter the array (e.g., ids.filter(isValid) or ids.filter(id => isValid(id)))",
      "max_score": 25
    },
    {
      "name": "Use isValid in countValidULIDs",
      "description": "The countValidULIDs function uses the isValid function to count valid ULIDs (e.g., by filtering with isValid and checking length, or using reduce with isValid)",
      "max_score": 20
    },
    {
      "name": "No reimplementation of validation",
      "description": "The implementation does not reimplement ULID validation logic (e.g., no manual regex checks, length checks, or character validation) and relies exclusively on the ulid package's isValid function",
      "max_score": 10
    }
  ]
}

tile.json