//#region src/agent/skills/parse-skill-metadata.ts
/**
* Maps SKILL.md YAML frontmatter to {@link SkillMetadata} (Hermes / xopc shapes).
*/
function parseSkillMetadata(frontmatter) {
	const xopcMeta = frontmatter.metadata?.xopc;
	const metadata = {
		name: frontmatter.name || "",
		description: frontmatter.description || "",
		emoji: xopcMeta?.emoji || frontmatter.emoji || void 0,
		homepage: frontmatter.homepage || void 0,
		os: xopcMeta?.os || frontmatter.os || void 0,
		requires: xopcMeta?.requires || frontmatter.requires || void 0,
		install: xopcMeta?.install || frontmatter.install || void 0
	};
	if (xopcMeta) metadata.xopc = {
		emoji: xopcMeta.emoji,
		requires: xopcMeta.requires,
		install: xopcMeta.install,
		os: xopcMeta.os
	};
	return metadata;
}
//#endregion
export { parseSkillMetadata };

//# sourceMappingURL=parse-skill-metadata.js.map