Load Metadata • AI Agent SDK
load_metadata: Load skill metadata only (Level 1).
load_metadata
Method
</div>
This is a method of the SkillLoader class in the loader module.
Load skill metadata only (Level 1).
This is the minimal load for system prompt injection. Only reads the YAML frontmatter, not the full SKILL.md body.
Signature
def load_metadata(skill_path: str) -> Optional[LoadedSkill]Parameters
ParamField
strPath to skill directory
Returns
ResponseField
Optional[LoadedSkill]LoadedSkill with metadata only, or None if invalid
Uses
resolveexpanduserPathpath.existspath.is_dirread_propertiesLoadedSkill
Used By
Source
View on GitHubpraisonaiagents/skills/loader.py at line 69