Check every skill at startup
Updated
A 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.
Check every skill at startup
#pragma lifecycle(startup)
function startup() { const skills = findEntity('Guide').getComponents(AISkillComponent); for (const skill of skills) { if (skill.isEmpty) { log(`Skill "${skill.props.name}" is empty.`); continue; } const result = skill.inspect(); if (result.valid) { log(`Skill "${result.name}": ${result.description}`); } else { for (const problem of result.diagnostics) log(`Skill "${skill.props.name}": ${problem.message}`); } }}How it works
Section titled “How it works”The script is explained step by step in Check every skill at startup.
Open it in XR Creator
Section titled “Open it in XR Creator”Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.
SkillCheck.xrproj