Skill¶
Data Structures for Skills.
SkillScope
¶
SkillFrontmatter
¶
Bases: BaseModel
Parsed frontmatter metadata from a skill's SKILL.md file.
Conforms to the Agent Skills open standard frontmatter specification.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Name of the skill. |
description |
str
|
Description of what the skill does and when to use it. |
license |
str | None
|
License name or reference to a bundled license file. |
compatibility |
str | None
|
Environment requirements for the skill. |
metadata |
dict[str, str] | None
|
Arbitrary key-value pairs for additional metadata. |
allowed_tools |
str | None
|
Space-delimited list of pre-approved tools the skill may use. |
Source code in src/llm_agents_from_scratch/data_structures/skill.py
must_be_non_empty
classmethod
¶
Validate that name and description are non-empty strings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
v
|
str
|
The field value to validate. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The validated field value. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the field value is empty or whitespace-only. |