Skip to content
1 min read · 97 words

Function: parseSkillMd()

ts
function parseSkillMd(text: string): {
  body: string;
  frontmatter: Record<string, unknown>;
};

Defined in: src/batteries/skills/manifest.ts:10

Parse an agentskills.io-shaped SKILL.md for source authors. The manager's load path never calls this helper: sources own descriptor and body authority. Malformed frontmatter degrades to an empty object when it is not a delimited YAML block; malformed YAML is a manifest error.

Parameters

ParameterType
textstring

Returns

ts
{
  body: string;
  frontmatter: Record<string, unknown>;
}
NameTypeDefined in
bodystringsrc/batteries/skills/manifest.ts:12
frontmatterRecord<string, unknown>src/batteries/skills/manifest.ts:12