Skip to main content

Module limits

Module limits 

Source
Expand description

Agent Skills specification limits.

Two validators enforce the same spec: SkillManifest::validate fails fast on the first violation, while crate::enhanced_validator::ComprehensiveSkillValidator collects every violation with a remediation hint. They differ in reporting only, so the limits themselves live here once — otherwise changing a number in one validator would silently desync the other.

Each constant is a character or entry count from the spec, not a byte size.

§Examples

use vtcode_skills::limits::MAX_SKILL_NAME_CHARS;

assert_eq!(MAX_SKILL_NAME_CHARS, 64);

Constants§

MAX_ALLOWED_TOOLS
Maximum number of entries in a skill’s allowed-tools list.
MAX_COMPATIBILITY_CHARS
Maximum characters in a skill compatibility string.
MAX_LICENSE_CHARS
Maximum characters in a skill license string.
MAX_SKILL_DESCRIPTION_CHARS
Maximum characters in a skill description.
MAX_SKILL_NAME_CHARS
Maximum characters in a skill name (lowercase letters, digits, hyphens).

Functions§

allowed_tool_count
Count the space-delimited tools in an allowed-tools value.