Files
common-skills/skills/python/evals/evals.json
T
2026-03-26 21:00:51 +08:00

21 lines
797 B
JSON

{
"skill_name": "python",
"evals": [
{
"id": 1,
"prompt": "What's the best way to handle file reading in Python?",
"expected_output": "Recommends 'with' statement (context manager) for automatic resource cleanup, shows open() usage with proper mode."
},
{
"id": 2,
"prompt": "How should I add type hints to a Python function?",
"expected_output": "Shows parameter type annotations, return type with ->, use of dataclasses or TypedDict for complex types."
},
{
"id": 3,
"prompt": "When should I use a list comprehension vs a for loop in Python?",
"expected_output": "Recommends comprehensions for simple transforms, for loops when logic is complex (multiple conditions/side effects), with examples of each."
}
]
}