Create a skill
Create a new skill with its first version.
Ownership is set automatically:
creator_user_idfrom the authenticated userowning_workspace_idfrom the payload or auth context
Name must be lowercase alphanumeric with hyphens/underscores (1-200 chars).
Visibility must be one of: org, workspace, personal, public.
Stability must be one of: stable, experimental, deprecated.
Supports X-Idempotency-Key for safe retries — within 60s, a request with
the same key returns the original response instead of creating a duplicate.
Authorizations
Enter your API key (e.g. dai_sk_test_key_001)
Cookies
Body
Validated request for POST /skills.
Uses relaxed name validation (allows underscores, dots, up to 200 chars).
URL-safe slug. Lowercase alphanumeric with hyphens/underscores/dots.
1 - 200"search-flights"
Short one-line description shown in the skill registry.
1 - 1024"Search available flights given origin, destination, and dates."
Human registry title shown instead of the slug name. Optional — the registry humanizes the slug when omitted.
200"Search Flights"
Full SKILL.md body. At least 50 characters of substantive content.
1Alias for body_markdown — accepted for backwards compatibility.
1One of: org, workspace, personal, public.
"org"
One of: stable, experimental, deprecated.
"stable"
Optional grouping label, e.g. 'tools', 'policies', 'workflows'.
100"tools"
Taxonomy class: capability or preference. Defaults to the frontmatter skill-type: when omitted (legacy model-gap/proprietary/convention labels still accepted).
"preference"
Knowledge scope: public or private. Pairs with skill_type; defaults to the frontmatter skill-scope: when omitted (or the scope a legacy skill-type implies).
"public"
Who may fire the skill: model, user, or any. Defaults to the frontmatter invocation: when omitted, else 'model'.
"model"
Phrases that hint the skill should activate. Used by smart routing.
Raw frontmatter dict parsed from the SKILL.md header.
Optional message attached to the first version.
Optional author label for the first version.
Scope the skill to a specific project.
Owning workspace ID. Defaults to the caller's current workspace.