Enum SkillResourceType
Specifies the type of resource contained within an Agent Skill directory.
Resources are categorized by their purpose to help agents determine how to use them.
public enum SkillResourceType
Fields
Reference = 0Markdown documentation or reference material that agents can read when needed. Typically found in the
references/directory.Script = 1Executable code (Python, Bash, JavaScript, etc.) that agents can run. Typically found in the
scripts/directory.Asset = 2Static assets such as templates, images, or data files. Typically found in the
assets/directory.Example = 3Example files demonstrating skill usage or expected outputs.
Other = 4Any other file type not covered by the above categories.
Examples
Filtering resources by type:
var skill = AgentSkill.Load("./skills/api-designer");
// Get only script resources
var scripts = skill.GetResources(SkillResourceType.Script);
// Get only reference documentation
var refs = skill.GetResources(SkillResourceType.Reference);