Skip to main content

Module skills

Module skills 

Source
Expand description

§Agent Skills Integration

Enhanced skills system for VT Code with progressive loading, filesystem discovery, and strict SKILL.md validation.

The bulk of the skill types, validation, bundling, and template logic lives in the vtcode-skills crate. This module re-exports everything from there and keeps the integration-point files that depend on crate::core, crate::llm, or crate::tools as local sub-modules.

Re-exports§

pub use cli_bridge::CliToolBridge;
pub use cli_bridge::CliToolConfig;
pub use cli_bridge::CliToolResult;
pub use cli_bridge::discover_cli_tools;
pub use discovery::DiscoveryConfig;
pub use discovery::DiscoveryResult;
pub use discovery::DiscoveryStats;
pub use discovery::ProgressiveSkillLoader;
pub use discovery::SkillDiscovery;
pub use executor::execute_skill_with_sub_llm;
pub use executor::filter_tools_for_skill;
pub use loader::EnhancedSkill;
pub use loader::EnhancedSkillLoader;
pub use loader::SkillLoaderConfig;
pub use loader::SkillRoot;
pub use loader::detect_skill_mentions;
pub use loader::discover_skill_metadata_lightweight;
pub use loader::load_skill_resources;
pub use loader::load_skills;
pub use manager::SkillsManager;
pub use streaming::StreamEvent;
pub use streaming::StreamingConfig;
pub use streaming::StreamingExecution;
pub use streaming::StreamingSkillExecutor;
pub use validation::SkillValidator;
pub use validation::ValidationConfig;
pub use validation::ValidationReport;
pub use validation::ValidationStatus;

Modules§

authoring
Skill Authoring Tool for VT Code
auto_verification
Auto Skill Verification
bundle
Skill bundle import/export
cli_bridge
CLI Tool Bridge for External Tool Integration
command_skills
container
Skill container for multi-skill execution
container_validation
Container Skills Validation
context_manager
Progressive Context Management for Skills
discovery
Dynamic Skill Discovery System
document_processor
Document Processing for Skills using Vision Models
enhanced_harness
Enhanced Skill Harness
enhanced_validator
Enhanced skill validator with comprehensive error collection
executor
Skill execution as Tool trait implementation
file_references
File reference validation for Agent Skills
injection
instructions
loader
locations
Skill Location Management
manager
manifest
SKILL.md manifest parsing
model
native_plugin
Native Plugin System for VT Code Skills
prompt_integration
Skills prompt integration
render
skill_file_tracker
Skill File Tracker
streaming
Skill Execution Streaming
system
templates
Skill Template System
trust
Prompt-boundary helpers for skill-provided resources.
types
Agent Skills type definitions
validation
Skill Validation System
validation_report
Comprehensive validation report for Agent Skills
versioning
Skill version resolution

Structs§

