Skills
Update Skill
Change a skill’s name, description, instructions or files.
PATCH
Changes a skill. Send only what you want to change.
instructionsreplaces the instructions whole.skill_mdreplaces the instructions with its body, and thenameanddescriptionwith those in its front matter. Anameordescriptionsent beside it wins.filesadds files. A file at a path the skill already has replaces it.remove_filesdetaches the files at these paths. The files themselves are not deleted.
@ref[file_upload:<file_id>] tokens in the instructions follow the files: a replaced file’s tokens name the new file, and a removed file’s tokens are dropped. Paths follow the rules in Create Skill.
You need edit access to the skill. Public and community skills cannot be changed.
Authentication
Requires an API key, or an OAuth token withskills:write. Sending files also needs files:read.
Path parameters
string
required
The skill to change.
Body parameters
string
The new name, up to 200 characters.
string | null
The new description, up to 2,000 characters. Send
null to clear it.string
New instructions, up to 100,000 characters. Send this or
skill_md, not both.string
A whole
SKILL.md, up to 100,000 characters. Send this or instructions, not both.object[]
Up to 100 files to add or replace, each as
{"path": "...", "file_id": "..."}.string[]
Up to 100 paths of bundled files to detach. Each must name a file the skill has.
Response
Returns200 with the updated skill, as Get Skill returns it.