create_skill_draft
Create an editable skill draft for review before canonical publication or native runtime writes, with validation metadata and paths returned; validate before publishing.
Instructions
Create an editable skill draft without canonical publication or native runtime writes. Use when content needs review; use create_skill for direct canonical creation. Project scope requires initialization. Both draft paths are relative to the server workspace: project uses .umem/drafts/skills//SKILL.md; global uses drafts/skills//SKILL.md and registers the draft in user memory. Global scope does not move the physical draft into user memory; draft-file audit/snapshot writes also use the project writer. Writes the draft file and registration with snapshot/audit references. An existing unregistered file at the same draft path can be overwritten without confirmation; only registered slug collisions are rejected. Inspect the draft destination first. When generating Markdown, omitted/empty triggers default to the skill name. Returns draft metadata, paths, validation information, and warnings. Validate with validate_skill before publish_skill.
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 | Draft directory slug. Omitted derives from the name. Registered slug collisions are rejected; an existing unregistered draft file can be overwritten. | |
| scope | No | Registration scope, project by default. Draft files stay relative to the server workspace: project writes .umem/drafts/skills/<slug>/SKILL.md; global writes drafts/skills/<slug>/SKILL.md while registering in user memory. Global does not place the draft file in the user memory directory. | project |
| triggers | No | Trigger phrases for generated draft content. Without raw_markdown, omitted/empty triggers render the skill name as the default trigger; supplied raw Markdown takes precedence. | |
| 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 | |||