/v1/tools/save_skillfreeSave a skill
Saves a skill to this workspace, free, so every AI connected to it can follow it, and the people in it read and download it on Skills. A skill is a folder in the open Agent Skills format: a SKILL.md whose frontmatter, between --- lines, gives its name (lowercase words joined by hyphens) and a description of what it does and when to use it, then the instructions; and any files it points to, by their paths inside the folder (references/checks.md). Each file is given as words, or as its bytes in base64; at most 100 files and 1 MB together. A skill of the same name is saved over; a name one of Scrub's own skills has is refused. A workspace keeps at most 50.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
files | array | Required | Every file of the skill, SKILL.md among them |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/save_skill \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"files":[{"path":"…"}]}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.