Discover Skill • AI Agent SDK
discover_skill: Discover a single skill from a directory path.
discover_skill
Function
</div>
This function is defined in the discovery module.
Discover a single skill from a directory path.
Signature
def discover_skill(skill_path: str) -> Optional[SkillProperties]Parameters
ParamField
strPath to a skill directory
Returns
ResponseField
Optional[SkillProperties]SkillProperties if valid, None otherwise
Uses
resolveexpanduserPathpath.existspath.is_dirfind_skill_mdread_properties
Source
View on GitHubpraisonaiagents/skills/discovery.py at line 166