init: common-skills v1

This commit is contained in:
Team
2026-03-26 21:00:51 +08:00
commit 264dacf157
16 changed files with 859 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"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."
}
]
}