await api.agents.skills.save({
name: "release-notes",
description: "Write release notes from a range of commits, in our house format.",
content: "Group changes under Added, Changed, Fixed.\nOne line per change, past tense…",
});api.agents.skills.save(
name="release-notes",
description="Write release notes from a range of commits, in our house format.",
content="Group changes under Added, Changed, Fixed.\nOne line per change, past tense…",
)namestringrequiredLowercase letters, digits and dashes, 64 characters at most.
descriptionstringrequiredOne line. This is what decides whether the agent ever loads it.
contentstringrequiredThe instructions, up to 100 000 characters.
The agent matches a request against it. « Release notes » matches almost nothing; the sentence above matches the request that needs it. A skill nobody ever loads usually has a description that restates its title.
It never touches the disk
The disk is a read-only source. A developer edits those files themselves — that is the point of the format — and nobody wants an API call rewriting them from under them.
Saving a name that exists on a disk
Allowed, and from then on the account's version is the one that applies, everywhere. Which is the intended way to promote a local skill to a shared one.
The same name replaces
There is no separate update. Read it, change it, save it back.