init: common-skills v1
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"skill_name": "typescript",
|
||||
"evals": [
|
||||
{
|
||||
"id": 1,
|
||||
"prompt": "How do I avoid using 'any' type in TypeScript?",
|
||||
"expected_output": "Explains using 'unknown' instead of 'any', with type guards, and shows interface/type definitions as alternatives."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"prompt": "Show me how to create a type-safe function in TypeScript that processes a list of items",
|
||||
"expected_output": "Demonstrates a generic function with <T> type parameter, proper return type annotation, and no use of 'any'."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"prompt": "What's the difference between type and interface in TypeScript?",
|
||||
"expected_output": "Explains that interfaces are extendable and better for object shapes, types support unions/intersections, with concrete examples of each."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user