/** * Skill catalog: which SpecWeave skills a project gets. * * `skills/catalog.json` (copied to `plugins/specweave/skills-catalog.json` by * scripts/build/generate-skills.mjs) lists the core skills every project gets, * the optional ones, and the retired ones `update` removes. An optional skill is * on when `.specweave/config.json` lists it under `skills.enabled`, or when its * detect rule matches and it is not under `skills.disabled`. * * @module core/skills/catalog */ export type DetectRule = 'glossary-file' | 'tracker' | 'hub' | 'jev'; export interface OptionalSkill { name: string; summary: string; detect?: DetectRule; } export interface SkillCatalog { core: string[]; optional: OptionalSkill[]; retired: string[]; } export interface SkillsConfig { /** Optional skills to install even when nothing detects them. */ enabled?: string[]; /** Optional skills to leave out even when detected. */ disabled?: string[]; } export type SkillState = { name: string; tier: 'core'; on: true; reason: 'core'; } | { name: string; tier: 'optional'; on: boolean; reason: 'enabled' | 'disabled' | 'detected' | 'off'; detail?: string; summary: string; }; export declare function readSkillCatalog(pluginRoot: string): SkillCatalog; /** Why a detect rule matches in this project, or undefined when it does not. */ export declare function detectSkill(rule: DetectRule | undefined, projectRoot: string, config: Record | undefined): string | undefined; /** Every catalog skill with its state in this project, core first. */ export declare function resolveSkills(projectRoot: string, catalog: SkillCatalog, config?: Record | undefined): SkillState[]; /** Names in a config list that are not optional skills (typos, core skills). */ export declare function unknownSkillNames(list: unknown, catalog: SkillCatalog): string[]; //# sourceMappingURL=catalog.d.ts.map