Skip to main content

skills_new

Function skills_new 

Source
pub fn skills_new(
    dest: &Path,
    name: &str,
    description: &str,
) -> Result<PathBuf, String>
Expand description

Scaffold a starter SKILL.md at dest and return the resolved path written. Thin wrapper around write_skill_template that bubbles errors as String for symmetric handling alongside skills_list / skills_show.

description is required — Anthropic’s published guidance is that skills with weak descriptions undertrigger badly, so the template makes the operator commit to one rather than leaving a <TODO> placeholder in the discovery-critical field.