import { BoilerplateSkill } from '../scaffolder/types'; import { SkillInstallOptions, SkillInstallResult } from './types'; /** * Installs skills from git repositories using shallow clones. * * Much faster than `npx skills add` because it: * - Clones with `--depth 1` (shallow) * - Caches source repos (subsequent installs are instant) * - Copies skill directories directly (no npm download) * * @example * ```typescript * const installer = new SkillInstaller({ toolName: 'pgpm' }); * const result = installer.install( * [{ source: 'constructive-io/constructive', skills: ['pgpm'] }], * '/path/to/workspace' * ); * ``` */ export declare class SkillInstaller { private gitCloner; private cacheManager; constructor(options?: SkillInstallOptions); /** * Install skills from their source repositories into a target directory. * * For each skill entry, clones the source repo (shallow, cached) and * copies `.agents/skills//` into `/.agents/skills//`. * * Non-fatal: failures are collected and returned, never thrown. */ install(skills: BoilerplateSkill[], targetDir: string): SkillInstallResult; /** * Clone (or retrieve from cache) a skill source repository. */ private ensureRepo; }