Skills library

save()

api.agents.skills.save({ name, description, content }) → Promise<Skill>

Creates or replaces a skill on the account. It never writes to the disk — a developer's files stay theirs.

always the accountsame name replacesreturns the saved item
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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…",
)
namestringrequired

Lowercase letters, digits and dashes, 64 characters at most.

descriptionstringrequired

One line. This is what decides whether the agent ever loads it.

contentstringrequired

The instructions, up to 100 000 characters.

The description is the trigger, not a label

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.