AuthoringValidationReport
Validation report for skills
BuiltInCommandSkill
CommandSkillSpec
ComprehensiveSkillValidator
Enhanced validator that collects all validation issues
ContainerSkillsValidator
Detects container skills requirements in skill instructions
ContainerValidationResult
Container skills validation result
ContextConfig
Configuration for context management
ContextManager
Progressive context manager
ContextStats
Context management statistics
DiscoveredSkill
Discovered skill with location information
DocumentMetadata
Document metadata
DocumentProcessor
Main document processor
DocumentProcessorConfig
Document processing configuration
FileReferenceValidator
Validates that file references in skill instructions follow the Agent Skills spec
ImportedSkillInfo
Result of importing a skill bundle
IncompatibleSkillInfo
Information about incompatible skills
LocationDiscoveryStats
Discovery statistics
NativePlugin
A loaded native plugin
PersistentContextManager
Context manager with persistence support
PluginContext
Plugin execution context passed to plugin functions
PluginLoader
Plugin loader responsible for discovering and loading native plugins.
PluginMetadata
Plugin metadata structure
PluginResult
Plugin execution result
ProcessedDocument
Processed document result
ResolvedSkillRef
A fully resolved skill reference with concrete version
Skill
Complete skill definition with progressive disclosure levels
SkillAuthor
Skill authoring operations
SkillContainer
Container for managing multiple skills in a request
SkillErrorInfo
SkillInjections
SkillInstructions
SkillLoadOutcome
SkillLocation
Skill location configuration
SkillLocations
Skill locations manager
SkillLockfile
Lockfile for reproducible skill version resolution
SkillManifest
Skill manifest metadata from SKILL.md frontmatter
SkillMetadata
SkillNetworkPolicy
Network access policy for a skill
SkillRegistryEntry
Skill registry entry (loaded skill + metadata)
SkillResource
A skill resource (Level 3: on-demand loading)
SkillSpec
Specification for a single skill in a container
SkillStoreIndex
Skill store index for tracking versions
SkillTemplate
Skill template configuration
SkillTemplateBuilder
Skill template builder for programmatic template creation
SkillValidationReport
Comprehensive skill validation report
SkillVersionIndex
SkillYaml
YAML frontmatter structure for SKILL.md
TemplateEngine
Template engine for skill generation
TemplateVariable
Template variable for customization
ValidationIssue
Single validation issue

Enums§

BuiltInCommandExecutor
CommandSkillBackend
ContainerSkillSource
How a skill is referenced in a container
ContainerSkillsRequirement
Container skills requirement detection
ContextLevel
Skill context loading levels
DocumentType
Document type classification
SkillContext
Progressive disclosure context for skill loading
SkillLocationType
Skill location types with precedence ordering
SkillScope
Skill scope indicating where the skill is defined
SkillSource
Where a resolved skill comes from
SkillType
Skill source type (Anthropic-managed or custom)
SkillVersion
Skill version specification
SkillsRenderMode
Rendering mode for skills section
TemplateType
Skill template types
ValidationLevel
Severity level for validation issues

Constants§

MAX_DISCOVERY_DEPTH
Maximum recursion depth when walking a skill location.
MAX_DISCOVERY_DIRS
Maximum directories visited per discovery walk.
PLUGIN_ABI_VERSION
Current plugin ABI version Increment this when breaking changes are made to the plugin interface
SKILL_INSTRUCTIONS_PREFIX
Prefix for skill instructions (used to detect skill instruction messages).
SKIPPED_DISCOVERY_DIRS
Directory names never descended into during skill discovery.

Traits§

NativePluginTrait
Native plugin trait for type-erased plugin operations

Functions§

build_skill_injections
Builds injections for the specified skills.
built_in_command_skill
built_in_command_skill_contexts
command_skill_specs
discovery_dir_skipped
Whether a directory name is skipped during skill discovery.
export_skill_bundle
Export a skill directory to a zip bundle (bytes)
find_command_skill_by_skill_name
find_command_skill_by_slash_name
generate_skill_template
Generate a skill template with YAML frontmatter
generate_skills_prompt
Generate skills section for system prompt (full mode - backward compatible)
generate_skills_prompt_with_mode
Generate skills section with specified rendering mode
import_inline_bundle
Import a skill from base64-encoded zip (inline bundle)
import_skill_bundle
Import a skill bundle (zip bytes) into the skill store
load_skill_index
Load the skill store index
parse_skill_content
Parse SKILL.md content string
parse_skill_file
Parse SKILL.md file and extract manifest + instructions
render_skills_lean
Render skills section for system prompt (Codex-style lean format)
render_skills_section
resolve_default_version
Resolve version using default_version semantics (no version specified by user)
resolve_version
Resolve a skill version based on manifest, lockfile, and request
validate_plugin_structure
Validate a plugin directory structure

Type Aliases§

SkillFrontmatter
YAML frontmatter for SKILL.md authoring validation.