Organization Skills
Organization Skills are published packages that Templates can reference. Keep the Organization API Key on your backend. End Users use the capabilities selected by their Template rather than managing the shared package through personal execution routes.
Package layout
Section titled “Package layout”A ZIP holds one complete Skill. Put SKILL.md at the root of the ZIP, or compress the Skill’s folder so that every entry is inside that one folder, with SKILL.md directly in it. A Version stores the folder’s contents with SKILL.md at its root: file listings and reads use paths without the folder name, and the package download returns the ZIP as uploaded. The __MACOSX/ folder and .DS_Store files that macOS adds when compressing are ignored: they are not stored and do not count as a top-level folder. Any other layout, such as two top-level folders or SKILL.md only in a deeper folder, ends the upload failed with validation.failureCode skill_manifest_missing. Console import accepts the same layouts.
Upload, validate and publish
Section titled “Upload, validate and publish”- Upload a ZIP package with
POST /api/v1/org/skills/uploads. This stages validation and creates no published Version. - Read
GET /api/v1/org/skills/uploads/{uploadId}for validation results, staged status and expiry. Cancel an unpublished staged upload withDELETEon that path. - Publish a validated upload with
POST /api/v1/org/skills/uploads/{uploadId}/publish. Publication creates a Version available for Template reference.
Upload a new Version
Section titled “Upload a new Version”- Read the Skill with
GET /api/v1/org/skills/{skillId}and keep itsskill.etag, including the quotes. It is not the responseETagheader. - Upload the complete ZIP with
POST /api/v1/org/skills/{skillId}/uploads, thatskill.etagasIf-Match,Content-Lengthand anIdempotency-Key. MissingIf-Matchreturns 428; a stale one returns 412, so read the Skill again. A Skill of another Organization returns 404. - Read, cancel and publish the returned upload with the
/api/v1/org/skills/uploads/{uploadId}routes above. Publication adds the next Version and takes the name in the newSKILL.md. Templates keep the Version they reference until you select the new one, and each Session keeps the Versions fixed in its configuration.
If the Skill changed, was deleted or another Skill took the new name before publication, the upload ends failed with validation.failureCode stale_head, skill_unavailable or skill_name_conflict. Retrying with the same ZIP, Skill, If-Match and key returns the original upload; reusing a key for different input returns 409 idempotency_key_reused.
Inspect published content
Section titled “Inspect published content”| Method and path | Purpose |
|---|---|
GET /api/v1/org/skills |
List available published shared Skills. |
GET /api/v1/org/skills/{skillId} |
Read the Skill and published Version information. |
GET /api/v1/org/skills/{skillId}/files |
List files in a selected published Version. |
GET /api/v1/org/skills/{skillId}/file |
Read a file from that Version. |
GET /api/v1/org/skills/{skillId}/package |
Download the complete published package. |
Use the Template reference catalog to select available packages and save the Template that consumes them, through content.skills or the Console Template editor. Staged uploads and immutable publications are different resources; a successful upload does not establish publication.