CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tmp-promise

The tmp package with promises support and disposers.

93

1.78x
Quality

Pending

Does it follow best practices?

Impact

93%

1.78x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-3/

{
  "context": "This evaluation assesses how well the engineer uses tmp-promise's file() method for asynchronous temporary file creation and cleanup. The focus is on correct usage of the file() API, proper cleanup patterns, and handling the returned file descriptor and cleanup function.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses file() method",
      "description": "Uses the tmp-promise file() method to create a temporary file asynchronously",
      "max_score": 25
    },
    {
      "name": "Configures postfix option",
      "description": "Passes the postfix option to file() to specify the .txt extension (e.g., { postfix: '.txt' })",
      "max_score": 15
    },
    {
      "name": "Cleanup function usage",
      "description": "Calls the cleanup() function returned by file() to remove the temporary file",
      "max_score": 25
    },
    {
      "name": "Error-safe cleanup",
      "description": "Ensures cleanup() is called even when errors occur, using try-finally or similar error handling patterns",
      "max_score": 20
    },
    {
      "name": "File path usage",
      "description": "Correctly uses the path property from the file() return value to access the temporary file",
      "max_score": 15
    }
  ]
}

tile.json