Skip to main content

Module skill

Module skill 

Source
Available on crate feature skills only.
Expand description

AgentSkills parsing, indexing, and runtime injection helpers.

Provides:

  • Skill file discovery from .skills/
  • Frontmatter validation (name, description)
  • Lexical skill selection
  • Runner plugin helper for skill injection

Available with feature: skills

Structs§

ContextCoordinator
The Context Engineering Engine for adk-skill.
CoordinatorConfig
Configuration for the ContextCoordinator.
ParsedSkill
A parsed skill before it is assigned an ID and indexed.
SelectionPolicy
Criteria used to filter and score skills during selection.
SkillContext
The output of the context engineering pipeline.
SkillDocument
A fully indexed skill document with a content-based unique ID.
SkillFrontmatter
Frontmatter metadata for a skill, following the agentskills.io specification.
SkillIndex
A collection of indexed skills, providing efficient access to metadata and summaries.
SkillInjector
SkillInjectorConfig
SkillMatch
A ranked result representing a skill that matched a selection query.
SkillSummary
A lightweight summary of a skill, excluding the heavy body content.

Enums§

ResolutionStrategy
Defines a strategy for resolving a skill into a context.
SkillError
ValidationMode
Controls how the framework handles skills/agents that request unavailable tools.

Traits§

ToolRegistry
A registry that maps tool names to concrete tool instances.

Functions§

apply_skill_injection
Injects the best-matching skill prompt into a user Content message.
discover_instruction_files
Discovers all instruction files: both .skills/ Markdown files and convention files (e.g. AGENTS.md, CLAUDE.md, SOUL.md) found anywhere in the project tree, excluding common build and dependency directories. Results are sorted and deduplicated.
discover_instruction_files_with_extras
Discovers all instruction files from project-local directories, extra directories, and convention files. Merges skill files from .skills/, .claude/skills/, and the provided extra_dirs with convention files found in the project tree. Non-existent or non-directory extra paths are silently skipped. Results are sorted and deduplicated.
discover_skill_files
Discovers all Markdown skill files under the .skills and .claude/skills/ directories at root.
discover_skill_files_with_extras
Discovers all Markdown skill files under the .skills/ and .claude/skills/ directories at root, plus any additional directories in extra_dirs.
load_skill_index
Loads a SkillIndex by discovering and parsing all instruction files under root.
load_skill_index_with_extras
Loads a SkillIndex by discovering and parsing all instruction files under root, plus any additional directories in extra_dirs.
parse_instruction_markdown
Parses an instruction Markdown file, choosing the strategy based on its path.
parse_skill_markdown
Parses a skill Markdown file that uses YAML frontmatter.
select_skill_prompt_block
Selects the top-scoring skill for a query and returns its formatted prompt block.
select_skills
Selects the most relevant skills from the index for a given query string.

Type Aliases§

SkillResult