/** * Shared emitter for the Claude/ChatGPT "skills//" folder shape. * * ChatGPT Skills use the SAME folder layout as Claude (SKILL.md + references/ + scripts/), so ~90% * of the two adapters is this one function. The only divergence is the extra agents/openai.yaml * sidecar ChatGPT adds, which lives in chatgpt-skills.ts. */ import type { SkillIR } from './ir.js'; /** Options controlling how a skill folder is serialized. */ export interface SkillFolderOptions { /** * Inject the Cowork cloud / device resource-resolution block when the skill bundles files. * Claude / Cowork target ONLY — the block references PLUGIN_ROOT and the Windows-MCP / claude.exe * device bridge, which are meaningless on other platforms (e.g. ChatGPT Skills), so those adapters * leave this off. See cl-plugin-structure "Cloud / device resource resolution" (standard v0.7.5+). */ platformResolution?: boolean; } /** Serialize the SKILL.md frontmatter + instructions body from the IR. */ export declare function renderSkillMarkdown(ir: SkillIR, opts?: SkillFolderOptions): string; /** * Emit `skills//SKILL.md` plus every knowledge file (references/, scripts/) under the same * skill root. Returns the outDir-relative paths written. */ export declare function emitSkillFolder(ir: SkillIR, outDir: string, opts?: SkillFolderOptions): string[]; //# sourceMappingURL=skill-folder.d.ts.map