You can learn to write spells by understanding the anatomy of a spell, which includes knowing the purpose of your spell, its impact on yourself and the world, and the correspondences of its components.