Spell creation via fee

No, you can’t just make them out of thin air. You have to go to a mage and pay a existing spellbook and a bunch of gold to make a randomized skill for your class.