update_canonical_skill
Validate and replace Markdown content for an existing canonical skill, writing it through the safe pipeline and optionally syncing native targets. Use for canonical edits only.
Instructions
Validate and replace Markdown content for an existing canonical skill. Use for canonical edits; use update_skill for latent metadata or rename_skill for a slug change. Requires initialized project memory and an active canonical selector. Writes canonical content through the safe pipeline; sync=true also updates native targets subject to drift_decision. Returns skill metadata, changed paths, warnings, and write references. Repeated calls can create audit/snapshot records even when content matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | Synchronize native runtime copies after the canonical write when true. Defaults to false, which only writes canonical content. | |
| raw_markdown | Yes | Complete replacement canonical SKILL.md Markdown including valid frontmatter; required and validated before writing. | |
| drift_decision | No | keep preserves changed native copies; overwrite permits replacing managed divergent copies. Defaults to keep. | keep |
| skill_id_or_name | Yes | Active canonical skill ID, slug, or unambiguous display name. Use list_skills to resolve it; not a latent candidate ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||