/** * Well-known foreign coding-agent skill directories. All follow the * agentskills.io `SKILL.md` format, so the same loader reads them — this just * tells it WHERE each agent keeps them. * * Claude is handled separately by the loader (`claude-project` / `claude-user` * sources); this list covers the OTHER agents. Every tool here stores skills * under `~/./skills` (+ `/./skills`). * * Dirs that don't exist are skipped gracefully, so listing many is cheap. * * NOTE: Cursor previously used a non-standard `skills-cursor` subdir. As of the * 2026-07 alignment with the broader skills.sh / antfu-skills-cli / vercel-labs * ecosystem, Cursor uses the standard `skills` subdir like everyone else. * (`skills-cursor` was WrongStack-only and meant real Cursor skills were never * discovered — see docs/skills.md.) */ export interface ForeignSkillTool { /** Tool id — also the directory name segment (`~/./…`). */ id: string; /** Skills subdirectory name under `~/./`. */ subdir: string; } export declare const FOREIGN_SKILL_TOOLS: readonly ForeignSkillTool[]; /** Result of resolving a `foreignSources` config option. */ export interface ResolvedForeignTools { /** Tool ids that will be scanned (subset of {@link FOREIGN_SKILL_TOOLS}). */ ids: string[]; /** Tool ids the user asked for that aren't known — likely typos (e.g. `corser`). */ unknownIds: string[]; } /** * Resolve the `config.skills.foreignSources` option into the list of tool ids * to scan. Kept for backward compatibility (returns only `ids`). * - `false` → none * - `string[]` → only those ids (unknown ids silently dropped — see * {@link resolveForeignToolIdsWithWarnings} to surface them) * - `true` / `undefined` → all well-known tools */ export declare function resolveForeignToolIds(opt: boolean | string[] | undefined): string[]; /** * Like {@link resolveForeignToolIds}, but also returns tool ids the caller asked * for that don't match any known agent. Callers that want to warn the user * about a likely typo (e.g. `foreignSources: ["corser"]`) should prefer this. * * - `false` → none * - `string[]` → known ids included, unknown ones returned in `unknownIds` * - `true` / `undefined` → all well-known tools (no unknowns possible) */ export declare function resolveForeignToolIdsWithWarnings(opt: boolean | string[] | undefined): ResolvedForeignTools; /** * Security tier bucket for a registry skill's `securityScore` (0–100). * Mirrors the ags (agentskill-sh/ags) thresholds: skills below 30 need * explicit confirmation before install. */ export type SkillSecurityTier = 'low' | 'medium' | 'high'; /** Classify a 0–100 security score into a tier. 0/undefined → unknown → `low`. */ export declare function securityScoreToTier(score: number | undefined | null): SkillSecurityTier; //# sourceMappingURL=foreign-sources.d.ts.map