/** * Resolves the location of the vendored skills directory. * * The orchestrated skills (master-plan, tdd, grill-with-docs, ...) are vendored * INTO the diablo package under `skills/`, so they ship with the npm package and * evolve lockstep with the plan parser. Their path must therefore be derived * from diablo's OWN module location — never the target project's cwd, since * `diablo run` executes inside an arbitrary project directory. * * Both layouts must work from one rule: * - dev: module at /src/cli/main.ts, skills at /skills * - built: module at /dist/main.js, skills at /skills * * Walking up from the module's directory until a `skills/` dir is found covers * both (and any nesting). Pure: the directory predicate is injected, so the * walk-up rule is unit-tested without touching the filesystem. */ /** Returns true if the given absolute path is an existing directory. */ export type DirExists = (path: string) => boolean; /** * Walks up from `startDir`, returning the first ancestor (including startDir * itself) that contains a `skills/` directory. Throws if none is found. */ export declare function resolveSkillsDir(startDir: string, dirExists: DirExists): string; /** Builds the SKILL.md path for a named skill under a skills directory. */ export declare function skillFile(skillsDir: string, name: string): string;