Dark magics about variable names in python
90
Pending
Does it follow best practices?
Impact
90%
1.40xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses the varname package's debug() function to implement variable name introspection for debugging output. The focus is exclusively on proper usage of the debug() function and its parameters (prefix, merge, vars_only) to achieve the specified debugging behaviors.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses debug function",
"description": "Imports and uses the debug() function from the varname package (specifically from varname.helpers or varname) rather than implementing manual variable name introspection",
"max_score": 30
},
{
"name": "Basic variable printing",
"description": "Correctly uses debug() to print single and multiple variables with their names and values in the default format",
"max_score": 20
},
{
"name": "Custom prefix parameter",
"description": "Properly utilizes the prefix parameter of debug() to customize the output prefix instead of manually formatting strings",
"max_score": 15
},
{
"name": "Merge parameter usage",
"description": "Correctly applies the merge parameter (merge=True) to consolidate multiple variables on a single line",
"max_score": 15
},
{
"name": "Expression debugging",
"description": "Properly uses the vars_only parameter (vars_only=False) with debug() to display full expression source code rather than just variable names",
"max_score": 20
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10