Publish skill
skill_publishPublish a new version of a skill as a change set: files add or replace paths ({ path, text } for text, { path, base64 } for binary), removals drop paths, and every other file of the current version carries over. SKILL.md needs YAML frontmatter with name (equal to name) and description. Pass expectedVersion: 0 to create a new skill (CONFLICT if the name is taken), or the version you read to update it without overwriting someone else's change. With team, the skill belongs to that team; without, to your operator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters. | |
| name | Yes | The skill name: lowercase letters, digits and single hyphens, as SKILL.md's frontmatter names it. | |
| team | No | The team (slug or id) whose skill it is. Without it, a name means one of your personal skills. | |
| files | Yes | Files added or replaced: { path, text } for text, { path, base64 } for binary; at most 512. | |
| removals | No | Paths of the current version to drop; at most 512. | |
| expectedVersion | No | The version you read (0: the skill must not exist yet); a publish since then is CONFLICT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skill | Yes | ||
| created | Yes | ||
| version | Yes |