refact skill code with angular
update code