/** * Skill validation logic. * * Python parity with praisonaiagents/skills/validator.py. Every rule and * error message mirrors the Python implementation so the two runtimes * accept and reject the same SKILL.md files. */ /** Python: validator.py:10 */ export declare const MAX_SKILL_NAME_LENGTH = 64; /** Python: validator.py:11 */ export declare const MAX_DESCRIPTION_LENGTH = 1024; /** Python: validator.py:12 */ export declare const MAX_COMPATIBILITY_LENGTH = 500; /** * Frontmatter fields accepted in strict mode. * * Python: validator.py:14 `ALLOWED_FIELDS`. */ export declare const ALLOWED_FIELDS: ReadonlySet; /** * Validate parsed skill metadata. * * This is the core validation function that works on already-parsed * metadata, avoiding duplicate file I/O when called from the parser. * * Python: praisonaiagents/skills/validator.py:139 * `validate_metadata(metadata, skill_dir=None, strict=False)`. * * @param metadata Parsed YAML frontmatter mapping * @param skillDir Optional path to the skill directory (for the * name/directory match check) * @param strict If true, unknown frontmatter fields produce errors * @returns List of validation error messages. Empty list means valid. */ export declare function validateMetadata(metadata: Record, skillDir?: string, strict?: boolean): string[]; /** * Validate a skill directory. * * Python: praisonaiagents/skills/validator.py:171 * `validate(skill_dir, strict=False)`. Exported as `validateSkill` (and * aliased as `validate`) because `validate` alone is ambiguous in TS. * * @param skillDir Path to the skill directory * @param strict If true, unknown frontmatter fields produce errors * @returns List of validation error messages. Empty list means valid. */ export declare function validateSkill(skillDir: string, strict?: boolean): string[]; /** Alias matching the Python name `validate`. */ export { validateSkill as validate };