Convert an absolute path to a tilde path by replacing the user's home directory with ~
93
Pending
Does it follow best practices?
Impact
93%
1.09xAverage score across 8 eval scenarios
Pending
The risk profile of this skill
{
"context": "This evaluation assesses how effectively the engineer uses the tildify package to convert absolute paths to tilde-based paths. The focus is on correct usage of the package's API and proper handling of the core functionality.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports tildify",
"description": "The solution imports the tildify package (e.g., using require('tildify') or import tildify from 'tildify')",
"max_score": 20
},
{
"name": "Uses tildify function",
"description": "The implementation calls the tildify function with the input path as an argument",
"max_score": 30
},
{
"name": "Returns tildify result",
"description": "The function returns the result from calling tildify without unnecessary additional processing",
"max_score": 25
},
{
"name": "Handles exact home",
"description": "The implementation correctly handles the case where the input is exactly the home directory (returns '~')",
"max_score": 10
},
{
"name": "Handles paths in home",
"description": "The implementation correctly handles paths within the home directory by replacing the home prefix with '~'",
"max_score": 10
},
{
"name": "Handles non-home paths",
"description": "The implementation correctly handles paths outside the home directory by returning them unchanged",
"max_score": 5
}
]
}