/** * Skill import — read standard SKILL.md skill directories and push them to the pod. * * Follows the Agent Skills open standard (agentskills.io): a skill is a DIRECTORY * with a `SKILL.md` at its root (YAML frontmatter + markdown body) and optional * nested files/subdirs for reference docs, examples, templates, and code. Every * non-SKILL.md file becomes a linked document (the agent reads them on demand via * get_document). This is the same format Claude Code, Codex, Gemini CLI, Copilot * and others use. * * The pod stores them via POST /agent-skills/import: the SKILL.md body becomes * the instruction skill, every other file becomes a linked document. */ import { type HubConfig } from "./hub-client.js"; export interface ParsedSkill { slug: string; name: string; description: string; body: string; /** auto_load=true → always-loaded core DNA; false → on-demand (catalog + load_skill). */ autoLoad: boolean; documents: Array<{ title: string; content: string; type: string; language?: string; }>; } /** Parse a single SKILL.md skill directory into an import payload. */ export declare function parseSkillDir(dir: string): ParsedSkill | null; /** Find every skill directory (one containing SKILL.md) under a root, one level deep. */ export declare function discoverSkillDirs(root: string): string[]; export interface ImportResult { slug: string; status: "imported" | "exists" | "error"; docs: number; error?: string; } /** Import a parsed skill into the pod via POST /agent-skills/import. */ export declare function importSkill(parsed: ParsedSkill, userId: string, cfg: HubConfig): Promise;