Skills
Import reusable SKILL.md packages from archives or GitHub repositories into Service workspaces, pin skill versions to agents, and choose publication modes.
Use a skill to give an agent reusable instructions and supporting files. The agent sees a short catalog entry and reads the relevant SKILL.md when needed. This page takes a release-notes skill from a local file to an agent run.
You need workspace write permission to import a skill and a primary environment to load an imported workspace skill. Configure the tools the workflow needs separately. See Harness skills for the catalog and on-demand reading behavior.
Built-in skills
To teach an agent Service operations, select platform-operations in its Skills section and save a revision. The agent-configuration fragment is:
{"builtin_skills": ["platform-operations"]}Enable the relevant platform tools alongside the skill—selecting a skill provides procedural instructions, while toolsets grant execution permissions.
GET /api/v1/builtin-skills lists release-owned skills. In Console, open one to browse SKILL.md, references and the deployment catalog, preview source, or download its ZIP. Built-in skills update with the deployment; they have no workspace ID or independent revision history. The platform package includes schemas/agent-config.json and instance/catalog.json.
All agents, including custom copies and dynamic children, read selected built-in skills from read-only Host mounts at /platform-skills and /platform-instance through authorized file tools, requiring no primary environment. Imported workspace skills sync into the primary environment via skill_sync. Selected built-in and imported skills must have distinct declared names.
Package format
Create a directory for the package and save this file as SKILL.md:
---
name: release-notes
description: Write release notes from a supplied list of merged pull requests.
---
# Release notes
1. Read the supplied pull-request titles and descriptions.
2. Group changes under Features, Fixes, and Maintenance; omit empty groups.
3. Write one concise bullet per change and include its supplied PR number.
4. Ask for missing source details instead of inventing changes or PR numbers.From that directory, use Python 3 to create the ZIP:
python -m zipfile -c release-notes.zip SKILL.mdYou can include supporting files and refer to them by relative path from SKILL.md. Put SKILL.md at the archive root or inside its only top-level directory. The document must be UTF-8 with YAML front matter containing name and description.
The declared name becomes the model-visible name and directory component. Use a portable name such as release-notes: at most 255 UTF-8 bytes, without separators, . or .., reserved device names or reserved filename characters.
| Package limit | Maximum |
|---|---|
| Files | 1000 |
| One file | 8 MiB |
| Expanded package | 32 MiB |
SKILL.md | 256 KiB |
| Relative path | 1024 bytes |
Archive files must use relative paths and stored or deflate compression. Links and encrypted entries are rejected. The upload endpoint has a separate size limit: objects.upload_bytes, 1 MiB by default.
Add a skill
- Open Skills → Import skill in Console and choose
release-notes.zip. You can also import a directory from a public GitHub repository. - Open the agent, select the imported skill, and save a revision. Saving pins the exact skill revision.
- Start a conversation with a primary environment. Supply a few merged PR descriptions and ask the agent to use
release-notes. - Inspect the run: the agent should read
SKILL.mdand produce grouped release notes from your supplied input.
For an HTTP integration, first upload the ZIP and retain its returned upload_id. Send this body to POST /api/v1/skills, replacing upl_... with that ID:
{"source": {"kind": "upload", "upload_id": "upl_..."}}Alternatively, use this source body with your public repository, ref and directory:
{"source": {"kind": "github", "repository": "owner/repo", "ref": "main", "path": "skills/release-notes"}}Service reads GitHub anonymously and records the resolved commit. Omit ref for the default branch or path for the repository root. An optional commit requires an exact resolved commit; a mismatch returns 409 conflict with reason commit_mismatch. Each GitHub request is bounded by control.import_timeout.
To check a source before creating the skill, send the same body to POST /api/v1/skills/validate. It returns the validated manifest—name, description, files, sizes, digest and resolved source—without storing the package. GitHub validation still uses the caller's upload budget.
Retain the created skill's id (sk_...) for URLs and agent configuration. Its resource name and description default to the package's front matter and can be overridden for display. The model-visible name always comes from the pinned SKILL.md; changing the display name does not rename the skill in the model's catalog.
Revisions
To update the workflow:
- Edit the package and import it through
POST /api/v1/skills/{skill_id}/revisionswith{source, note?, make_default?}and the skill's currentIf-Match. - Keep
make_default: true(the default) to make new selections use it, or setfalseto stage a revision without changing the default. - Save a new agent revision selecting the desired skill revision. Existing agent revisions keep their old pins.
- Run the same small task and inspect the new instructions and result.
An agent configuration selects {"skill_id": "sk_...", "revision_id": "rev_..."} in skills. Omit revision_id to pin the skill's current default when saving. A package identical to the current default returns that revision again with 201; it creates no revision, regardless of make_default.
| Task | API |
|---|---|
| List revisions, newest first | GET /api/v1/skills/{skill_id}/revisions |
| Change the default | POST /api/v1/skills/{skill_id}/revisions/{revision_id}/set-default |
| Download the ZIP | GET /api/v1/skills/{skill_id}/revisions/{revision_id}/content |
| Read one packaged file | GET /api/v1/skills/{skill_id}/revisions/{revision_id}/files/{path} |
| Edit display name, description or labels | PATCH /api/v1/skills/{skill_id} |
| Find agents that pin the skill | GET /api/v1/agents?skill_id=sk_...; add skill_revision_id for one revision |
Skill lists support label, q, archived and source filters; source describes the default revision. Archive a skill to stop new agent revisions from selecting it. Existing pins continue working; unarchive restores editing and selection. Different workspace skills may declare the same name, but one agent's selected skill revisions must declare distinct names.
Runtime synchronization