Determine if an object is a Buffer without including the full buffer module
93
Pending
Does it follow best practices?
Impact
93%
1.02xAverage score across 9 eval scenarios
Pending
The risk profile of this skill
{
"context": "This evaluation assesses how well the engineer uses the is-buffer package to detect Buffer objects as a lightweight alternative to Buffer.isBuffer(). The focus is on proper package integration, correct API usage, and appropriate application of the buffer detection capability.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package Import",
"description": "Correctly imports the is-buffer package using require('is-buffer') and assigns it to a variable (e.g., const isBuffer = require('is-buffer'))",
"max_score": 15
},
{
"name": "Core Detection Usage",
"description": "Uses the imported is-buffer function to check if the input data parameter is a Buffer (e.g., isBuffer(data))",
"max_score": 35
},
{
"name": "Result Integration",
"description": "Correctly uses the boolean result from is-buffer to populate the isBinary property of the returned object",
"max_score": 25
},
{
"name": "Logical Application",
"description": "Correctly derives the needsConversion property as the logical inverse of the is-buffer result (needsConversion should be true when is-buffer returns false)",
"max_score": 25
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9