Skip to content

Documentation / @agentick/core / parseSkill

Function: parseSkill()

parseSkill<TInput>(source, opts?): SkillDef<TInput>

Defined in: core/src/skill/loader.ts:106

Parse a skill from an in-memory markdown string. Useful for embedded skills, tests, or skills served from databases / network sources.

Type Parameters

TInput

TInput = unknown

Parameters

source

string

The full markdown source (frontmatter + body).

opts?

LoadSkillOptions<TInput> & object = {}

Options including resolved skill dir, fallback name, and strict mode (folder-loaded skills get strict open-spec validation; flat-mode and pure parseSkill calls are lenient).

Returns

SkillDef<TInput>

Released under the ISC License.