CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-external-editor

Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT

79

1.05x
Quality

Pending

Does it follow best practices?

Impact

79%

1.05x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-2/

{
  "context": "Assesses whether the solution uses external-editor's callback-based async helper correctly to capture edited text, forward temporary file options, and propagate errors while applying the optional newline trim. It ignores general code quality concerns and looks only at correct library usage.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses editAsync",
      "description": "Invokes external-editor's editAsync to launch the editor with the provided initial text (not the synchronous edit or ExternalEditor.runAsync variants), wiring the callback to resolve the Promise when content is returned.",
      "max_score": 35
    },
    {
      "name": "Error propagation",
      "description": "Maps the error-first callback from editAsync to a rejected result without swallowing or replacing the original error.",
      "max_score": 25
    },
    {
      "name": "Forwards file options",
      "description": "Passes through any provided fileOptions (prefix, postfix, template, dir, mode) directly to editAsync when initiating the edit.",
      "max_score": 20
    },
    {
      "name": "Result handling",
      "description": "Uses the string returned via editAsync's callback as the basis for the final result and applies the optional single trailing newline trim behavior when requested.",
      "max_score": 20
    }
  ]
}

tile.json