Combining crafting with skills

hey guys i ran into a little issue and im not sure how to go about fixing it anyway i have my spell system and my crafting system and wanted to make it so using the crafting system to craft the spells …so any help would be appreciated

this is how i add the skills

and this is my crafting code