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 criteria evaluates how effectively the engineer uses the is-buffer package to implement buffer type validation. The focus is on correct package usage, proper import/require statements, and appropriate function invocation.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package Import",
"description": "The is-buffer package is correctly imported using require() (CommonJS) or import statement, assigned to a variable (commonly 'isBuffer')",
"max_score": 15
},
{
"name": "Direct Function Usage",
"description": "The imported isBuffer function is directly invoked in the validateBuffer implementation to check if data is a Buffer",
"max_score": 40
},
{
"name": "Return Value Usage",
"description": "The boolean return value from isBuffer() is correctly used or returned from validateBuffer(), without unnecessary transformations or modifications",
"max_score": 25
},
{
"name": "No Reimplementation",
"description": "The solution does not reimplement buffer type checking logic (e.g., checking instanceof Buffer, constructor properties, etc.) but instead relies on the is-buffer package",
"max_score": 20
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9