A skill is a SKILL.md file in a Space that tells the assistant how you want a job done. You can view them in Skills, or use these endpoints to read and save skills from your editor, run one as a task, or copy it to another Space. To read skills, your key needs the Skills area (included in Full access and Read-only). To save or run them, you need Full access or Skills set to Read and write. Because skills live in Spaces, a key limited to certain Spaces only sees the skills inside them. For more background, see Skills, tools and templates.
GET /skills lists the skills your key can reach, and GET /skills/source reads a skill’s SKILL.md file. To save one, use POST /skills or PATCH /skills/source. POST /skills/runs runs a skill and starts a task:
{
"space_id": "SPACE_ID",
"path": "skills/monthly-report/SKILL.md",
"inputs": {}
}
POST /skills/exports packs a skill for download. Pass the skill’s location as query parameters, such as ?space_id=SPACE_ID&path=skills/monthly-report/SKILL.md. It returns 202 and finishes the export in the background.
POST /skills/imports brings skills into the Space specified by space_id. If you upload a skill package as multipart form data in the file field, Svanja prepares a preview that you review and finish in the app. To copy a skill from another of your Spaces instead, send source_space_id and the skill’s path. You will get a preview of the copy back; send the same request with "confirm": true to complete it. To do this from a terminal, see svanja skill.