create_skill
Creates a canonical Agent Skill from a name, purpose, triggers, and optional Markdown, writing registration and metadata for reuse. Use for explicit new skill requests; edit existing skills separately.
Instructions
Create a new canonical Agent Skill from a name, purpose, triggers, and optional Markdown. Use for an explicit new skill request; use import_skill for an external/native directory, adopt_skill for existing canonical content, or create_skill_draft for an editable draft. Project scope requires initialization. Writes canonical content and registration; sync=false avoids native copies, true also synchronizes selected targets. Returns skill metadata, paths, warnings, and write references. Repeated calls may conflict with an existing slug; use update_canonical_skill to edit it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nonempty human-readable skill name. Used for display and candidate matching; not a file path. | |
| slug | No | Canonical directory slug. Omitted derives from the name where supported; use a portable skill slug rather than a path. | |
| sync | No | Synchronize native runtime copies after the canonical write when true. Defaults to false, which only writes canonical content. | |
| scope | No | Storage scope: project uses this workspace; global uses user memory. Defaults to project. | project |
| targets | No | Native runtime registry IDs for synchronization. Omitted uses the workflow default targets; an empty list requests no explicit targets. | |
| category | No | user-facing for reusable team content; operational for internal workflows. Defaults to user-facing and participates in visibility policy. | user-facing |
| triggers | No | Phrases or situations that should select the skill. Without raw_markdown, omitted/empty triggers render the skill name as the file trigger; supplied Markdown provides its frontmatter triggers. | |
| visibility | No | Project content visibility: shared for repository content, private for operational storage. Omitted follows layout/category policy; global content cannot be shared. | |
| description | Yes | Nonempty description of the reusable workflow purpose; distinguish it from neighboring skills. | |
| raw_markdown | No | Complete SKILL.md Markdown including valid frontmatter when supplied; validated before content is written. Omitted lets creation build content from metadata. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||