Create a Skill
Creates a custom Skill from a ZIP package. The initial version is 1.0.
Endpoint
/api/v1/skillsUploads a ZIP package as multipart/form-data to create a custom Skill. The initial version is 1.0.
This API only creates a new Skill. To upload a new version for an existing Skill, use Create a version.
Request body
filefileRequiredSkill package. Must be a .zip file no larger than 50MB
display_namestringOptionalDisplay name. If omitted or blank, the name in SKILL.md is used
display_descriptionstringOptionalDisplay description. If omitted or blank, the description in SKILL.md is used
The root directory of the ZIP package must contain SKILL.md, and the Front Matter must contain name and description.
Response fields
Returns a SkillDTO. After creation, latest_version is 1.0. After the security scan is submitted, status is checking. If no scan task is created, it is active.
idstringUnique Skill ID
display_namestringDisplay name
display_descriptionstringDisplay description
sourcestringAlways customer
statusstringchecking or active
latest_versionstringLatest version number
classificationstring / nullAlways null. Custom Skills have no classification
meta_infoobject / nullAlways null. Custom Skills have no metadata
created_atstringCreation time
updated_atstringUpdate time
Example
curl -X POST "https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/skills" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-F "file=@./pdf-skill.zip" \
-F "display_name=pdf3.0" \
-F "display_description=PDF processing skill"
Response example
{
"success": true,
"error_code": null,
"error_msg": null,
"data": {
"id": "skill_NWVhN2MyM2MyZjA3xxxxxxxxxxxx",
"display_name": "pdf3.0",
"display_description": "PDF processing skill",
"source": "customer",
"status": "checking",
"latest_version": "1.0",
"classification": null,
"meta_info": null,
"created_at": "2026-06-16T07:56:03Z",
"updated_at": "2026-06-16T07:56:03Z"
},
"request_id": "15a89d4c-f142-4e00-a9f7-b088442417c9"
}
Error codes
| HTTP status | error_code | Description |
|---|---|---|
| 401 | WORKSPACE_ID_ILLEGAL | Identity information is missing or invalid |
| 400 | SKILL_FILE_IS_NULL | file is not uploaded or the file is empty |
| 400 | SKILL_FILE_FORMATER_ERROR | The file extension is not .zip, or the file header is not in ZIP format |
| 400 | SKILL_PACKAGE_TOO_LARGE | The ZIP package exceeds 50MB |
| 400 | INVALID_PARAMETER | The multipart request is malformed |
| 500 | SKILL_FILE_FORMATER_ERROR | SKILL.md is missing, or the Front Matter lacks name or description |
| 500 | SKILL_NAME_OFFICIAL_DUPLICATE | The name in SKILL.md duplicates an official Skill |
| 500 | SKILL_NAME_CUSTOMER_DUPLICATE | The name in SKILL.md duplicates a custom Skill in the current workspace |
| 500 | SKILL_PACKAGE_TOO_LARGE | The uncompressed content exceeds 100MB |
For the full list, see Skill API error codes.