Skills and versioned bundles
Skills package reusable instructions and supporting files. GET /v2/skills to discover visible built-in and organization skills. GET a skill for its current published instructions/manifest; GET /versions and a numbered version for reproducible integrations.
Publish a first version
Use multipart form fields for a simple skill:
curl --fail-with-body -sS "$STACKAI_BASE_URL/v2/skills" \
-H "Authorization: Bearer $STACKAI_API_KEY" \
--form-string 'name=policy-summary' \
--form-string 'description=Summarize approved policy text with citations' \
--form-string 'instructions=Summarize only the provided policy. Cite the source and state when evidence is missing.'For a bundle, send repeated files parts whose filenames preserve relative POSIX paths, or a single zip. Include the bundle's SKILL.md and valid supporting files. Do not use absolute paths or traversal paths in the bundle. Use the endpoint's validation errors to fix invalid or oversized bundles; no universal upload-size allowance is promised here.
Publish and pin revisions
POST /v2/skills/{skill_id}/versions to publish another version. Repeat carry_paths to retain selected files, and set base_version to the version to copy from when needed; otherwise it uses the current version. Unmentioned files are not a substitute for explicitly carried files. Supplying a changed name can rename the skill when publishing.
Save the skill ID and returned version number. Fetch that exact version when reproducibility matters instead of always using latest. Version numbers are 1-based. Conflicting names or versions can produce 409. DELETE removes an owned skill and all its versions; organization administrators may delete other organization skills. Do not treat deletion as an unpublish operation for just one version.
Last updated
Was this helpful?

