AI Skill
Updated
A Markdown instruction pack the agent can use.
- Type
comp-ai-skill- Script class
AISkillComponent- Per entity
- Several
- Version
- 1.0.0
Read about it in Skills: what it does, how to use it from a script, and examples.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Check every skill at startupA script checks every AI Skill on an agent at startup and logs each skill's name and description, or what is wrong with it, using inspect().
Read the skill report in the log: one valid skill, one empty, one with a bad name. No conversation is started, so the example needs no AI service.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AISkillComponent); if (component) log(component.props);}