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
| Parameter | Type |
|---|---|
text | string |
Returns
ts
{
body: string;
frontmatter: Record<string, unknown>;
}| Name | Type | Defined in |
|---|---|---|
body | string | src/batteries/skills/manifest.ts:12 |
frontmatter | Record<string, unknown> | src/batteries/skills/manifest.ts:12 |