Skip to main content

render_skill_template

Function render_skill_template 

Source
pub fn render_skill_template(name: &str, description: &str) -> String
Expand description

Render a starter SKILL.md body as a string.

The returned text is a complete, parse-valid SKILL.md file with the supplied name and description filled into the frontmatter and the rest of the optional extension fields commented out. The body follows the anatomy documented in docs/guides/writing-effective-skills.md — Overview, Quick Reference table, a placeholder major-topic section, Common Pitfalls, and a “When wrong” section — all with <TODO>-style placeholders the operator fills in.

Use write_skill_template for the on-disk version.