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": "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."
}
]
}