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 criteria evaluates how well the engineer uses the tildify package to handle trailing separator edge cases when converting absolute paths to tilde notation. The focus is on understanding that tildify inherently handles these edge cases correctly.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses tildify package",
"description": "The solution imports and uses the tildify package (default export function) as the primary mechanism for path conversion",
"max_score": 50
},
{
"name": "Direct function call",
"description": "The solution directly calls tildify with the input path without unnecessary preprocessing or post-processing of trailing separators, trusting that tildify handles these edge cases internally",
"max_score": 30
},
{
"name": "Passes all tests",
"description": "The solution correctly passes all test cases including paths with trailing separators, exact home directory matches (with and without trailing separators), and standard paths, demonstrating that tildify's built-in trailing separator handling works correctly",
"max_score": 20
}
]
}