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-9/

{
  "context": "This criteria evaluates how well the engineer uses the ulid package's monotonicFactory function to create an ordered ID generator that maintains strict lexicographic ordering, even when multiple IDs are generated within the same millisecond.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "monotonicFactory usage",
      "description": "Uses the monotonicFactory() function from the ulid package to create the ID generator",
      "max_score": 40
    },
    {
      "name": "Factory return",
      "description": "Returns the factory function created by monotonicFactory() from createOrderedIdGenerator(), not wrapping it unnecessarily",
      "max_score": 20
    },
    {
      "name": "Timestamp parameter",
      "description": "Correctly passes the optional timestamp parameter from IdGenerator to the factory function returned by monotonicFactory()",
      "max_score": 20
    },
    {
      "name": "Import statement",
      "description": "Imports monotonicFactory from the 'ulid' package correctly",
      "max_score": 10
    },
    {
      "name": "Type definitions",
      "description": "Exports the IdGenerator type as specified in the API, defining it as (timestamp?: number) => string",
      "max_score": 10
    }
  ]
}

tile.json