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 to implement property decorators that capture variable names and detect method chaining. The focus is on correctly using varname() within @property decorated methods and will() for method chain detection.",
"type": "weighted_checklist",
"checklist": [
{
"name": "@property decorator used",
"description": "The get_config and chain methods are implemented as properties using the @property decorator",
"max_score": 15
},
{
"name": "varname() in property",
"description": "The varname() function is called within the get_config property to capture the variable name",
"max_score": 25
},
{
"name": "will() in property",
"description": "The will() function is called within the chain property to detect the next method call",
"max_score": 25
},
{
"name": "Proper storage",
"description": "Captured variable names and method names are stored in instance attributes (e.g., lists) for later retrieval",
"max_score": 15
},
{
"name": "Return self pattern",
"description": "Properties return self to enable assignment capture and method chaining as specified",
"max_score": 10
},
{
"name": "Test compatibility",
"description": "Implementation satisfies all test cases: single assignment, method chain detection, multiple assignments, and stub method chaining",
"max_score": 10
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10