UNPKG

@tanstack/ai-skills

Version:

Portable Agent Skills (SKILL.md) as a first-class chat() middleware for TanStack AI.

15 lines (14 loc) • 510 B
import { SkillMetadata } from './types.js'; export type SkillTarget = 'portable' | 'anthropic' | 'openai'; export interface SkillValidationIssue { target: SkillTarget; message: string; } export interface SkillValidationResult { ok: boolean; issues: Array<SkillValidationIssue>; } /** Lint a skill against the given delivery targets (default `['portable']`). */ export declare function validateSkill(skill: SkillMetadata, options?: { targets?: Array<SkillTarget>; }): SkillValidationResult;