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§
- Authoring
Validation Report - Validation report for skills
- Built
InCommand Skill - Command
Skill Spec - Comprehensive
Skill Validator - Enhanced validator that collects all validation issues
- Container
Skills Validator - Detects container skills requirements in skill instructions
- Container
Validation Result - Container skills validation result
- Context
Config - Configuration for context management
- Context
Manager - Progressive context manager
- Context
Stats - Context management statistics
- Discovered
Skill - Discovered skill with location information
- Document
Metadata - Document metadata
- Document
Processor - Main document processor
- Document
Processor Config - Document processing configuration
- File
Reference Validator - Validates that file references in skill instructions follow the Agent Skills spec
- Imported
Skill Info - Result of importing a skill bundle
- Incompatible
Skill Info - Information about incompatible skills
- Location
Discovery Stats - Discovery statistics
- Native
Plugin - A loaded native plugin
- Persistent
Context Manager - Context manager with persistence support
- Plugin
Context - Plugin execution context passed to plugin functions
- Plugin
Loader - Plugin loader responsible for discovering and loading native plugins.
- Plugin
Metadata - Plugin metadata structure
- Plugin
Result - Plugin execution result
- Processed
Document - Processed document result
- Resolved
Skill Ref - A fully resolved skill reference with concrete version
- Skill
- Complete skill definition with progressive disclosure levels
- Skill
Author - Skill authoring operations
- Skill
Container - Container for managing multiple skills in a request
- Skill
Error Info - Skill
Injections - Skill
Instructions - Skill
Load Outcome - Skill
Location - Skill location configuration
- Skill
Locations - Skill locations manager
- Skill
Lockfile - Lockfile for reproducible skill version resolution
- Skill
Manifest - Skill manifest metadata from SKILL.md frontmatter
- Skill
Metadata - Skill
Network Policy - Network access policy for a skill
- Skill
Registry Entry - Skill registry entry (loaded skill + metadata)
- Skill
Resource - A skill resource (Level 3: on-demand loading)
- Skill
Spec - Specification for a single skill in a container
- Skill
Store Index - Skill store index for tracking versions
- Skill
Template - Skill template configuration
- Skill
Template Builder - Skill template builder for programmatic template creation
- Skill
Validation Report - Comprehensive skill validation report
- Skill
Version Index - Skill
Yaml - YAML frontmatter structure for SKILL.md
- Template
Engine - Template engine for skill generation
- Template
Variable - Template variable for customization
- Validation
Issue - Single validation issue
Enums§
- Built
InCommand Executor - Command
Skill Backend - Container
Skill Source - How a skill is referenced in a container
- Container
Skills Requirement - Container skills requirement detection
- Context
Level - Skill context loading levels
- Document
Type - Document type classification
- Skill
Context - Progressive disclosure context for skill loading
- Skill
Location Type - Skill location types with precedence ordering
- Skill
Scope - Skill scope indicating where the skill is defined
- Skill
Source - Where a resolved skill comes from
- Skill
Type - Skill source type (Anthropic-managed or custom)
- Skill
Version - Skill version specification
- Skills
Render Mode - Rendering mode for skills section
- Template
Type - Skill template types
- Validation
Level - 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§
- Native
Plugin Trait - 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§
- Skill
Frontmatter - YAML frontmatter for SKILL.md authoring validation.