create_skill
Create a skill, either by authoring a new one (pass name + prompt) or by uploading a SKILL.md you already have (pass its full text as skill_md — its YAML frontmatter is parsed for name/description/prompt/required tools/model). The skill can then be attached to a routine (via create_routine's skill_id) so Comma runs it on a schedule. For .zip-bundle or GitHub-sourced skills, use the REST endpoint POST /api/v1/skills.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Skill name. Required unless skill_md is provided. | |
| model | No | Optional model override for the skill run. | |
| prompt | No | The instructions/recipe the skill runs (≤ 100k chars). Required unless skill_md is provided. | |
| skill_md | No | Full text of an existing SKILL.md (with YAML frontmatter). Use this to upload a skill you already have. `name`/`description`/etc. below override the parsed values. | |
| description | No | Optional one-line description. | |
| required_tools | No | Optional list of tools the skill needs, e.g. [{ kind: 'connector' }]. |