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 a Buffer type validator. The focus is exclusively on correct usage of the package's API to detect Buffer objects and handle various input types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package import",
"description": "Correctly imports the is-buffer package using require() or import statement",
"max_score": 10
},
{
"name": "Core function usage",
"description": "Uses the isBuffer function from the is-buffer package as the primary mechanism for Buffer detection",
"max_score": 40
},
{
"name": "Direct delegation",
"description": "Delegates the validation logic directly to is-buffer's isBuffer function rather than implementing custom Buffer detection logic",
"max_score": 30
},
{
"name": "Correct return values",
"description": "Returns the boolean result from is-buffer's isBuffer function correctly for all test cases (Buffer.from, Buffer.alloc, null, undefined, strings, numbers, objects, arrays)",
"max_score": 20
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9