Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/skills / migration / migrateFrontmatter

Function: migrateFrontmatter()

ts
function migrateFrontmatter(skillMd, options?): MigrationResult;

Defined in: packages/skills/src/migration/index.ts:58

Migrate the bundled deprecate-graphorin-prefix mappings on a single SKILL.md. The function is idempotent: re-running it on an already-migrated SKILL.md returns changed: false and an empty rewrites array.

Parameters

ParameterType
skillMdstring
optionsMigrateFrontmatterOptions

Returns

MigrationResult

Stable