streamlined setAISkill function