publish_skill
Validate and publish an existing skill draft to canonical storage, optionally syncing native runtime targets; use after draft validation to finalize a reusable skill.
Instructions
Validate and publish an existing draft into canonical skill storage. Use after create_skill_draft and validate_skill; use update_canonical_skill to edit an already published skill. Requires initialized project memory. Writes canonical content and registration; sync=false leaves native targets untouched, true also synchronizes selected targets. Returns skill metadata, published paths, warnings, and write references. Publication can conflict with an existing slug; inspect before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| 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 |
| visibility | No | Project content visibility: shared for repository content, private for operational storage. Omitted follows layout/category policy; global content cannot be shared. | |
| draft_or_path | Yes | Existing draft slug or local draft file/directory path to publish; canonical destinations are validated for conflicts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||