/** * Skill-conformance audit (Slice #12) — checks every peaks-* SKILL.md * against the 5 standards from the L1+L2+L3 redesign §5.4 Slice #12: * * 1. task-level frontmatter (all 12 skills must declare one) * 2. CLI-back 注解 coverage (each skill body must document which * `peaks ` commands it composes; the absence is a SKILL.md * anti-pattern — it means the LLM has to discover the CLI * primitives by accident) * 3. loadStrategy on-demand 标注 (skills should declare when they * load — `eager` for always-loaded, `on-demand` for invoked) * 4. 800-line cap (Karpathy limit per spec §2.3) * 5. outputStyle: peaks-concise-v1 frontmatter (peak-cli display * style for the skill's user-visible output) * * Plus 1 derived check: * 6. CLI primitives declared in references/audit/ (Skill must * surface every peaks it composes in the references/ subdir; * this is the "CLI-back 注解 100% 覆盖" check) */ export type LoadStrategy = 'eager' | 'on-demand'; export type ConformanceLevel = 'pass' | 'warn' | 'fail'; export interface ConformanceCheck { readonly id: string; readonly skill: string; readonly level: ConformanceLevel; readonly message: string; } export interface ConformanceReport { readonly checked: number; readonly passed: number; readonly warned: number; readonly failed: number; readonly checks: readonly ConformanceCheck[]; readonly summary: string; } export interface SkillConformanceInput { readonly projectRoot: string; } export declare function auditSkillConformance(input: SkillConformanceInput): ConformanceReport;