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": "codereview",
"evals": [
{
"id": 1,
"prompt": "Review this Python function for issues:\ndef calc(x): return x*86400",
"expected_output": "Identifies the magic number 86400 and suggests extracting it as a named constant like SECONDS_PER_DAY."
},
{
"id": 2,
"prompt": "Is this code okay?\ndef get_user(db, id):\n return db.execute('SELECT * FROM users WHERE id=' + id)",
"expected_output": "Flags SQL injection vulnerability and recommends parameterized queries."
},
{
"id": 3,
"prompt": "Review this function:\ndef process(a,b,c,d,e,f,g): return a+b+c+d+e+f+g",
"expected_output": "Flags too many parameters and suggests refactoring to use a data structure or fewer arguments."
}
]
}