Skip to main content

Function: skillFromMarkdown()

skillFromMarkdown(markdown, options?): Skill

Defined in: packages/core/src/skill.ts:143

Build a Skill from Anthropic-format SKILL.md content: YAML-ish frontmatter (name, description) plus a markdown body (the instructions). The bridge for importing ecosystem skills — without core taking on a filesystem or bash dependency. On Node, read the file yourself and pass the string: skillFromMarkdown(await readFile(path, 'utf8'), { tools }).

Parameters

markdown

string

options?

SkillFromMarkdownOptions = {}

Returns

Skill