---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/skills/functions/parseSkillMd.md'
---

# Function: parseSkillMd()

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

Defined in: [src/batteries/skills/manifest.ts:10](https://github.com/NHTIO/ADK/blob/v1.20260911.0/src/src/batteries/skills/manifest.ts#L10)

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](https://github.com/NHTIO/ADK/blob/v1.20260911.0/src/src/batteries/skills/manifest.ts#L12) |
| `frontmatter` | [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)<`string`, `unknown`> | [src/batteries/skills/manifest.ts:12](https://github.com/NHTIO/ADK/blob/v1.20260911.0/src/src/batteries/skills/manifest.ts#L12) |
