mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-12 12:06:29 +03:00
55 lines
1.8 KiB
JSON
55 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://github.com/magnus919/agent-skills/schemas/evals-v1.schema.json",
|
|
"title": "agent-skills repository eval manifest v1",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schema_version", "skill_name", "evals"],
|
|
"properties": {
|
|
"schema_version": {"type": "integer", "const": 1},
|
|
"skill_name": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
|
"evals": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {"$ref": "#/$defs/eval_case"}
|
|
}
|
|
},
|
|
"$defs": {
|
|
"relative_path": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F])(?=.*\\S)(?!/)(?!\\./)(?!.*//)(?!.*(?:^|/)\\.(?:/|$))(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\/$).+$"
|
|
},
|
|
"eval_case": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "prompt", "expected_output", "assertions"],
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 64,
|
|
"pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F])[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
},
|
|
"prompt": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
|
"expected_output": {"type": "string", "minLength": 1, "pattern": "\\S"},
|
|
"assertions": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {"type": "string", "minLength": 1, "pattern": "\\S"}
|
|
},
|
|
"files": {
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items": {"$ref": "#/$defs/relative_path"}
|
|
},
|
|
"case_set": {
|
|
"type": "string",
|
|
"enum": ["dev", "regression", "release"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|