/v1/skillsCreate a skill
Creates a skill from uploaded files and creates its initial version. Provide the files in a single top-level directory with SKILL.md at that directory's root; optionally set display_name to a human-readable label. If omitted, the label is derived from the SKILL.md frontmatter name.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Multipart form data containing the skill files and an optional display name.
A 400 is returned for an invalid argument; a 401 for invalid authentication in the x-api-key header; a 403 when the caller lacks permission; a 404 when a requested entity is not found; a 408 when the deadline expires; and a 409 when a concurrency issue aborts the operation. A 412 is returned when a precondition is not met; a 413 when the operation exceeds a valid range; a 429 when a resource is exhausted; a 431 when request metadata is too large; a 499 when the client cancels the operation; a 500 for an internal error; a 501 when the operation is unsupported; a 503 when the service is unavailable; a 504 when an upstream service times out; and a 529 when the service is overloaded. The files field must include SKILL.md at the root of a single top-level directory; display_name can contain at most 255 characters.