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§
- Context
Coordinator - The Context Engineering Engine for
adk-skill. - Coordinator
Config - Configuration for the
ContextCoordinator. - Parsed
Skill - A parsed skill before it is assigned an ID and indexed.
- Selection
Policy - Criteria used to filter and score skills during selection.
- Skill
Context - The output of the context engineering pipeline.
- Skill
Document - A fully indexed skill document with a content-based unique ID.
- Skill
Frontmatter - Frontmatter metadata for a skill, following the
agentskills.iospecification. - Skill
Index - A collection of indexed skills, providing efficient access to metadata and summaries.
- Skill
Injector - Skill
Injector Config - Skill
Match - A ranked result representing a skill that matched a selection query.
- Skill
Summary - A lightweight summary of a skill, excluding the heavy body content.
Enums§
- Resolution
Strategy - Defines a strategy for resolving a skill into a context.
- Skill
Error - Validation
Mode - Controls how the framework handles skills/agents that request unavailable tools.
Traits§
- Tool
Registry - A registry that maps tool names to concrete tool instances.
Functions§
- apply_
skill_ injection - Injects the best-matching skill prompt into a user
Contentmessage. - 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 providedextra_dirswith 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
.skillsand.claude/skills/directories atroot. - discover_
skill_ files_ with_ extras - Discovers all Markdown skill files under the
.skills/and.claude/skills/directories atroot, plus any additional directories inextra_dirs. - load_
skill_ index - Loads a
SkillIndexby discovering and parsing all instruction files underroot. - load_
skill_ index_ with_ extras - Loads a
SkillIndexby discovering and parsing all instruction files underroot, plus any additional directories inextra_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.