/** * Render a dossier for installation as an agent skill. * * The problem: dossiers are stored with `---dossier` (JSON) frontmatter so the block * can carry a checksum and signature. But agent runtimes parse standard `---` YAML. * opencode skips such files outright; Claude Code fares slightly better but does not * extract `name`/`description`, so an installed dossier surfaces with the literal * string "---dossier" as its description and cannot be matched from a natural-language * request. Every authored trigger phrase is inert. * * The fix: re-serialize the same frontmatter as YAML, with `name` and `description` * first so the runtime reads them. * * Why this does not break verification: a v2 signature covers * `canonicalizeFrontmatter(parsedFrontmatter) + body` — the parsed object, not the * bytes of the frontmatter block. Re-serializing JSON to YAML leaves the parsed object * (and therefore the signed payload) identical, so checksum and signature both still * verify. Legacy body-only signatures are likewise unaffected, since the body is copied * verbatim. * * A dossier that is already YAML-fronted is returned unchanged. */ /** * Convert a dossier to `---` YAML frontmatter suitable for agent skill discovery. * Returns the input unchanged when it is already YAML-fronted or cannot be parsed. */ export declare function toSkillFrontmatter(rawContent: string, source?: string): string; //# sourceMappingURL=skill-frontmatter.d.ts.map